diff options
author | Eddie Hung <eddie@fpgeh.com> | 2020-01-06 12:04:08 -0800 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2020-01-06 12:04:08 -0800 |
commit | 921ff0f5e3f0ec688d08e8bf67e36ca877a9dc80 (patch) | |
tree | 0735437101f3b2219918146e5b2b3244b2f54f1b /backends/aiger/aiger.cc | |
parent | c89186b363056060838c79621889075aa1484194 (diff) | |
parent | 64ace4b0dc5c8dd24132bc8046b2bacc163f9164 (diff) | |
download | yosys-921ff0f5e3f0ec688d08e8bf67e36ca877a9dc80.tar.gz yosys-921ff0f5e3f0ec688d08e8bf67e36ca877a9dc80.tar.bz2 yosys-921ff0f5e3f0ec688d08e8bf67e36ca877a9dc80.zip |
Merge remote-tracking branch 'origin/xaig_dff' into eddie/abc9_refactor
Diffstat (limited to 'backends/aiger/aiger.cc')
-rw-r--r-- | backends/aiger/aiger.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/backends/aiger/aiger.cc b/backends/aiger/aiger.cc index 44718baae..a51e3648c 100644 --- a/backends/aiger/aiger.cc +++ b/backends/aiger/aiger.cc @@ -787,6 +787,14 @@ struct AigerBackend : public Backend { if (top_module == nullptr) log_error("Can't find top module in current design!\n"); + if (!design->selected_whole_module(top_module)) + log_cmd_error("Can't handle partially selected module %s!\n", log_id(top_module)); + + if (!top_module->processes.empty()) + log_error("Found unmapped processes in module %s: unmapped processes are not supported in AIGER backend!\n", log_id(top_module)); + if (!top_module->memories.empty()) + log_error("Found unmapped memories in module %s: unmapped memories are not supported in AIGER backend!\n", log_id(top_module)); + AigerWriter writer(top_module, zinit_mode, imode, omode, bmode, lmode); writer.write_aiger(*f, ascii_mode, miter_mode, symbols_mode); |