Beispiel #1
0
 /**
  * Bind this master port to a slave port. This also does the
  * mirror action and binds the slave port to the master port.
  */
 public static void bind(ref MasterPort msp, ref SlavePort slp)
 {
     // bind on the level of the base ports
     Debug.Assert(!ports.Contains(msp as Port));
     Debug.Assert(!ports.Contains(slp as Port));
     msp.bind(ref slp);
     slp.bind(ref msp);
     ports.Add(msp);
     ports.Add(slp);
 }
Beispiel #2
0
 /**
  * Called by the master port to bind. Should never be called
  * directly.
  */
 public void bind(ref MasterPort master_port)
 {
     _baseMasterPort = master_port;
     _masterPort     = master_port;
 }
Beispiel #3
0
 public SlavePort(string name, PortID id = PortID.MaxValue) : base(name, id)
 {
     _masterPort = null;
 }
Beispiel #4
0
 /**
  * Called by the master port to unbind. Should never be called
  * directly.
  */
 public override void unbind()
 {
     _baseMasterPort = null;
     _masterPort     = null;
 }