コード例 #1
0
ファイル: PortManager.cs プロジェクト: hoangt/PIMSim
 /**
  * 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);
 }
コード例 #2
0
ファイル: MasterPort.cs プロジェクト: hoangt/PIMSim
 /**
  * Bind this master port to a slave port. This also does the
  * mirror action and binds the slave port to the master port.
  */
 public void bind(ref SlavePort slave_port)
 {
     _baseSlavePort = slave_port;
     _slavePort     = slave_port;
 }
コード例 #3
0
ファイル: MasterPort.cs プロジェクト: hoangt/PIMSim
 /**
  * Unbind this master port and the associated slave port.
  */
 public override void unbind()
 {
     _baseSlavePort = null;
     _slavePort     = null;
 }
コード例 #4
0
ファイル: MasterPort.cs プロジェクト: hoangt/PIMSim
 public MasterPort(string name, PortID _id = PortID.MaxValue) : base(name, _id)
 {
     _slavePort = null;
 }