aboutsummaryrefslogtreecommitdiffstats
path: root/passes/techmap
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-12-12 14:32:29 -0800
committerEddie Hung <eddie@fpgeh.com>2019-12-12 14:32:29 -0800
commitabf99d4dae8a464910b81122f9720660c59a631e (patch)
tree87ae3aadcb68c14287bfdf5011b81512185ddf45 /passes/techmap
parent2666482282421bb54213ba01054111eadc401373 (diff)
downloadyosys-abf99d4dae8a464910b81122f9720660c59a631e.tar.gz
yosys-abf99d4dae8a464910b81122f9720660c59a631e.tar.bz2
yosys-abf99d4dae8a464910b81122f9720660c59a631e.zip
tribuf: set scratchpad boolean 'tribuf.added_something'
Diffstat (limited to 'passes/techmap')
-rw-r--r--passes/techmap/tribuf.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/passes/techmap/tribuf.cc b/passes/techmap/tribuf.cc
index 41fdc8f3d..decf9a202 100644
--- a/passes/techmap/tribuf.cc
+++ b/passes/techmap/tribuf.cc
@@ -86,6 +86,7 @@ struct TribufWorker {
cell->unsetPort(ID(S));
cell->type = tri_type;
tribuf_cells[sigmap(cell->getPort(ID::Y))].push_back(cell);
+ module->design->scratchpad_set_bool("tribuf.added_something", true);
continue;
}
@@ -95,6 +96,7 @@ struct TribufWorker {
cell->unsetPort(ID(S));
cell->type = tri_type;
tribuf_cells[sigmap(cell->getPort(ID::Y))].push_back(cell);
+ module->design->scratchpad_set_bool("tribuf.added_something", true);
continue;
}
}
@@ -130,8 +132,10 @@ struct TribufWorker {
if (no_tribuf)
module->connect(it.first, muxout);
- else
+ else {
module->addTribuf(NEW_ID, muxout, module->ReduceOr(NEW_ID, pmux_s), it.first);
+ module->design->scratchpad_set_bool("tribuf.added_something", true);
+ }
}
}
}