projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2217d92
)
Don't forget $dff has no EN
author
Eddie Hung
<eddie@fpgeh.com>
Fri, 23 Aug 2019 23:14:57 +0000
(16:14 -0700)
committer
Eddie Hung
<eddie@fpgeh.com>
Fri, 23 Aug 2019 23:14:57 +0000
(16:14 -0700)
passes/pmgen/xilinx_srl.pmg
patch
|
blob
|
history
diff --git
a/passes/pmgen/xilinx_srl.pmg
b/passes/pmgen/xilinx_srl.pmg
index 531ea1828bd31ccdfc30ed86f72f9027f1f5e7e6..fcfa79ea6b99c6f683211ce3ad116f9814249244 100644
(file)
--- a/
passes/pmgen/xilinx_srl.pmg
+++ b/
passes/pmgen/xilinx_srl.pmg
@@
-213,9
+213,11
@@
code clk_port en_port
else if (first->type.in($dff, $dffe))
clk_port = \CLK;
else log_abort();
- if (first->type.in($_DFF_N_, $_DFF_P_, $_DFFE_NN_, $_DFFE_NP_, $_DFFE_PN_, $_DFFE_PP_))
+ if (first->type.in($_DFF_N_, $_DFF_P_, $dff))
+ en_port = IdString();
+ else if (first->type.in($_DFFE_NN_, $_DFFE_NP_, $_DFFE_PN_, $_DFFE_PP_))
en_port = \E;
- else if (first->type.in($dff
, $dff
e))
+ else if (first->type.in($dffe))
en_port = \EN;
else log_abort();