Docsity

VHDL Design and Simulation of a 32-bit MIPS ALU with Overflow and Zero Detection, Study Guides, Projects, Research of Electrical and Electronics Engineering

Toggle sidebar
bg1
14:332:333
Project 2
Points: 30 Due: the week of 3/21-3/25
Read Appendix B.5 (on the CD) carefully. Design and simulate the VHDL for the 32-bit MIPS ALU with overflow and
zero detect depicted in Figure B.5.12 (on the CD). The control lines and their functions are shown in Figures B.5.10,
B.5.12 and Table B.5.13. Please note that the ALU structure on the CD is different from the ALU we had in class. Your
VHDL description can be behavioral. You do not need to go to the gate level to build the ALU. For instance, if the
ALUop is “0000”, you can calculate the result using the CSA “result <= A and B”. (You should be very careful with the
difference between signals and variables.) However, you are required to use process construct and if statement in the
ALU architecture body. Your ALU should be able to handle all the control signals listed in Table B.5.13. Your ALU
should be able to detect overflow when necessary, and calculate the zero output. You are required to use the following
entity and architecture definitions in your project.
entity ALU is
port(A, B: in std_logic_vector (31 downto 0);
ALUop: in std_logic_vector (3 downto 0);
result: out std_logic_vector (31 downto 0);
zero: out std_logic;
overflow: out std_logic)
end ALU;
architecture process_behavior of ALU is
. . .
begin
ALU: process
begin
. . .
. . .
end process ALU;
end process_behavior;
In addition, please use the following delays in your project:
Operation Delay
and/or/nor 10 ns
add (including overview detection) 40 ns
sub (including overview detection) 40 ns
slt (including overview detection) 40 ns
zero output 44 ns
After you finish coding, analyze and simulate the program. It will be re-analyzed (vhdlan) and re-simulated (vhdlsim) as
part of the grading process. A program that doesn’t analyze will at most receive a quarter of the total points. The grading
simulation will include a combination of and, or, add, subtract, and set on less than operations (signed and unsigned)
with both positive and negative input values.

Partial preview of the text

Download VHDL Design and Simulation of a 32-bit MIPS ALU with Overflow and Zero Detection and more Study Guides, Projects, Research Electrical and Electronics Engineering in PDF only on Docsity!

Project 2

Points: 30 Due: the week of 3/21-3/

Read Appendix B.5 (on the CD) carefully. Design and simulate the VHDL for the 32-bit MIPS ALU with overflow and

zero detect depicted in Figure B.5.12 (on the CD). The control lines and their functions are shown in Figures B.5.10,

B.5.12 and Table B.5.13. Please note that the ALU structure on the CD is different from the ALU we had in class. Your

VHDL description can be behavioral. You do not need to go to the gate level to build the ALU. For instance, if the

ALUop is “0000”, you can calculate the result using the CSA “result <= A and B”. (You should be very careful with the

difference between signals and variables.) However, you are required to use process construct and if statement in the

ALU architecture body. Your ALU should be able to handle all the control signals listed in Table B.5.13. Your ALU

should be able to detect overflow when necessary, and calculate the zero output. You are required to use the following

entity and architecture definitions in your project.

entity ALU is port(A, B: in std_logic_vector (31 downto 0); ALUop: in std_logic_vector (3 downto 0); result: out std_logic_vector (31 downto 0); zero: out std_logic; overflow: out std_logic) end ALU; architecture process_behavior of ALU is

... begin ALU: process begin ... ... end process ALU; end process_behavior;

In addition, please use the following delays in your project:

Operation Delay

and/or/nor 10 ns

add (including overview detection) 40 ns

sub (including overview detection) 40 ns

slt (including overview detection) 40 ns

zero output 44 ns

After you finish coding, analyze and simulate the program. It will be re-analyzed (vhdlan) and re-simulated (vhdlsim) as

part of the grading process. A program that doesn’t analyze will at most receive a quarter of the total points. The grading

simulation will include a combination of and, or, add, subtract, and set on less than operations (signed and unsigned)

with both positive and negative input values.