Help on Not16

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

Help on Not16

thenar
I figured out how to make all of the gates up until this point. The hardware simulator keeps giving me an error like "in[0..15]: the specified sub bus is not in the bus range" and I cannot figure out what to do. here is my code if you can help me please do.

Not (in[1..16]=in, out[1..16]=out);
Reply | Threaded
Open this post in threaded view
|

Re: Help on Not16

gcheong
I would suggest drawing out the circuit diagram for the chip first to understand what it is you need in terms of individual components. You probably don't need to draw the whole Not16, but maybe try a Not4 to get the basic idea. For example if the following represents a Not2 then what do you need inside the box to make it work given that you already have a Not gate?

     in0 -------|-----------|-------- out0
                    |              |
     in1 -------|-----------|---------out1
             
Reply | Threaded
Open this post in threaded view
|

Re: Help on Not16

thenar
I really don't know im sorry if you could help me more that would be great.
Reply | Threaded
Open this post in threaded view
|

Re: Help on Not16

ybakos
Ben,
Spend time reviewing the appendix regarding HDL. It may take you multiple reads to really absorb, but it's worth it.

Here's a hint regarding one way to design any of the 16-bit chips: they'll require 16 of their 1-bit implementations.

Reply | Threaded
Open this post in threaded view
|

Re: Help on Not16

thenar
In reply to this post by gcheong
maybe a not gate?
Reply | Threaded
Open this post in threaded view
|

Re: Help on Not16

thenar
In reply to this post by ybakos
oh I know thank you and I spent like 3 hours yesterday reading appendix A
Reply | Threaded
Open this post in threaded view
|

Re: Help on Not16

thenar
In reply to this post by ybakos
I did what you said and it says "in is not a pin in Nand"
Reply | Threaded
Open this post in threaded view
|

Re: Help on Not16

ybakos
Look at the specification for NAND. What are it's pin names?

(Why are you constructing a 16-bit Not with anything other than 1-bit Nots?)
Ben
Reply | Threaded
Open this post in threaded view
|

Re: Help on Not16

Ben
I changed it now it's saying that "in is not a pin in Not"
Reply | Threaded
Open this post in threaded view
|

Re: Help on Not16

gcheong
You understand from ybakos that you will need 16 1-bit Not gates to make the 16-bit Not chip right? So the start of your HDL will look something like this (first 3 parts displayed):

CHIP Not16 {

    IN  in[16];
    OUT out[16];

    PARTS:
    Not(in=?,out=?);
    Not(in=?,out=?);
    Not(in=?,out=?);
   ....

So the task is how do you hook up each individual input of the Not16 to the input of a Not gate and then hook up each output of the Not gates to one of the ouputs of the Not16? These hookups are represented by the ? here. I hope I'm not giving away too much here.
Ben
Reply | Threaded
Open this post in threaded view
|

Re: Help on Not16

Ben
no it appears as that i had the right idea it was mostly a syntax thing