mirror of https://github.com/YosysHQ/yosys.git
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:
parent
47a5dfdaa4
commit
add6ab9b2a
|
@ -81,6 +81,9 @@ struct Ice40FfssrPass : public Pass {
|
||||||
|
|
||||||
for (auto cell : ff_cells)
|
for (auto cell : ff_cells)
|
||||||
{
|
{
|
||||||
|
if (cell->get_bool_attribute("\\dont_touch"))
|
||||||
|
continue;
|
||||||
|
|
||||||
SigSpec sig_d = cell->getPort("\\D");
|
SigSpec sig_d = cell->getPort("\\D");
|
||||||
|
|
||||||
if (GetSize(sig_d) < 1)
|
if (GetSize(sig_d) < 1)
|
||||||
|
|
Loading…
Reference in New Issue