Example #1
0
 public properties(string defparam, plib.source_location sourceloc)
 {
     m_defparam  = defparam;
     m_sourceloc = sourceloc;
     m_type      = element_type.BUILTIN;
 }
Example #2
0
        public void truthtable_create(tt_desc desc, string def_params, plib.source_location loc)
        {
            var fac = factory.nlid_truthtable_global.truthtable_create(desc, new netlist.factory.properties(def_params, loc));  //auto fac = factory::truthtable_create(desc, netlist::factory.properties(def_params, std::move(loc)));

            factory_().add(fac);
        }
Example #3
0
 //#define TRUTHTABLE_END() \
 //        setup.truthtable_create(desc, def_params, std::move(sloc)); \
 //        NETLIST_END()
 public static void TRUTHTABLE_END(nlparse_t setup, tt_desc desc, plib.source_location sloc, string def_params)
 {
     setup.truthtable_create(desc, def_params, sloc);
     NETLIST_END();
 }
Example #4
0
 public void register_lib_entry(string name, string def_params, plib.source_location loc)
 {
     factory_().add(new factory.library_element_t(name, new factory.properties(def_params, loc)));  //factory().add(plib::make_unique<factory::library_element_t, host_arena>(name, factory::properties(def_params, std::move(loc))));
 }
Example #5
0
        // -----------------------------------------------------------------------------
        // truthtable defines
        // -----------------------------------------------------------------------------

        //#define TRUTHTABLE_START(cname, in, out, pdef_params)                           \
        //        NETLIST_START(cname) \
        //        netlist::tt_desc desc;                                                 \
        //        desc.name = #cname ;                                                   \
        //        desc.ni = in;                                                          \
        //        desc.no = out;                                                         \
        //        desc.family = "";                                                      \
        //        auto sloc = PSOURCELOC();                                              \
        //        const pstring def_params = pdef_params;
        public static void TRUTHTABLE_START(string cname, unsigned in_, unsigned out_, string pdef_params, out tt_desc desc_, out plib.source_location sloc_, out string def_params_)
        {
            netlist.tt_desc desc = new netlist.tt_desc();
            desc.name   = cname;
            desc.ni     = in_;
            desc.no     = out_;
            desc.family = "";
            var    sloc       = plib.pg.PSOURCELOC();
            string def_params = pdef_params;

            desc_       = desc;
            sloc_       = sloc;
            def_params_ = def_params;
        }