/* Or gate */

#include "Sim.h"

void simnet()
{
   Sig(sw0, 1);                // sw0 is one signal variable
   Sig(sw1, 1);                // sw1 is one signal variable
   Sig(out, 1);                // out is one signal variable

   Switch ( "aa", sw0, 'a', Zero );  // Location = "aa", name = sw0, key = 'a'
   Switch ( "ca", sw1, 'b', One );   // Initial value: Zero or One

   Or ( "bb", (sw0,sw1), out );  // Or: inputs = (sw0,sw1), output = out

   Probe ( "bc", out );        // Probe out
}



