can't find source pin

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

can't find source pin

philipho
Hi,

I wrote my And.hdl as follows:

 PARTS:
    //Nand(a=a,b=b,out=c);
      Not(in=c,out=out);
}

The simulator returns : c has no source pin.

Can someone point out where I did wrong? Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: can't find source pin

ivant
The Nand line starts with two slashes //, which means it's treated as a comment. That's why the simulator only "sees" the Not line and it has this undefined c.
Reply | Threaded
Open this post in threaded view
|

Re: Re: can't find source pin

philipho

thanks´╝îmy problem is solved!
 
Date: 2017-12-07 16:49
Subject: Re: can't find source pin
The Nand line starts with two slashes //, which means it's treated as a comment. That's why the simulator only "sees" the Not line and it has this undefined c.


If you reply to this email, your message will be added to the discussion below:
http://nand2tetris-questions-and-answers-forum.32033.n3.nabble.com/can-t-find-source-pin-tp4031606p4031607.html
To unsubscribe from can't find source pin, click here.
NAML