Question: n this exercise, you will create a circuit with two levels of hierarchy. Your top _ module will instantiate two copies of add 1 6
n this exercise, you will create a circuit with two levels of hierarchy. Your topmodule will instantiate two copies of addprovided each of which will instantiate copies of addwhich you must write Thus, you must write two modules: topmodule and add
Like moduleadd, you are given a module add that performs a bit addition. You must instantiate two of them to create a bit adder. One add module computes the lower bits of the addition result, while the second add module computes the upper bits of the result. Your bit adder does not need to handle carryin assume or carryout ignored
Connect the add modules together as shown in the diagram below. The provided module add has the following declaration:
module add input: a input: b input cin, output: sum, output cout ;
Within each add full adders module add not provided are instantiated to actually perform the addition. You must write the full adder module that has the following declaration:
module add input a input b input cin, output sum, output cout ;
Recall that a full adder computes the sum and carryout of abcin.
In summary, there are three modules in this design:
topmodule Your toplevel module that contains two of
add provided A bit adder module that is composed of of
add A bit full adder module.
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
