Skip to content

Commit

Permalink
Merge pull request #4171 from yrabbit/sdp-wre
Browse files Browse the repository at this point in the history
gowin: Fix SDP write enable port.
  • Loading branch information
mmicko authored Jan 30, 2024
2 parents 112bcb0 + 79c5a06 commit b572e1a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions techlibs/gowin/brams_map.v
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ input [PORT_W_WIDTH-1:0] PORT_W_WR_DATA;

wire RST = OPTION_RESET_MODE == "SYNC" ? PORT_R_RD_SRST : PORT_R_RD_ARST;
wire [13:0] ADW = `addrbe_always(PORT_W_WIDTH, PORT_W_ADDR);
wire WRE = PORT_W_CLK_EN & PORT_W_WR_EN;

generate

Expand All @@ -347,7 +348,7 @@ if (PORT_W_WIDTH < 9 || PORT_R_WIDTH < 9) begin
.BLKSELB(3'b000),

.CLKA(PORT_W_CLK),
.CEA(PORT_W_CLK_EN),
.CEA(WRE),
.RESETA(1'b0),
.ADA(ADW),
.DI(DI),
Expand Down Expand Up @@ -380,7 +381,7 @@ end else begin
.BLKSELB(3'b000),

.CLKA(PORT_W_CLK),
.CEA(PORT_W_CLK_EN),
.CEA(WRE),
.RESETA(1'b0),
.ADA(ADW),
.DI(DI),
Expand Down

0 comments on commit b572e1a

Please sign in to comment.