سوال ۷۷ کنکور ارشد مهندسی کامپیوتر ۱۴۰۴
در مدار زیر، ورودی در لحظه صفر از مقدار یک به مقدار صفر تغییر میکند. تأخیر گیتها درون آنها نوشته شده و فرض میکنیم فلیپفلاپ که با لبه بالارونده پالس ساعت کار میکند، هیچ تأخیری ندارد. اگر خروجی در ابتدا صفر باشد، در چه زمانی یک میشود؟
پاسخ صحیح: گزینهٔ C — ۳۰
We track each signal after switches at , accounting for the delay written inside every gate.
Branch X (lower AND, delay ). When falls at , the AND delay pushes the change by , so
Branch Y (upper AND, delay , fed by the inverter of delay ). The inverter computes with delay : when falls at , rises at . Then so the AND () gives
Node W (OR, delay ), which is the input.
- For : .
- drops at ; with still the OR output falls at .
- rises at ; the OR output rises at .
So () glitches: it is until , sits at during , and is stably only from onward.
Sampling at the flip-flop. The DFF captures on a rising clock edge with no delay. The output can latch to only when the clock edge samples a settled , i.e. at
Hence becomes at — option (3).
Pitfall: Do not stop at the first time is . Because falls before rises ( vs delay), collapses to for a window and only the slow path () drives permanently high — that later time is what the clock must sample.