From 5f4be8c0a855823b13865299f28effc445f50486 Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Wed, 11 Mar 2026 20:38:52 +0100 Subject: [PATCH] gowin: wire output clock enable ports to enable inputs, not constants --- techlibs/gowin/brams_map.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/techlibs/gowin/brams_map.v b/techlibs/gowin/brams_map.v index 6187eadac..65a9297b3 100644 --- a/techlibs/gowin/brams_map.v +++ b/techlibs/gowin/brams_map.v @@ -239,7 +239,7 @@ if (PORT_A_WIDTH < 9 || PORT_B_WIDTH < 9) begin .CEA(PORT_A_CLK_EN), .WREA(PORT_A_WR_EN), .RESETA(RSTA), - .OCEA(1'b1), + .OCEA(PORT_A_CLK_EN), .ADA(ADA), .DIA(DIA), .DOA(DOA), @@ -248,7 +248,7 @@ if (PORT_A_WIDTH < 9 || PORT_B_WIDTH < 9) begin .CEB(PORT_B_CLK_EN), .WREB(PORT_B_WR_EN), .RESETB(RSTB), - .OCEB(1'b1), + .OCEB(PORT_B_CLK_EN), .ADB(ADB), .DIB(DIB), .DOB(DOB), @@ -283,7 +283,7 @@ end else begin .CEA(PORT_A_CLK_EN), .WREA(PORT_A_WR_EN), .RESETA(RSTA), - .OCEA(1'b1), + .OCEA(PORT_A_CLK_EN), .ADA(ADA), .DIA(DIA), .DOA(DOA), @@ -292,7 +292,7 @@ end else begin .CEB(PORT_B_CLK_EN), .WREB(PORT_B_WR_EN), .RESETB(RSTB), - .OCEB(1'b1), + .OCEB(PORT_B_CLK_EN), .ADB(ADB), .DIB(DIB), .DOB(DOB),