The Boolian function `x`

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

The Boolian function `x`

yahavigal
How do I do the `x` or `Y` function in HDL?
If I want the output to be equale to the input, I do `Not` and then `Not` again to return to the original value of the input.
I did it for example in a DMux, when i wanted `outA` to remain.
can u help?
Reply | Threaded
Open this post in threaded view
|

Re: The Boolian function `x`

cadet1620
Administrator
yahavigal wrote
How do I do the `x` or `Y` function in HDL?
Use the Or part.
    Or(a=x, b=y, out=something);

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

Re: The Boolian function `x`

yahavigal
I want 2 do only `X`, or only `Y`, not `Or`
Reply | Threaded
Open this post in threaded view
|

Re: The Boolian function `x`

cadet1620
Administrator
I think that you are asking how to connect a chip input directly to a chip output. There is no built in way to do this in HDL.

You can build a 'Wire' chip that you can then use in other parts.
/**
 * Wire: connect in directly to out. 
 */
CHIP Wire {
    IN  in;
    OUT out;
    PARTS:
    And(a=in, b=in, out=out);
}
You can then use Wire in other chips to make direct connections.
    Wire(in=something, out=someother);

--Mark