lm32: remove unneeded parameter in lm32_dp_ram

addr_depth can be computed by addr_width.

Signed-off-by: Michael Walle <michael@walle.cc>
This commit is contained in:
Michael Walle 2012-11-12 19:36:15 +01:00 committed by Sebastien Bourdeauducq
parent 10495e72d0
commit 4bee685c54
2 changed files with 1 additions and 4 deletions

View File

@ -1324,7 +1324,6 @@ lm32_debug #(
lm32_dp_ram lm32_dp_ram
#( #(
// ----- Parameters ----- // ----- Parameters -----
.addr_depth(1<<5),
.addr_width(5), .addr_width(5),
.data_width(32) .data_width(32)
) )
@ -1343,7 +1342,6 @@ lm32_debug #(
lm32_dp_ram lm32_dp_ram
#( #(
.addr_depth(1<<5),
.addr_width(5), .addr_width(5),
.data_width(32) .data_width(32)
) )

View File

@ -8,7 +8,6 @@ module lm32_dp_ram(
rdata_o); rdata_o);
parameter addr_width = 32; parameter addr_width = 32;
parameter addr_depth = 1024;
parameter data_width = 8; parameter data_width = 8;
input clk_i; input clk_i;
@ -19,7 +18,7 @@ input [data_width-1:0] wdata_i;
input [addr_width-1:0] raddr_i; input [addr_width-1:0] raddr_i;
output [data_width-1:0] rdata_o; output [data_width-1:0] rdata_o;
reg [data_width-1:0] mem[addr_depth-1:0]; reg [data_width-1:0] mem[(1<<addr_width)-1:0];
reg [addr_width-1:0] raddr_r; reg [addr_width-1:0] raddr_r;
assign rdata_o = mem[raddr_r]; assign rdata_o = mem[raddr_r];