Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

hw help please! 1. Add and subtract the following numbers using 2's complement if signed. Determine when Overflow and Carry out should occur. Show all

hw help please!
image text in transcribed
image text in transcribed
1. Add and subtract the following numbers using 2's complement if signed. Determine when Overflow and Carry out should occur. Show all steps you performed, do not just give the answer, show your steps. Find A+B, and AB for all values. Example: A=6,B=1, then Sum=A+B=7, and Diff=AB=61=5. Convert these numbers to 5 -bit binary numbers and then perform addition and subtraction. Table 1 Addition and subtraction of 5 -bit numbers A.B 2. Design and compile a full adder circuit in SystemVerilog. Save the file as fulladd.sv 3. Simulate fulladd using Xilinx Vivado project Navigator. 4. Design a testbench to test the functionality of your fulladd, save the file as tb_fulladd.sv 5. Design and compile a 5-bit adder using your full adder circuit (fulladd) in SystemVerilog - Use the Structural model. Save the Verilog file named adder5.sv in the same folder. - Make sure to add outputs for Overflow, and CarryOut 6. Simulate the design using tools in in 2 above and take screenshots of the simulation. Use the values from table 1 above. 7. Design an adder-subtractor in a new Verilog file name addsub.sv. Use Structural Model to connect to adder5 created in Step 4. Add additional code to provide the subtraction; use an input AS to indicate add/subtract. (Remember we can use the XOR gate to take one's complement of the number B) 9. Determine when overflow should occur and verify this in your observations. 10. Include all the results and the design in your lab report 11. For each design simulation, you have to show your simulation results and your code and/or schematic in the lab report. (take a screenshot)

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

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

More Books

Students also viewed these Databases questions