/* ----------------------------------
   Different definition of signals
   ---------------------------------- */

#include "Sim.h"

void simnet()
{
   Signal a;     // one signal with no name

   Switch ( "1a", a, 'a', Zero );
   Probe  ( "1b", a );


   Signal b(1);  // one signal with no name

   Switch ( "1a", b, 'b', Zero );
   Probe  ( "1b", b );

   Signal c(4);  // 4 signals with no name
   Switch ( "2a", c, 'c', Zero );  // 4 switches: c d e f
   Probe  ( "2b", c );

   Signal d(1, "John"); // one signal, named "John"
   Switch ( "3a", d, 'g', Zero );  // 4 switches: c d e f
   Probe  ( "3b", d );


   Signal e(2, "e");    // 2 signals, named e[1] and e[0]
   Switch ( "4a", e, 'h', Zero );  // 4 switches: c d e f
   Probe  ( "4b", e );

   Sig(f, 2);           // 2 signals, named f[1] and f[0] 
                        // (It's a short hand for the previous definition
                        // if you want to use the variable name as name)
   Switch ( "5a", f, 'j', Zero );  // 4 switches: c d e f
   Probe  ( "5b", f );
}



