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>
This commit is contained in:
Sylvain Munaut 2018-12-08 22:46:28 +01:00
parent 47a5dfdaa4
commit add6ab9b2a
1 changed files with 3 additions and 0 deletions

View File

@ -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)