mirror of https://github.com/YosysHQ/yosys.git
read_aiger to accept empty string for clk_name, passable only if no latches
This commit is contained in:
parent
0ca3fd6a1c
commit
721f6a14fb
|
@ -524,6 +524,7 @@ void AigerReader::parse_aiger_ascii()
|
||||||
// Parse latches
|
// Parse latches
|
||||||
RTLIL::Wire *clk_wire = nullptr;
|
RTLIL::Wire *clk_wire = nullptr;
|
||||||
if (L > 0) {
|
if (L > 0) {
|
||||||
|
log_assert(clk_name != "");
|
||||||
clk_wire = module->wire(clk_name);
|
clk_wire = module->wire(clk_name);
|
||||||
log_assert(!clk_wire);
|
log_assert(!clk_wire);
|
||||||
log_debug("Creating %s\n", clk_name.c_str());
|
log_debug("Creating %s\n", clk_name.c_str());
|
||||||
|
@ -654,6 +655,7 @@ void AigerReader::parse_aiger_binary()
|
||||||
// Parse latches
|
// Parse latches
|
||||||
RTLIL::Wire *clk_wire = nullptr;
|
RTLIL::Wire *clk_wire = nullptr;
|
||||||
if (L > 0) {
|
if (L > 0) {
|
||||||
|
log_assert(clk_name != "");
|
||||||
clk_wire = module->wire(clk_name);
|
clk_wire = module->wire(clk_name);
|
||||||
log_assert(!clk_wire);
|
log_assert(!clk_wire);
|
||||||
log_debug("Creating %s\n", clk_name.c_str());
|
log_debug("Creating %s\n", clk_name.c_str());
|
||||||
|
|
|
@ -523,8 +523,7 @@ void abc9_module(RTLIL::Design *design, RTLIL::Module *current_module, std::stri
|
||||||
bool builtin_lib = liberty_file.empty();
|
bool builtin_lib = liberty_file.empty();
|
||||||
RTLIL::Design *mapped_design = new RTLIL::Design;
|
RTLIL::Design *mapped_design = new RTLIL::Design;
|
||||||
//parse_blif(mapped_design, ifs, builtin_lib ? "\\DFF" : "\\_dff_", false, sop_mode);
|
//parse_blif(mapped_design, ifs, builtin_lib ? "\\DFF" : "\\_dff_", false, sop_mode);
|
||||||
buffer = stringf("%s/%s", tempdir_name.c_str(), "input.symbols");
|
AigerReader reader(mapped_design, ifs, "\\netlist", "" /* clk_name */, "" /* map_filename */, true /* wideports */);
|
||||||
AigerReader reader(mapped_design, ifs, "\\netlist", "\\clk", buffer, true /* wideports */);
|
|
||||||
reader.parse_xaiger();
|
reader.parse_xaiger();
|
||||||
|
|
||||||
ifs.close();
|
ifs.close();
|
||||||
|
|
Loading…
Reference in New Issue