From a099cbb45bfd1a170514dbd420b06c6e4a008518 Mon Sep 17 00:00:00 2001 From: David Harris Date: Sun, 29 Jan 2023 11:35:17 -0800 Subject: [PATCH] Fixed configuration of ram to use macro when depth is corret --- pipelined/src/generic/mem/ram1p1rwbe.sv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pipelined/src/generic/mem/ram1p1rwbe.sv b/pipelined/src/generic/mem/ram1p1rwbe.sv index 47b3f1fe7..6ab6590fd 100644 --- a/pipelined/src/generic/mem/ram1p1rwbe.sv +++ b/pipelined/src/generic/mem/ram1p1rwbe.sv @@ -49,7 +49,7 @@ module ram1p1rwbe #(parameter DEPTH=128, WIDTH=256) ( // *************************************************************************** // TRUE SRAM macro // *************************************************************************** - if (`USE_SRAM == 1 && WIDTH == 128 && `XLEN == 64) begin + if (`USE_SRAM == 1 && WIDTH == 128 && DEPTH == 64) begin genvar index; // 64 x 128-bit SRAM logic [WIDTH-1:0] BitWriteMask; @@ -59,7 +59,7 @@ module ram1p1rwbe #(parameter DEPTH=128, WIDTH=256) ( .A(addr), .D(din), .BWEB(~BitWriteMask), .Q(dout)); - end else if (`USE_SRAM == 1 && WIDTH == 44 && `XLEN == 64) begin + end else if (`USE_SRAM == 1 && WIDTH == 44 && DEPTH == 64) begin genvar index; // 64 x 44-bit SRAM logic [WIDTH-1:0] BitWriteMask;