Add16

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

Add16

ron2308
I would be obliged if you go over my code for the first lines and explain to me what is wrong:

FullAdder(a=a[0], b=b[0], c=False, carry=carry[0], sum=out[0]);
FullAdder(a=a[1], b=b[1], c=carry[0], carry=carry[1], sum=out[1]);
FullAdder(a=a[2], b=b[2], c=carry[1], carry=carry[2], sum=out[2]);
}

Ron Levy
Reply | Threaded
Open this post in threaded view
|

Re: Add16

WBahn
Administrator
If carry is an internal signal, then you can't access sub-buses of it. You can only do that for Part pins.