From: Michael Walle Date: Mon, 12 Nov 2012 18:36:15 +0000 (+0100) Subject: lm32: remove unneeded parameter in lm32_dp_ram X-Git-Tag: 24jan2021_ls180~3079 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4bee685c546d32f83a65e42a9066240be9c2bcde;p=litex.git lm32: remove unneeded parameter in lm32_dp_ram addr_depth can be computed by addr_width. Signed-off-by: Michael Walle --- diff --git a/verilog/lm32/lm32_cpu.v b/verilog/lm32/lm32_cpu.v index ee0daf43..ca06927e 100644 --- a/verilog/lm32/lm32_cpu.v +++ b/verilog/lm32/lm32_cpu.v @@ -1324,7 +1324,6 @@ lm32_debug #( lm32_dp_ram #( // ----- Parameters ----- - .addr_depth(1<<5), .addr_width(5), .data_width(32) ) @@ -1343,7 +1342,6 @@ lm32_debug #( lm32_dp_ram #( - .addr_depth(1<<5), .addr_width(5), .data_width(32) ) diff --git a/verilog/lm32/lm32_dp_ram.v b/verilog/lm32/lm32_dp_ram.v index 6ef952ab..bba523ed 100644 --- a/verilog/lm32/lm32_dp_ram.v +++ b/verilog/lm32/lm32_dp_ram.v @@ -8,7 +8,6 @@ module lm32_dp_ram( rdata_o); parameter addr_width = 32; -parameter addr_depth = 1024; parameter data_width = 8; input clk_i; @@ -19,7 +18,7 @@ input [data_width-1:0] wdata_i; input [addr_width-1:0] raddr_i; output [data_width-1:0] rdata_o; -reg [data_width-1:0] mem[addr_depth-1:0]; +reg [data_width-1:0] mem[(1<