سوال ۷۷ کنکور ارشد مهندسی کامپیوتر ۱۴۰۲
شمارنده زیر چه ترتیبی را میشمارد؟
پاسخ صحیح: گزینهٔ B — از چهار تا دوازده
The block is a 4-bit synchronous UP counter with a synchronous parallel-load input. We must read the surrounding control logic.
Fixed inputs.
- The active-low
clearpin is tied to1, so the counter is never cleared. - The parallel-load data bus is wired to , i.e. the value that gets loaded is
Load-control logic. The bottom gate is a 2-input NAND fed by and :
Its output goes to the upper NAND, whose other input is Reset passed through an inverter, i.e. . So
During normal counting , hence
So Load is asserted exactly when .
Trace the sequence. Once loaded with , the counter increments each clock. The product first becomes at
because is the smallest value with both bit-3 and bit-2 high. The visited counts are therefore
At the asserted Load forces the next clock edge to reload , so the cycle repeats. The counter counts from 4 to 12, which is option 2.
Pitfall: The reload happens after the count that triggers
Load(synchronous load), so itself is reached and displayed before the jump back to — the top of the range is , not . Also note that is never reached because the decode fires at the first value with , which is .