Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!