This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
labs:arithmetic [2020/01/31 16:15] nelson [Exercise #1 - 9-bit Binary Adder] |
labs:arithmetic [2020/02/07 16:53] (current) nelson [Exercise #1 - 9-bit Binary Adder] |
||
---|---|---|---|
Line 130: | Line 130: | ||
| co | Output | 1 | Carry out of last stage | | | co | Output | 1 | Carry out of last stage | | ||
- | After creating the empty module, create the needed local wires (you will need some, figure out where), and insert 9 instances of your **FullAdd** module into your Add9 module (as described in Section 9.1 of the textbook and as shown in the figure below). You should use the .() way of mapping ports on instances to your wires (see Program 11.1.2 in the textbook). | + | After creating the empty module, create the needed local wires (you will need some, figure out where), and insert 9 instances of your **FullAdd** module into your Add9 module (as described in Section 9.1 of the textbook and as shown in the figure below). You should use the .port(wire) way of mapping ports on instances to your wires (see Program 11.1.2 in the textbook). |
Note that the **co** output of your Add9 is the carry-out of the last FullAdd instance. | Note that the **co** output of your Add9 is the carry-out of the last FullAdd instance. | ||
Line 142: | Line 142: | ||
</code> | </code> | ||
- | Read the following [[tutorials:tcl_tutorial_2|tutorial]]. This tutorial contains additional examples and instruction for creating TCL files. | + | Read the following [[tutorials:tcl_tutorial|tutorial]]. This tutorial contains additional examples and instruction for creating TCL files. |