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