Unformatted text preview: The datapath below incorporates an adder/subtractor, multiply/divider, and a one bit shifter. An arithmetic operation is speci ed by the add=sub and mul=div control lines. Subtraction is (X ; Y ) division is (X=Y ). The shift direction is controlled by the right=left control line. The enable signals determine which functional unit drives the Z bus. The datapath also contains a register le with four registers.
2 RWE 2 2 Microcode Programming X Register File
32 32 Y 32 +- en Add/Sub add/sub */ en Mul/Div mul/div shift en Shifter right/left Z Write microcode for this datapath to compute the function below. The initial values of the registers should be used in the equation. Any register may be modi ed once its initial value has been used for the last time. Express all signals in octal notation (i.e., to select register two on the X bus, put a \2" in the X column). 3R0 R1 +9R2 0 R0;R3 R = cycle 1 2 3 4 5 6 7 8 9 10 X Y Z RWE add=sub + ; en mul=div */ en right=left shift en ...
View Full Document
This note was uploaded on 10/26/2011 for the course ECE 2030 taught by Professor Wolf during the Spring '07 term at Georgia Tech.
- Spring '07