Sub bus of an internal node may not be used error message.

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

Sub bus of an internal node may not be used error message.

jbaramidze
Hi! I'm trying to do such simple thing:

    Xor16(a=nowide, b=out5, out=outt);

    Or8Way(in=outt[0..7], out=zr1);

what's illegal in it? it's giving me 'Sub bus of an internal node may not be used' error message.
Reply | Threaded
Open this post in threaded view
|

Re: Sub bus of an internal node may not be used error message.

cadet1620
Administrator
jbaramidze wrote
Hi! I'm trying to do such simple thing:

    Xor16(a=nowide, b=out5, out=outt);

    Or8Way(in=outt[0..7], out=zr1);

what's illegal in it? it's giving me 'Sub bus of an internal node may not be used' error message.
This is a limitation in the Hardware Simulator. You need to do the sub-busing when you create the internal bus:
    Xor16(a=nowide, b=out5, out[0:7]=outt);
    Or8Way(in=outt, out=zr1);

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

Re: Sub bus of an internal node may not be used error message.

jbaramidze
Clear, thanks for such quick response!
Reply | Threaded
Open this post in threaded view
|

Re: Sub bus of an internal node may not be used error message.

jbaramidze
In reply to this post by cadet1620
But.... how about project5, when using ALU?

     ALU(x=operand2, y=operand1,
                     out=ALUresult,
                     out=outM,
                     zx=operand[11],
                     nx=instruction[10],
                     zy=operand[9],
                     ny=operand[8],
                     f=operand[7],
                     no=operand[6],
                     zr=zr,
                     ng=ng);

how can I re-organise this code without 'sub-bussing internal node'?
Reply | Threaded
Open this post in threaded view
|

Re: Sub bus of an internal node may not be used error message.

cadet1620
Administrator
"instruction[10]" should be OK since instruction is an input to the CPU.

What is "operand"?

--Mark