Re: Can anyone give a short example of a full-adder - Please

Posted by cadet1620 on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Can-anyone-give-a-short-example-of-a-full-adder-Please-tp4027440p4027448.html

cybermailer wrote
- in my testing file
   -> if have this line output-list a%B1.4.1 b%B1.4.1 out%B1.4.1;
       WHAT describes this line.

- or how do i know how to make the comparison lines (like spaces, like |, ..)
like
|  a   |  b   | out  |
| 1100 | 0011 | 1111 |
The testing language is described in Appendix B of the book, which is not available on-line.

The easiest way to make the compare file is simply to run your test script with the compare-to line commented out. After verifying that the circuit is working correctly by examining the output file, rename the .out file to .cmp and uncomment the compare-to line.

--Mark