public void device_t_after_ctor(device_t owner, string name) //: base(owner, name) { m_model = new param_model_t(this, "MODEL", ""); set_logic_family(owner.logic_family()); if (logic_family() == null) { throw new nl_exception(MF_NULLPTR_FAMILY(this.name(), "<owner logic family>")); } }
public void device_t_after_ctor(netlist_state_t owner, string name, string model) //: base(owner, name) { m_model = new param_model_t(this, "MODEL", model); set_logic_family(state().setup().family_from_model(m_model.op())); if (logic_family() == null) { throw new nl_exception(MF_NULLPTR_FAMILY(this.name(), m_model.op())); } }
// only needed by proxies public void device_t_after_ctor(netlist_state_t owner, string name, logic_family_desc_t desc) //: base(owner, name) { m_model = new param_model_t(this, "MODEL", ""); set_logic_family(desc); if (logic_family() == null) { throw new nl_exception(MF_NULLPTR_FAMILY(this.name(), "<pointer provided by constructor>")); } }