Problems with my Inc16

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

Problems with my Inc16

stenzeman
This post was updated on .
Hello all together.

I have some problems with my Inc16 and can't find my mistake.

I've written it in several ways - with Add16, FullAdder, HalfAdder - but always the Simulator says: Pin name expected!

Thanks for some help!

Jens
Reply | Threaded
Open this post in threaded view
|

Re: Problems with my Inc16

cadet1620
Administrator
'=0' and '=1' are illegal.  You want to use '=false' and '=true'.

'true' and 'false' automatically expand to match bus width so you can say, for example
    Add16(a=in, b=true, out=out);
to make a Dec16.

--Mark

[Please edit you post to remove the link to an otherwise good Inc16.]
Reply | Threaded
Open this post in threaded view
|

Re: Problems with my Inc16

stenzeman
Thank you very much.