Problem

After doing Exercise 1, write a Verilog test bench that tests the adder for a subset of th...

After doing Exercise 1, write a Verilog test bench that tests the adder for a subset of the 232possible pairs of 16-bit addends. The test bench should stop and display the actual and expected outputs if there is any mismatch. Try to come up with a strategy for generating the input pairs that catches likely coding errors while using less than a million input combinations.

Exercise 1

Using the entity that you defined in Exercise 2, write a structural Verilog program for a 16-bit ripple adder along the lines of Figure 6-84. Use a generate statement to create the 16 full adders and their signal connection.

Exercise 2

Write a dataflow-style Verilog module corresponding to the full-adder circuit in Figure 6-83.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search