Question: Create a computational unit that can compute the following operations on 4 bit operands: Page 2 of 7 2 TEST CASES 1 . AND 2
Create a computational unit that can compute the following operations on
bit operands:
Page of
TEST CASES
AND
OR
NAND
NOR
Addition
Subtraction
Greater than
Less than
First test the computation unit for all operations. After verifying the unit
works properly for all operations, then instantiate the component times in
the arrangement shown in Fig. Make sure to use the same input and output
names shown in Fig. but note that the figure is representational and does
not show all inputs and signals you might need to implement the design.
Test cases
To test the computation unit, use the inputs and for the first
test case and and for the second test case. Calculate the expected values and then record the simulated outputs in a table for comparison
to verify that they match.
To test the overall design, use the following test cases and similarly record
the calculated vs simulated outputs in a separate table for comparison.
Case :
A: B: C: D:
Page of
FORMATTING
CU #: OR CU #: ADD, CU#: GREATER THAN
Case :
A: B: C: D:
CU #: AND, CU #: LESS THAN, CU#: SUBTRACT
Formatting
Steps: Printing code to pdf
For each source file both the design and the simulation VHDL or other HDL
language files print the code to pdf either in Vivado or by opening the code
in any other text editor and printing it from there. The steps to print the
code to a pdf from Vivado are as follows:
With the VHDLsource file currently open and being viewed in the text
editor, click the file tab at the top and near the bottom select the print
option or press Ctrl P
Figure : Print button.
Page of
Source files zipping FORMATTING
In the popup, in the dropdown next to the Name: text, make sure to
select Microsoft Print to PDF Then click ok
Figure : Printing popup with print to pdf chosen.
Name the pdf file something clearly indicating what it is and then browse
to where youd like to save the pdf to
Source files zipping
In a separate zip file, include the following files and only these
files:
A README text file that includes a list of all the files that
should be included and any special instructions needed to run
the top level module in Windows, to create a text file, in the
file explorer right click empty space and choose New Text
Document This will help in the case that any files that were
supposed to be included ended up missing.
VHDL file for top level component
VHDL files for all subcomponents and any of their testbenches
Page of
Other formatting notes FORMATTING
VHDL file for top level testbench
Do not include other files from the project or the submission ie
the report and pdf of the vhdl code only the VHDL files are
needed.
Other formatting notes
If you would like to make a report yourself rather than follow the
provided template, please make sure to include all of the things
listed out in the checklist below as well as a Table of Contents and
page numbers on each page. Do not include all of the VHDL code
in the report, please keep it separate from the report.
Page of
CHECKLIST
Checklist
Your submission should include using helpfuldistinguishable file
names:
Report either in pdf or docx file type including:
Block diagramsdesign explanations
Generated RTL SchematicBlock diagram
Simulation outputswaveforms for the test cases
Manual calculations for the test cases
Table with Calculated outputs vs Simulation outputs for
both calculated test cases
PDFs: VHDL or verilog or systemverilog code for the top
level component, all subcomponents, and the testbenches can
combine all code pdfs into one pdf overall or include individual
pdfs
Zip file with all the VHDL source code files needed to run the
top level component
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
