Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment 2 Notes: Submission MUST be only 1 PDF or Doc format document of typed report. (For example, hand written scanned file is not acceptable.)

image text in transcribed
image text in transcribed
Assignment 2 Notes: Submission MUST be only 1 PDF or Doc format document of typed report. (For example, hand written scanned file is not acceptable.) Do not upload a zip file containing multiple files Only 1 file can be uploaded (any new upload will replace the old upload). The deadline is timed, and will stop accepting new upload at 11:59pm on the designated date. In the report, clearly mention the type of HDL code (ie. Verilog, VHDL, or System Verilog) that you have used for solution of these problems. Use only one for your entire report To simulate and synthesize your code, you need to install Quartus II (Web Edition) in your computer from Altera Website: http:lldl.altera.com/?edition web. Alternately, you can access this simulation software at a computer in ET227 (aka Microprocessor Lab). . 1. a) Write a HDL code (either Verilog, SystemVeirlog, or VHDL) of the ALU as shown below, where N = 32, The two inputs are labeled as A and B, while the output is labeled as Y. The 3-bit select inputs are labelled as F. The desired functionality of the ALU is given in the following table. Function A AND B A OR B A +B (Unused) A AND-B A OR B A-B SLT(Set Less Than) F [2:0 001 100 101 110 b) Write a testbench to functionally verify your code developed in part a. Provide simulation results using this testbench of input/output waveforms that functionally verifies the ALU operation as outlined in the table (at least 1 example for each function). Hint: To understand the function: SLT (set less than), refer to the textbook, sec. 5.2.4, pp. 248-250

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

More Books

Students also viewed these Databases questions

Question

5. Identify three characteristics of the dialectical approach.

Answered: 1 week ago

Question

7. Identify six intercultural communication dialectics.

Answered: 1 week ago