Loading simulatorβ¦
The provided Data_ext path converts the 2-bit input into a 4-bit unsigned value:
Data_ext = 00 : Data
Connect ACC_REG and Data_ext to a 4-bit adder. Its output is:
add_acc = ACC + Data_ext
Use three cascaded 2:1 MUX levels to select the next accumulator value.
Level 1
S = ACCUMULATE
D0 = ACC
D1 = add_acc
Y = M1
The first level selects between holding the current accumulator value and accumulating Data_ext.
Level 2
S = LOAD
D0 = M1
D1 = Data_ext
Y = M2
Because this MUX is after the accumulation MUX, LOAD overrides ACCUMULATE.
Level 3
S = CLEAR
D0 = M2
D1 = 0000
Y = M3
The final MUX gives CLEAR the highest synchronous priority.
Connect M3 to the data inputs of ACC_REG.
Therefore, the completed datapath implements:
CLEAR > LOAD > ACCUMULATE > HOLD
The provided active-LOW nRESET connection operates directly on ACC_REG and overrides the synchronous datapath controls.