aboutsummaryrefslogtreecommitdiffstats
path: root/passes/techmap/abc9_ops.cc
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2020-01-15 13:14:48 -0800
committerEddie Hung <eddie@fpgeh.com>2020-01-15 13:14:48 -0800
commit5a63c197477d59567424faab3b56329c426394b9 (patch)
tree7c3f01af5ce7489342c07b1bc0fff3db0cb7f74b /passes/techmap/abc9_ops.cc
parent38aa248385537fcea76d3396c31bbc17f6871972 (diff)
downloadyosys-5a63c197477d59567424faab3b56329c426394b9.tar.gz
yosys-5a63c197477d59567424faab3b56329c426394b9.tar.bz2
yosys-5a63c197477d59567424faab3b56329c426394b9.zip
abc9_ops: -write_box is empty, output a dummy box to prevent ABC error
Diffstat (limited to 'passes/techmap/abc9_ops.cc')
-rw-r--r--passes/techmap/abc9_ops.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/passes/techmap/abc9_ops.cc b/passes/techmap/abc9_ops.cc
index fd2759ae5..13340f311 100644
--- a/passes/techmap/abc9_ops.cc
+++ b/passes/techmap/abc9_ops.cc
@@ -569,6 +569,9 @@ void write_box(RTLIL::Module *module, const std::string &src, const std::string
module->attributes.erase(it);
}
+ if (ofs.tellp() == 0)
+ ofs << "(dummy) 1 0 0 0";
+
ofs.close();
}