Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a new Lab 7 folder. Copy your prior fulladd.sv and adder4.sv into the folder. Extend your Lab 6 design of the adder4 to support

Create a new Lab 7 folder. Copy your prior fulladd.sv and adder4.sv into the folder. Extend your Lab 6 design of the adder4 to support twos-complement addition and to include overflow. This entity should have two 4-bit vector inputs, A and B, and a logic input, Cin. The entity will have three outputs: Cout, overflow, and a 4-bit vector S. overflow should be HIGH when an arithmetic overflow occurs in the process of adding the two 4-bit 2s complement numbers. Determine four new test cases for your simulation that verify addition works and your new overflow signal works. Think of what are a set of reasonable to confirm that the circuit handles positive and negative numbers as well as overflow. Write out the test cases and compute the operations by hand. Also, in a short paragraph, explain why you selected those test cases. Simulate the design in ModelSim. As a reminder, when forcing A and B, you can use decimal values instead of binary by writing 10# in front of the decimal number (or -10# for negative decimal numbers), so forcing A to the value of 3 at time 0 and -5 at time 100 would be: force A 10#3 0, -10#5 100 In advance of lab, determine at least four additional test cases to confirm that your subtraction circuit works. Again consider the signs, carry-out, and overflow conditions. Write out the test cases and compute the operations by hand. Also, in a short paragraph, explain why you selected those test cases.

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

ISBN: 133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

What is the mass of 4.44 mol of Rb?

Answered: 1 week ago

Question

=+Do you want to work from home?

Answered: 1 week ago

Question

=+ What skills and competencies will enable someone

Answered: 1 week ago

Question

=+to live and work wherever he or she wants?

Answered: 1 week ago