Forum Discussion
Altera_Forum
Honored Contributor
11 years agoAudio processor with verilog
Hi, I've been doing this project for about a year now and after so many ups and downs i've reached a point where everything seems right but warnings appear that I've got no clue how to amend. thi...
Altera_Forum
Honored Contributor
11 years agoI don't completely understand what you are referring to about mem index.e.g mem in phaserom is a rack of 400 12-bit registers.
the only 32 bit value here is the k and I think it's got nothing to do with the size of the registers unless i am wrong or misunderstood you.module PHASERROM(out,clk);
output reg out;
input clk;
integer k=0;
reg Mem1;
initial $readmemb("phaser.txt",Mem1);
always @ (posedge clk)
begin
out<= Mem1;
k=k+1;
if(k==400)
k=0;
end
endmodule