Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. (20 pts.) Problem 2, Behavioral Components and Structural Top Level ALU: Design the ALU in structural Verilog. Only use the following components: 4-bit NOT,

image text in transcribed

2. (20 pts.) Problem 2, Behavioral Components and Structural Top Level ALU: Design the ALU in structural Verilog. Only use the following components: 4-bit NOT, 4-bit Full Adder and 4-bi input/output 2-to-1 MUX. First you need to develop behavioral Verilog module for each of the above three components (3 behavioral modules). Then, you can instantiate these three components to build the ALU. Test the AL functionality by sinulation Include at least two vectors per function. You may re-use the test bench you have created in Lab Hint for Problem 2: Construct three behavioral modules with always blocks with appropriate sensitivity list. Extend NOT and 2-to-1 MUX behavioral codes which have already been discussed in the tutorial to 4-bit blocks. In your final ALU code, you need to instantiate your four-bit 2-to-1 MUX three times for your four-bit 4-to-1 MUX (make sure your selects are corTect). You can also use the below example of always block for 4-bit adder as part of your design (it has to be designed so that you instantiate it in your structural ALU for addition and subtraction depending on your inputs/carry_in): always @ (a or b or c_i) begin assign fc_out, add_out-atbtc_n end

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

Advanced Database Systems

Authors: Carlo Zaniolo, Stefano Ceri, Christos Faloutsos, Richard T. Snodgrass, V.S. Subrahmanian, Roberto Zicari

1st Edition

155860443X, 978-1558604438

More Books

Students also viewed these Databases questions

Question

Can options that are written qualify for hedge accounting?

Answered: 1 week ago

Question

Which form of proof do you find least persuasive? Why?

Answered: 1 week ago