mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 17:45:33 +00:00
read_aiger to accept empty string for clk_name, passable only if no latches
This commit is contained in:
parent
0ca3fd6a1c
commit
721f6a14fb
2 changed files with 3 additions and 2 deletions
|
@ -524,6 +524,7 @@ void AigerReader::parse_aiger_ascii()
|
|||
// Parse latches
|
||||
RTLIL::Wire *clk_wire = nullptr;
|
||||
if (L > 0) {
|
||||
log_assert(clk_name != "");
|
||||
clk_wire = module->wire(clk_name);
|
||||
log_assert(!clk_wire);
|
||||
log_debug("Creating %s\n", clk_name.c_str());
|
||||
|
@ -654,6 +655,7 @@ void AigerReader::parse_aiger_binary()
|
|||
// Parse latches
|
||||
RTLIL::Wire *clk_wire = nullptr;
|
||||
if (L > 0) {
|
||||
log_assert(clk_name != "");
|
||||
clk_wire = module->wire(clk_name);
|
||||
log_assert(!clk_wire);
|
||||
log_debug("Creating %s\n", clk_name.c_str());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue