From: Elms Date: Fri, 1 Mar 2019 00:22:24 +0000 (-0800) Subject: ice40: use 2 bits for READ/WRITE MODE for SB_RAM map X-Git-Tag: yosys-0.9~285^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cd2902ab1fec57503320e32ba5620c6487f9cb85;p=yosys.git ice40: use 2 bits for READ/WRITE MODE for SB_RAM map EBLIF output .param will only use necessary 2 bits Signed-off-by: Elms --- diff --git a/techlibs/ice40/brams_map.v b/techlibs/ice40/brams_map.v index 19a61d73b..ad3bccd21 100644 --- a/techlibs/ice40/brams_map.v +++ b/techlibs/ice40/brams_map.v @@ -7,8 +7,8 @@ module \$__ICE40_RAM4K ( input [10:0] WADDR, input [15:0] MASK, WDATA ); - parameter integer READ_MODE = 0; - parameter integer WRITE_MODE = 0; + parameter [1:0] READ_MODE = 0; + parameter [1:0] WRITE_MODE = 0; parameter [0:0] NEGCLK_R = 0; parameter [0:0] NEGCLK_W = 0;