Below is the RAM Module, where i wish to read the coefficients value.
entermodule RAM_LP#( parameter width=8, length=16 )
(output reg [width*width-1:0]data_out,
input [width-1:0] address,
input clk,we);
// let the tools infer the right number of BRAMs
(* ram_style = "block" *)
(* synthesis, ram_block *)
reg [15:0] mem [0:65535];
parameter load_file = "generated/LP_coefficients.txt";
initial
begin
$readmemh (load_file, mem);
end
always @(posedge clk) begin
if (we)
data_out <= mem[address];
end
endmodule
Giving warning and stuck at this point ->
WARNING:Xst:653 - Signal <mem> is used but never assigned. This sourceless signal will be automatically connected to value 0000000000000000.
Please guide me how to resolve this .
[2*width-1:0]data_outinstead of[width*width-1:0]data_outsince yourmemis of 16-bits width. and address as[length-1:0] address. - sharvil111