16-bit questions

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

16-bit questions

Houyx15
I've compiled this but it didn't run well
I think I didn't get the real meaning of 16-bit chips
Guys, can you help me how to make a 16-bit chip , please?
Thank you!

CHIP Not16 {
    IN in[16];
    OUT out[16];

    PARTS:
    // Put your code here:
        Not(in=in[0],out=out[0]);
        Not(in=in[1],out=out[1]);
        Not(in=in[2],out=out[2]);
        Not(in=in[3],out=out[3]);
        Not(in=in[4],out=out[4]);
        Not(in=in[5],out=out[5]);
        Not(in=in[6],out=out[6]);
        Not(in=in[7],out=out[7]);
        Not(in=in[8],out=out[8]);
        Not(in=in[9],out=out[9]);
        Not(in=in[10],out=out[10]);
        Not(in=in[11],out=out[11]);
        Not(in=in[12],out=out[12]);
        Not(in=in[13],out=out[13]);
        Not(in=in[14],out=out[14]);
        Not(in=in[15],out=out[15]);
}
Reply | Threaded
Open this post in threaded view
|

Re: 16-bit questions

cadet1620
Administrator
Houyx15 wrote
I've compiled this but it didn't run well
I think I didn't get the real meaning of 16-bit chips
Guys, can you help me how to make a 16-bit chip , please?
Thank you!
What do you mean by "didn't run well?"

What you posted is a correct Not16.hdl, and it passes the test on my system.

If it is failing on your system, it is most likely that there is a problem with your Not.hdl.

In particular, it the output from your Not16 is always 0, you may have the Not.hdl without implementation in the directory with the Not16.hdl.

You could also be running the Hardware Simulator on the wrong Not16.hdl. I've done that way too many times because I have lots of student subdirectories and the simulator remembers the last one I was looking at. 8-(

Please edit your post to remove the correct HDL code.

In general, if you are getting a miscompare and can't figure out why, post the Partname.out file so that we can help diagnose the failure.

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

Re: 16-bit questions

Houyx15
Reply | Threaded
Open this post in threaded view
|

Re: 16-bit questions

cadet1620
Administrator
Your screen shot does not show the test output line that is failing. The bad output is shown when you select "Output" from the "View" dropdown list. That's what we need to see.

It would give us the best chance to solve this if you you would upload (More>Upload a file) these files from your projects/01 folder.
    Not16.hdl
    Not16.cmp
    Not16.out
    Not.hdl

Do not use cut-and-paste to include the files as text in your post. We often need the exact files that you are using, and when they get posted as text the files can be slightly changed.

--Mark

Reply | Threaded
Open this post in threaded view
|

Re: 16-bit questions

Houyx15
Ok, I get it.Thank you!