aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/ice40
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2018-12-08 22:46:28 +0100
committerSylvain Munaut <tnt@246tNt.com>2018-12-08 22:46:28 +0100
commitadd6ab9b2a8d94bee0e7949a4524cc673ec336b1 (patch)
tree0d6563091993f55976319bdabaffcf1fac40c953 /techlibs/ice40
parent47a5dfdaa4bd7d400c6e3d58476de80904df460d (diff)
downloadyosys-add6ab9b2a8d94bee0e7949a4524cc673ec336b1.tar.gz
yosys-add6ab9b2a8d94bee0e7949a4524cc673ec336b1.tar.bz2
yosys-add6ab9b2a8d94bee0e7949a4524cc673ec336b1.zip
ice40: Honor the "dont_touch" attribute in FFSSR pass
This is useful if you want to place FF manually ... can't merge SR in those because it might make the manual placement invalid Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'techlibs/ice40')
-rw-r--r--techlibs/ice40/ice40_ffssr.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/techlibs/ice40/ice40_ffssr.cc b/techlibs/ice40/ice40_ffssr.cc
index 668df09dd..a7649d7a0 100644
--- a/techlibs/ice40/ice40_ffssr.cc
+++ b/techlibs/ice40/ice40_ffssr.cc
@@ -81,6 +81,9 @@ struct Ice40FfssrPass : public Pass {
for (auto cell : ff_cells)
{
+ if (cell->get_bool_attribute("\\dont_touch"))
+ continue;
+
SigSpec sig_d = cell->getPort("\\D");
if (GetSize(sig_d) < 1)