Exemple #1
0
        nld_power_pins m_supply;  //NETLIB_NAME(power_pins) m_supply;


        //NETLIB_CONSTRUCTOR(logic_input)
        //detail.family_setter_t m_famsetter;
        //template <class CLASS>
        public nld_logic_input(object owner, string name)
            : base(owner, name)
        {
            m_Q      = new logic_output_t(this, "Q");
            m_IN     = new param_logic_t(this, "IN", false);
            m_supply = new nld_power_pins(this);
        }
Exemple #2
0
 //NETLIB_CONSTRUCTOR_MODEL(CD4066_GATE, "CD4XXX")
 public nld_CD4066_GATE(object owner, string name)
     : base(owner, name, "CD4XXX")
 {
     m_R       = new analog.nld_R_base(this, "R");
     m_control = new analog_input_t(this, "CTL", control);
     m_base_r  = new param_fp_t(this, "BASER", nlconst.magic(270.0));
     m_last    = new state_var <bool>(this, "m_last", false);
     m_supply  = new nld_power_pins(this);
 }
Exemple #3
0
 //NETLIB_CONSTRUCTOR(7450)
 public nld_7450(object owner, string name)
     : base(owner, name)
 {
     m_A          = new logic_input_t(this, "A", inputs);
     m_B          = new logic_input_t(this, "B", inputs);
     m_C          = new logic_input_t(this, "C", inputs);
     m_D          = new logic_input_t(this, "D", inputs);
     m_Q          = new logic_output_t(this, "Q");
     m_power_pins = new nld_power_pins(this);
 }
Exemple #4
0
 //NETLIB_CONSTRUCTOR(74153)
 public nld_74153(object owner, string name)
     : base(owner, name)
 {
     m_C          = new object_array_t_logic_input_t <u64_const_4>(this, new logic_input_t(this, "C0", sub), new logic_input_t(this, "C1", sub), new logic_input_t(this, "C2", sub), new logic_input_t(this, "C3", sub));
     m_G          = new logic_input_t(this, "G", sub);
     m_Y          = new logic_output_t(this, "AY"); //FIXME: Change netlists
     m_chan       = new state_var <unsigned>(this, "m_chan", 0);
     m_A          = new logic_input_t(this, "A", other);
     m_B          = new logic_input_t(this, "B", other);
     m_power_pins = new nld_power_pins(this);
 }
Exemple #5
0
 //NETLIB_CONSTRUCTOR(7474)
 public nld_7474(object owner, string name)
     : base(owner, name)
 {
     m_D          = new logic_input_t(this, "D", inputs);
     m_CLRQ       = new logic_input_t(this, "CLRQ", inputs);
     m_PREQ       = new logic_input_t(this, "PREQ", inputs);
     m_CLK        = new logic_input_t(this, "CLK", clk);
     m_Q          = new logic_output_t(this, "Q");
     m_QQ         = new logic_output_t(this, "QQ");
     m_nextD      = new state_var <netlist_sig_t>(this, "m_nextD", 0);
     m_power_pins = new nld_power_pins(this);
 }
Exemple #6
0
 //NETLIB_CONSTRUCTOR(7493)
 public nld_7493(object owner, string name)
     : base(owner, name)
 {
     m_CLKA       = new logic_input_t(this, "CLKA", updA);
     m_CLKB       = new logic_input_t(this, "CLKB", updB);
     m_QA         = new logic_output_t(this, "QA");
     m_QB         = new object_array_t_logic_output_t <u64_const_3>(this, new logic_output_t(this, "QB"), new logic_output_t(this, "QC"), new logic_output_t(this, "QD"));
     m_a          = new state_var <unsigned>(this, "m_a", 0);
     m_bcd        = new state_var <unsigned>(this, "m_b", 0);
     m_R1         = new logic_input_t(this, "R1", inputs);
     m_R2         = new logic_input_t(this, "R2", inputs);
     m_power_pins = new nld_power_pins(this);
 }
Exemple #7
0
        //NETLIB_CONSTRUCTOR(clock)
        //detail.family_setter_t m_famsetter;
        //template <class CLASS>
        public nld_clock(object owner, string name)
            : base(owner, name)
        {
            m_feedback = new logic_input_t(this, "FB", fb);
            m_Q        = new logic_output_t(this, "Q");
            m_freq     = new param_fp_t(this, "FREQ", nlconst.magic(7159000.0 * 5.0));
            m_supply   = new nld_power_pins(this);


            m_inc = netlist_time.from_fp(plib.pg.reciprocal(m_freq.op() * nlconst.two()));

            connect("FB", "Q");
        }
Exemple #8
0
        //NETLIB_CONSTRUCTOR(74107_base)
        public nld_74107_base(object owner, string name, desc_base desc)
            : base(owner, name)
        {
            D = desc;

            m_clk        = new logic_input_t(this, "CLK", clk);
            m_J          = new logic_input_t(this, "J", other);
            m_K          = new logic_input_t(this, "K", other);
            m_clrQ       = new logic_input_t(this, "CLRQ", other);
            m_Q          = new logic_output_t(this, "Q");
            m_QQ         = new logic_output_t(this, "QQ");
            m_power_pins = new nld_power_pins(this);
        }
Exemple #9
0
 //NETLIB_CONSTRUCTOR(7448)
 public nld_7448(object owner, string name)
     : base(owner, name)
 {
     m_A          = new logic_input_t(this, "A", inputs);
     m_B          = new logic_input_t(this, "B", inputs);
     m_C          = new logic_input_t(this, "C", inputs);
     m_D          = new logic_input_t(this, "D", inputs);
     m_LTQ        = new logic_input_t(this, "LTQ", inputs);
     m_BIQ        = new logic_input_t(this, "BIQ", inputs);
     m_RBIQ       = new logic_input_t(this, "RBIQ", inputs);
     m_state      = new state_var <unsigned>(this, "m_state", 0);
     m_Q          = new object_array_t_logic_output_t <u64_const_7>(this, new logic_output_t(this, "a"), new logic_output_t(this, "b"), new logic_output_t(this, "c"), new logic_output_t(this, "d"), new logic_output_t(this, "e"), new logic_output_t(this, "f"), new logic_output_t(this, "g"));
     m_power_pins = new nld_power_pins(this);
 }
Exemple #10
0
 //NETLIB_CONSTRUCTOR(7490)
 public nld_7490(object owner, string name)
     : base(owner, name)
 {
     m_A          = new logic_input_t(this, "A", inputs);
     m_B          = new logic_input_t(this, "B", inputs);
     m_R1         = new logic_input_t(this, "R1", inputs);
     m_R2         = new logic_input_t(this, "R2", inputs);
     m_R91        = new logic_input_t(this, "R91", inputs);
     m_R92        = new logic_input_t(this, "R92", inputs);
     m_cnt        = new state_var_u8(this, "m_cnt", 0);
     m_last_A     = new state_var <netlist_sig_t>(this, "m_last_A", 0);
     m_last_B     = new state_var <netlist_sig_t>(this, "m_last_B", 0);
     m_Q          = new object_array_t_logic_output_t <u64_const_4>(this, new logic_output_t(this, "QA"), new logic_output_t(this, "QB"), new logic_output_t(this, "QC"), new logic_output_t(this, "QD"));
     m_power_pins = new nld_power_pins(this);
 }
Exemple #11
0
        //NETLIB_CONSTRUCTOR(9316_base)
        public nld_9316_base(object owner, string name, desc_base desc)
            : base(owner, name)
        {
            D = desc;

            m_CLK        = new logic_input_t(this, "CLK", clk);
            m_ENT        = new logic_input_t(this, "ENT", other);
            m_LOADQ      = new logic_input_t(this, "LOADQ", other);
            m_ENP        = new logic_input_t(this, "ENP", other);
            m_CLRQ       = new logic_input_t(this, "CLRQ", other);
            m_ABCD       = new object_array_t_logic_input_t <u64_const_4>(this, new logic_input_t(this, "A", abcd), new logic_input_t(this, "B", abcd), new logic_input_t(this, "C", abcd), new logic_input_t(this, "D", abcd));
            m_RC         = new logic_output_t(this, "RC");
            m_Q          = new object_array_t_logic_output_t <u64_const_4>(this, new logic_output_t(this, "QA"), new logic_output_t(this, "QB"), new logic_output_t(this, "QC"), new logic_output_t(this, "QD"));
            m_cnt        = new state_var <unsigned>(this, "m_cnt", 0);
            m_abcd       = new state_var <unsigned>(this, "m_abcd", 0);
            m_loadq      = new state_var <unsigned>(this, "m_loadq", 0);
            m_ent        = new state_var <unsigned>(this, "m_ent", 0);
            m_power_pins = new nld_power_pins(this);
        }
Exemple #12
0
 //NETLIB_CONSTRUCTOR(7483)
 public nld_7483(object owner, string name)
     : base(owner, name)
 {
     m_C0         = new logic_input_t(this, "C0", c0);
     m_A1         = new logic_input_t(this, "A1", upd_a);
     m_A2         = new logic_input_t(this, "A2", upd_a);
     m_A3         = new logic_input_t(this, "A3", upd_a);
     m_A4         = new logic_input_t(this, "A4", upd_a);
     m_B1         = new logic_input_t(this, "B1", upd_b);
     m_B2         = new logic_input_t(this, "B2", upd_b);
     m_B3         = new logic_input_t(this, "B3", upd_b);
     m_B4         = new logic_input_t(this, "B4", upd_b);
     m_a          = new state_var_u8(this, "m_a", 0);
     m_b          = new state_var_u8(this, "m_b", 0);
     m_lastr      = new state_var_u8(this, "m_lastr", 0);
     m_S1         = new logic_output_t(this, "S1");
     m_S2         = new logic_output_t(this, "S2");
     m_S3         = new logic_output_t(this, "S3");
     m_S4         = new logic_output_t(this, "S4");
     m_C4         = new logic_output_t(this, "C4");
     m_power_pins = new nld_power_pins(this);
 }