|
Sig(signalX,1);
Component1( coord1, ..., signalX );
// SignalX is the output signal of Component1
Component2( coord2, signalX, ... );
// SignalX is the input signal of Component2
|
Signal sw0, sw1, out;
Switch ( "aa", sw0, 'a', Zero );
^^
Output signal of a switch
Switch ( "ca", sw1, 'b', One );
^^
Output signal of a switch
And ( "bb", (sw0,sw1), out );
^^^^^^^
Input signals of the And gate
Probe ( "bc", out );
|
Resulting connection made by the red signals:
|
|
Answer:
|
Example:
And ( "bb", ...., out ); // output = out Or ( "bc", ...., out ); // output = out |
How to run the program:
|
Error message:
|