Exemplo n.º 1
0
        // 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>"));
            }
        }
Exemplo n.º 2
0
 protected device_t(object owner, string name, logic_family_desc_t desc)
     : base(owner, name)
 {
     if (owner is netlist_state_t)
     {
         device_t_after_ctor((netlist_state_t)owner, name, desc);
     }
     else if (owner is device_t)
     {
         new emu_unimplemented();
     }
     else
     {
         throw new emu_unimplemented();
     }
 }
Exemplo n.º 3
0
 public void set_logic_family(logic_family_desc_t fam)
 {
     m_logic_family = fam;
 }