Datapath & Control Unit



Answer & solution
Answer: A four-state hardwired sequencer drives PC/MAR/memory/MDR/IR and an indexed-address adder; READY holds the read state. (no official key was published)
Use a word-addressed memory returning one 16-bit instruction per access, an address-width w≥8, PC, MAR, MDR, IR, index register X and effective-address register EA. Let I be the decoded indexed-mode condition, and Z(IR[7:0]) the zero-extended address field. These are explicit implementation assumptions, not facts supplied by the question.
T0: MAR←PC.
T1: assert memory READ; wait until READY; MDR←M[MAR].
T2: IR←MDR; PC←PC+1.
T3: EA←Z(IR[7:0]) + (I ? X : 0), modulo 2w; finish fetch.
The operand field must come from the newly loaded IR, so effective-address formation follows T2. PC increment is independent of indexing: indexing modifies the operand address, not the address of the next instruction. The index flag is obtained from the instruction’s opcode/mode decoding; assigning it a particular bit without specification would be unjustified.
If memory is byte-addressed with an 8-bit data bus, use two reads, assemble the two bytes according to the selected endianness, and advance PC by two instead. If memory has a fixed guaranteed cycle, the READY self-loop can be replaced by the corresponding fixed number of timing states. These implementation variants do not change the essential separation of fetch, decode and address formation.
Datapath schematic
PC ─→ MAR ─address→ MEMORY ─data→ MDR ─→ IR PC ─→ incrementer(+1) ─→ PC IR[7:0] ─→ zero extend ─→ ADDER ─→ EA X ─→ MUX(X or 0, select I) ─→ ADDER IR[15:8] ─→ opcode/mode decoder ─→ I
Implement a one-hot sequencer S0,S1,S2,S3 with reset S0=1. Its next-state equations during fetch are S1_next=S0 OR (S1 AND NOT READY), S2_next=S1 AND READY, S3_next=S2; S0_next is asserted on the next fetch request rather than during instruction execution. The final S3 pulse transfers control to execution. Reset and start gating should prevent simultaneous states.
Control outputs: LD_MAR=S0; MEM_READ=S1; LD_MDR=S1 AND READY; LD_IR=S2; INC_PC=S2; LD_EA=S3; FETCH_DONE=S3. Each state’s loads occur at its ending clock edge. The adder’s second input selects X only when I=1. A two-bit state register plus a decoder is an equivalent SSI/MSI implementation. No control ROM is needed: Boolean gates decode state and instruction bits. The READY condition must obey the controller clock’s synchronization requirements.