Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task In this group project, you will design the arithmetic logic unit ( ALU ) part of the Reduced Instruction Set Architecture ( RISC -

Task
In this group project, you will design the arithmetic logic unit (ALU) part of the Reduced Instruction Set Architecture (RISC-V) CPU. The CPU is currently one of the most widely used processors in low power embedded systems. The top-level block diagram of the RISC-V CPU is given in Figure 1.
bounding box.
The ALU design will be simplified for this assignment. The block diagram of the ALU that you are required to design is given in Figure 2.
Figure 2: Block diagram of the ALU design
The ALU specifications are:
The inputs are A0, A1, A2, A3, B0, B1, B2, and B3 which are 4-bits each; B_Sel and A_Sel which are 2-bits each; Alu_op, clock and reset which are 1-bit each.
The output is Alu_out which is 4-bits. Ignore the final bit carry out signal in the adder.
The ALU operation is according to Table 1:
Table 1: ALU operation selector based on Alu_op.
\table[[Alu_op,Operation],[0,4-bit adder, A + B],[1,4-bit subtractor, A - B]]
You are required to perform a modular design of the ALU given in Figure 2 with the given specifications above. The design should use schematic based entry using logic gates for all components, except the register. The goal is to obtain a design that uses the least number of logic gates.
Design steps
Start with the design of the full adder gate-level schematic. Verify the correct functionality of the design by using the software simulation.
Instantiate the full adder in step 1 to obtain a 4-bit full adder and a 4-bit subtractor. Ignore the final bit carry out from the adder and subtractor. Verify the correct functionality of the design by using the software simulation.
Design and verify a 1-bit 41 multiplexer.
Instantiate the mux in step 3 to obtain a 4-bit 41 multiplexer.
Integrate the multiplexers, adder, subtractor, as well as the register to obtain the ALU design in Figure 2. For the register, use the component as shown in Figure 3. Note that you will need to instantiate 41-bit DFF to obtain a 4-bit DFF. All other components (mux, adder, subtractor) should be designed using basic gates.
Symbol
Libraries:
Figure 3: Register component for the project
Verify the correct functionality of your ALU design by using several possible input values.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic Net Database Programming

Authors: Rod Stephens

1st Edition

0789726815, 978-0789726810

More Books

Students also viewed these Databases questions