예제 #1
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);
        }
예제 #2
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);
        }