سوال ۸۱ کنکور ارشد مهندسی کامپیوتر ۱۴۰۱
اهمیت
۰/۵
با فرض مدار زیر بعد از لبهٔ فعال کلاک چه عملی را انجام میدهد؟
پاسخ صحیح: گزینهٔ D —
پاسخ تشریحی
The circuit is three flip-flops holding , with a combinational next-state network feeding the inputs. Tracing the wires:
- The output runs up to the top rail, so the constant carry-in for bit 0 is effectively . An inverter on the bit-0 line drives
- The middle XOR takes and (the carry out of bit 0 is just when ):
- The AND gate forms the carry into bit 2, , and the left XOR gives
These are exactly the equations of a ripple-carry increment-by-one network: each bit toggles iff all lower bits are (carry propagated). With carry chain and , the new state is
Check : Check : , i.e. . So the circuit is an up-counter that computes .
Exam trick: Identify the carry pattern — bit flips when the AND of all lower bits is (). Uncomplemented AND inputs mean increment (); complemented inputs (toggle on all-zeros below) would mean decrement ().
#d-flip-flop#increment-circuit#carry-chain#xor-gate#synchronous-counter#next-state