Login  Register

Input descriptor

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

Input descriptor

Veiniuks
Trying to implement a single input to a two input gate and get an "unknown variable:in" error

Tried:

IN a;
OUT out;
PARTS:
"Gate Name"(a=a, b=a, out=out)

Any tips would be appreciated.  Thank you in advance for your time.

 
 
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Input descriptor

cadet1620
Administrator
Veiniuks wrote
Trying to implement a single input to a two input gate and get an "unknown variable:in" error

Tried:

IN a;
OUT out;
PARTS:
"Gate Name"(a=a, b=a, out=out)

Any tips would be appreciated.  Thank you in advance for your time.
The "unknown variable:in" message is coming from the test script file.  It expects that your implementation of the chip has the same IN and OUT names as the provided stub file.  You want to write:
    IN in; 
    OUT out;
    PARTS:
    "Gate Name"(a=in, b=in, out=out);

--Mark
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Input descriptor

Veiniuks
Thank you Mark.  That worked like a charm.  I appreciate your time.  Have a great day!