Mux.hdl, line 19, ',' or ')' are expected

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

Mux.hdl, line 19, ',' or ')' are expected

Basil Behanan
This post was updated on .
the following error shows up:
Mux.hdl, line 19, ',' or ')' are expected

< CODE SNIPPED>

Nand(a=not_sel,b=not_sel,out=Nand1);

< CODE SNIPPED>

}
Reply | Threaded
Open this post in threaded view
|

Re: Mux.hdl, line 19, ',' or ')' are expected

dolomiti7
Rename your connections without the underscore. The "not_sel" is the problem.
Reply | Threaded
Open this post in threaded view
|

Re: Mux.hdl, line 19, ',' or ')' are expected

WBahn
Administrator
In reply to this post by Basil Behanan
Basil Behanan wrote
the following error shows up:
Mux.hdl, line 19, ',' or ')' are expected

Nand(a=not_sel,b=not_sel,out=Nand1);
Pin names can consist only of uppercase letters, lowercase letters, and digits (and can't start with a digit).

The error message is resulting from the fact that the tool got to the following point:

Nand(a=not

At this point, because the next character cannot extend the pin name, the pin name is finished and the next character can be a space (which gets gobbled up), a ',' (indicating that another connection follows, or a ')' (indicating that the end of this part connection list has been reached. It found none of those, so it threw the error.

 and lower case letters