/* gatesDemo.c 8-13-93 */ #include "Sim.h" void simnet() { Signal a, b, c, out(3), f; // Sig(a,1); Sig(b,1); Sig(c,1); // Sig(out,3); Sig(f,1); Switch ( "1a", a, 'a' ); Switch ( "1a", b, 'b' ); Switch ( "1a", c, 'c' ); Nor ( "1b", (a,c), out[2] ); Iand ( "1b", b, a, out[1] ); And ( "1b", (a,c), out[0] ); Or ( "1c", out, f ); Probe ( "1d", f ); }