Skip to content

Commit 7bac192

Browse files
committed
nexus: Fix BRAM write enable in PDP mode
Signed-off-by: gatecat <gatecat@ds0.me>
1 parent d321659 commit 7bac192

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

techlibs/nexus/brams_map.v

+2-2
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ PDPSC16K #(
310310
) _TECHMAP_REPLACE_ (
311311
.CLK(CLK_C),
312312

313-
.CEW(PORT_W_CLK_EN),
313+
.CEW(PORT_W_CLK_EN & (|PORT_W_WR_EN)),
314314
.CSW(3'b111),
315315
.ADW(ADW),
316316
.DI(DI),
@@ -400,7 +400,7 @@ PDP16K #(
400400
.GSR("DISABLED"),
401401
) _TECHMAP_REPLACE_ (
402402
.CLKW(PORT_W_CLK),
403-
.CEW(PORT_W_CLK_EN),
403+
.CEW(PORT_W_CLK_EN & (|PORT_W_WR_EN)),
404404
.CSW(3'b111),
405405
.ADW(ADW),
406406
.DI(DI),

0 commit comments

Comments
 (0)