aboutsummaryrefslogtreecommitdiffstats
path: root/passes/pmgen/xilinx_srl.pmg
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-08-23 18:11:28 -0700
committerEddie Hung <eddie@fpgeh.com>2019-08-23 18:11:28 -0700
commit70ce3d067010d67154c3cd5437caa16b4c8ca195 (patch)
tree3c6b57103cd4700462dc1063da1430e2aa64c850 /passes/pmgen/xilinx_srl.pmg
parent188b49378a47c7bfc311b4e439ac74635ba85a77 (diff)
downloadyosys-70ce3d067010d67154c3cd5437caa16b4c8ca195.tar.gz
yosys-70ce3d067010d67154c3cd5437caa16b4c8ca195.tar.bz2
yosys-70ce3d067010d67154c3cd5437caa16b4c8ca195.zip
Do not enforce !EN_POLARITY on $dffe
Diffstat (limited to 'passes/pmgen/xilinx_srl.pmg')
-rw-r--r--passes/pmgen/xilinx_srl.pmg2
1 files changed, 0 insertions, 2 deletions
diff --git a/passes/pmgen/xilinx_srl.pmg b/passes/pmgen/xilinx_srl.pmg
index 9f9308c2a..d41bd3be9 100644
--- a/passes/pmgen/xilinx_srl.pmg
+++ b/passes/pmgen/xilinx_srl.pmg
@@ -176,7 +176,6 @@ endcode
match first
select first->type.in($_DFF_N_, $_DFF_P_, $_DFFE_NN_, $_DFFE_NP_, $_DFFE_PN_, $_DFFE_PP_, $dff, $dffe)
select !first->has_keep_attr()
- select !first->type.in($dffe) || !param(first, \EN_POLARITY).as_bool()
slice idx GetSize(port(first, \Q))
select nusers(port(first, \Q)[idx]) <= 2
index <SigBit> port(first, \Q)[idx] === port(shiftx, \A)[shiftx_width-1]
@@ -220,7 +219,6 @@ match next
select next->type.in($_DFF_N_, $_DFF_P_, $_DFFE_NN_, $_DFFE_NP_, $_DFFE_PN_, $_DFFE_PP_, $dff, $dffe)
select !next->has_keep_attr()
select !port(next, \D)[0].wire->get_bool_attribute(\keep)
- select !next->type.in($dffe) || !param(next, \EN_POLARITY).as_bool()
slice idx GetSize(port(next, \Q))
select nusers(port(next, \Q)[idx]) <= 3
index <IdString> next->type === chain.back().first->type