diff options
author | gatecat <gatecat@ds0.me> | 2023-01-04 12:00:03 +0100 |
---|---|---|
committer | myrtle <gatecat@ds0.me> | 2023-01-04 17:59:36 +0100 |
commit | 7bac1920b28672ba125aba991f30debae1cc0d8f (patch) | |
tree | 9b4d6208d2b284f4aec01d304a27ff2ef8e1ea0c | |
parent | d3216593da248c3b0dd2c46f6f5182be13bb1a17 (diff) | |
download | yosys-7bac1920b28672ba125aba991f30debae1cc0d8f.tar.gz yosys-7bac1920b28672ba125aba991f30debae1cc0d8f.tar.bz2 yosys-7bac1920b28672ba125aba991f30debae1cc0d8f.zip |
nexus: Fix BRAM write enable in PDP mode
Signed-off-by: gatecat <gatecat@ds0.me>
-rw-r--r-- | techlibs/nexus/brams_map.v | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/techlibs/nexus/brams_map.v b/techlibs/nexus/brams_map.v index 17306cded..cec56cec4 100644 --- a/techlibs/nexus/brams_map.v +++ b/techlibs/nexus/brams_map.v @@ -310,7 +310,7 @@ PDPSC16K #( ) _TECHMAP_REPLACE_ ( .CLK(CLK_C), - .CEW(PORT_W_CLK_EN), + .CEW(PORT_W_CLK_EN & (|PORT_W_WR_EN)), .CSW(3'b111), .ADW(ADW), .DI(DI), @@ -400,7 +400,7 @@ PDP16K #( .GSR("DISABLED"), ) _TECHMAP_REPLACE_ ( .CLKW(PORT_W_CLK), - .CEW(PORT_W_CLK_EN), + .CEW(PORT_W_CLK_EN & (|PORT_W_WR_EN)), .CSW(3'b111), .ADW(ADW), .DI(DI), |