p0064 - The datapath below incorporates an adder/subtractor,

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

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. XY Z 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

Ask a homework question - tutors are online