If A-select = 0, the A-MUX multiplexor will select the register as output. And if A-select = 1, the A-MUX multiplexor will select the MBR as output.
By selecting the input from the register, the CPU will perform
operations on register data.
By selecting the input from the MBR, the CPU will perform
operations on memory data.
Note: by looking at the connections, you must conclude that the MBR can be updated with data from:
There are 32 bits total in one instruction and these bits control the circuits inside the CPU.
The instruction is stored in the (32 bit) Instruction Register (IR) - it's made with 32 D-flipflops.
This outputs of the IR (which is the instruction code !) is tied to the various part of the CPU which each bit/bits controls. The connections are shown in the following figure:
|
|
|
/home/cs355001/demo/datapath/cs355-demo-dp1 |
NOTE: the machine instruction is fetched from memory - we will delay discussion how the CPU read data from memory for later. We will just use switches to similate a fetched instruction.
(The MIR's display is found in the upper-right corner - 2 rows of probes)
The Datapath is completely under the control of the bit setting in a Machine Instruction !!!)
|
|