In HDL File ',' or ')' are expected: load FullAdder.hdl

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

In HDL File ',' or ')' are expected: load FullAdder.hdl

NFU
I wrote what I think is a working FullAdder design by combining two Half-adders.

I've checked my syntax but it keeps returning that error whenever I try to test the chip.
Reply | Threaded
Open this post in threaded view
|

Re: In HDL File ',' or ')' are expected: load FullAdder.hdl

cadet1620
Administrator
This error message often means that you have an illegal character in a pin name.  The only legal characters are 'a'-'z', 'A'-'Z', and '0'-'9' and the name must start with a letter.

If you can't find the error, it's OK to post you code here.  After the problem is fixed, you can edit your post to remove the HDL.

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

Re: In HDL File ',' or ')' are expected: load FullAdder.hdl

NFU
This post was updated on .
Hi Mark. I had checked that too indeed, and even changed 'sum_1' to 'sum_one', but it makes no difference.

I took a screenshot so it doesn't show up for readers:

http://imgur.com/gCSQKtC


I also just realized it's probably not the solution, but that's a different problem.
Reply | Threaded
Open this post in threaded view
|

Re: In HDL File ',' or ')' are expected: load FullAdder.hdl

cadet1620
Administrator
'_' is not a legal character in pin/wire names.  Use 'sum1' or 'sumOne'.

The only legal characters are 'a'-'z', 'A'-'Z', and '0'-'9' and the name must start with a letter.


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

Re: In HDL File ',' or ')' are expected: load FullAdder.hdl

NFU
Thank you.

I changed the names, made some tweaks and comparison ends successfully. Too used to Python and its variable naming hehe.