diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-08-23 16:14:57 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-08-23 16:14:57 -0700 |
commit | f2d48142843f2ed8bc9f0e55197ba347d210a6e1 (patch) | |
tree | 2f90817e2bb6328ddd5f03cf531c7673e3ff2960 | |
parent | 2217d926a9d353d732ba7dd81a3782f964463f5d (diff) | |
download | yosys-f2d48142843f2ed8bc9f0e55197ba347d210a6e1.tar.gz yosys-f2d48142843f2ed8bc9f0e55197ba347d210a6e1.tar.bz2 yosys-f2d48142843f2ed8bc9f0e55197ba347d210a6e1.zip |
Don't forget $dff has no EN
-rw-r--r-- | passes/pmgen/xilinx_srl.pmg | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/passes/pmgen/xilinx_srl.pmg b/passes/pmgen/xilinx_srl.pmg index 531ea1828..fcfa79ea6 100644 --- 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, $dffe)) + else if (first->type.in($dffe)) en_port = \EN; else log_abort(); |