From 4bee685c546d32f83a65e42a9066240be9c2bcde Mon Sep 17 00:00:00 2001 From: Michael Walle Date: Mon, 12 Nov 2012 19:36:15 +0100 Subject: [PATCH] lm32: remove unneeded parameter in lm32_dp_ram addr_depth can be computed by addr_width. Signed-off-by: Michael Walle --- verilog/lm32/lm32_cpu.v | 2 -- verilog/lm32/lm32_dp_ram.v | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/verilog/lm32/lm32_cpu.v b/verilog/lm32/lm32_cpu.v index ee0daf43b..ca06927e6 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 6ef952aba..bba523ed2 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<