Question: 8-bit Shift and Rotate Unit with 2-bit State Register not (VHDL) Verilog code 1403371 Advanced Logic Design Lab Project 8-bit Shift and Rotate Unit with

8-bit Shift and Rotate Unit with 2-bit State Register

8-bit Shift and Rotate Unit with 2-bit State Register not (VHDL) Verilog

not (VHDL)

Verilog code

1403371 Advanced Logic Design Lab Project 8-bit Shift and Rotate Unit with 2-bit State Register Design, build and simulate 8-bit shift and rotate unit and add to it 2-bit state register. Use data f modeling for more simplicity. It is required to build four modules in total: Shift module, Rotate module, State Register module and a Test Bench. The design should follow the logic described in the following truth table: Shift/ Right/ Arithmetic Without/ Rotate Left Logic With Carry Output Shift input right by specified digit amount and extend the sign in MSBs Shift input right by specified digit amount with zero padding Shift input left by specified digit amount with zero padding 0 0 Rotate input right by specified digit amount 0 Rotate input concatenated with carry flag to the right by specified digit amount Rotate input left by specified digit amount Rotate carry flag concatenated with input to the left by specified amount 0 0 in all cases, the last shifted out or rotated bit is copied to the Carry Flag (CF). Also, if the output (except the carry flag) equals 0 (zero), then the zero flag (ZF) is logic high. th shift and rotate could be performed on stages by positions of powers of 2 (1, 2,4,.. etc.). This is the essential idea of Barrel Shifter 1403371 Advanced Logic Design Lab Project 8-bit Shift and Rotate Unit with 2-bit State Register Design, build and simulate 8-bit shift and rotate unit and add to it 2-bit state register. Use data f modeling for more simplicity. It is required to build four modules in total: Shift module, Rotate module, State Register module and a Test Bench. The design should follow the logic described in the following truth table: Shift/ Right/ Arithmetic Without/ Rotate Left Logic With Carry Output Shift input right by specified digit amount and extend the sign in MSBs Shift input right by specified digit amount with zero padding Shift input left by specified digit amount with zero padding 0 0 Rotate input right by specified digit amount 0 Rotate input concatenated with carry flag to the right by specified digit amount Rotate input left by specified digit amount Rotate carry flag concatenated with input to the left by specified amount 0 0 in all cases, the last shifted out or rotated bit is copied to the Carry Flag (CF). Also, if the output (except the carry flag) equals 0 (zero), then the zero flag (ZF) is logic high. th shift and rotate could be performed on stages by positions of powers of 2 (1, 2,4,.. etc.). This is the essential idea of Barrel Shifter

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!