سوال ۷۷ کنکور ارشد مهندسی کامپیوتر ۱۴۰۳
مدار ترتیبی زیر با ورودی و خروجی را درنظر بگیرید. کدام مورد، ماشین حالت این مدار را نشان میدهد؟ (متغیرهای حالت بهصورت درنظر گرفته شوند.)
پاسخ صحیح: گزینهٔ C — نمودار حالت با حالتهای ۰۰، ۱۰، ۰۱، ۱۱ با انتقالهای متقاطع، حلقههای خودی روی ۱۰ (۰/۰) و ۱۱ (−/۰)، و یک یال خروجی ۱/۱.
This is a Mealy sequential circuit. The edge labels are , so we first extract the flip-flop input equations and the output equation, then build the next-state table.
Read the gates off the schematic. The AND gate forms the output from and the line of the JK flip-flop; the and inputs are tied to (one node on the right bus); the inverter together with the feedback drives :
Flip-flop next states. A JK flip-flop with is a toggle (T) flip-flop controlled by :
The D flip-flop simply latches its input:
State / output table (state ):
| 00 | 0 | 00 | 0 |
| 00 | 1 | 11 | 1 |
| 01 | 0 | 00 | 0 |
| 01 | 1 | 10 | 0 |
| 10 | 0 | 10 | 0 |
| 10 | 1 | 01 | 1 |
| 11 | 0 | 10 | 0 |
| 11 | 1 | 01 | 0 |
Match to a diagram. The table is not a simple linear chain: from the machine jumps directly to (a crossing/skip arc), and has a self-loop on () while has the behaviour shown. Only the diagram with the crossing transitions plus self-loops on () and () and the single output edge reproduces every row — that is option 3.
Options that draw a plain chain (option 1) or that drop a reachable state down to a 3-state diagram (option 2) or place the self-loop on (option 4) all violate at least one row of the table.
Exam trick: For these "which state diagram" items, never try to eyeball the arrows. Write in terms of and the state, convert JK to (toggle) or , fill the 8-row table, and then find the matching picture. The output column () is what separates near-identical diagrams.