/** * 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); }
/** * 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; }
/** * Unbind this master port and the associated slave port. */ public override void unbind() { _baseSlavePort = null; _slavePort = null; }
public MasterPort(string name, PortID _id = PortID.MaxValue) : base(name, _id) { _slavePort = null; }