Problem with And

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with And

kevinliu726
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Problem with And

cadet1620
Administrator
Your HDL for And is correct.

The usual cause for And.tst to fail on line 5 is that you have not yet built and tested the Not chip that you are using in your And chip.

The Not chip that you get from the nand2tetris.zip file does not have anything its PARTS section, so there is no connection to the Not's out so it always appears to be 0.

Chip inputs and outputs that are not connected to anything can also cause the Hardware Simulator to not display values correctly when stepping through the test. They can also cause the "eval" button (calculator) not to be enabled when you change input values.

After you solve your problem, please edit your post to remove the HDL. We want everyone to be able to figure out their own gates.

--Mark
Reply | Threaded
Open this post in threaded view
|

Re: Problem with And

kevinliu726
thank u very much