示例#1
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);
        }
示例#2
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();
 }
示例#3
0
 //#define TT_LINE(x) \
 //        desc.desc.emplace_back(x);
 public static void TT_LINE(tt_desc desc, string x)
 {
     desc.desc.emplace_back(x);
 }
示例#4
0
 //#define TT_FAMILY(x) \
 //        desc.family = x;
 public static void TT_FAMILY(tt_desc desc, string x)
 {
     desc.family = x;
 }
示例#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;
        }