My knowledge on the subject is bare-bones. I created a .coe file and used Block Memory Generator to get an .mif file. I need to store the contents in the block memory and then use it. Following is my code:
module read_file; reg [15:0] music [0:255]; initial $readmemh("blk_mem_gen_1.mif", music); integer i; initial begin for(i=0; i<16; i=i+1) $display("music[%d] = %h", i, music[i]); end endmodule
As you can probably tell, I have no idea what I am doing. Please guide me through and point me to some resources if you happen to know some.