Use VHDL to design a 4-bit ALU (Arithmetic logic Unit) with the 8 instructions: ADD, REVERSE, MUL, INC, XNOR, NOT, RROTATION, LROTATION. 1-Assume codes for instructions are: 000=ADD, 001=REVERSE, 010=MUL, 011=INC, 100=XNOR, 101=NOT, 110=RROTATION, and 111=LROTATION. 2-Assume input numbers are unsigned. 3-For instructions REVERSE, NOT, RROTATION, and LROTATION use number A3A2A1A0. 4-For addition result will be in C3C2C1C0 and carry out CO. 5- For multiplication use repeated addition such as A+A+A+... ( B times) and outputs are in D3D2D1D0, C3C2C1C0. 6-Inputs are clock, A3A2A1A0,B3B2B1B0, and code for instruction. Output is C3C2C1C0 and CO in case of add and D3D2D1D0, C3C2C1C0 in case of multiplication.
Get Answers For Free
Most questions answered within 1 hours.