module test(clk , dataout); input clk; output reg [7:0] dataout; reg [7:0] memory [255:0] //memory integer i =0; initial $readmemb("jizelleSalvador.txt",memory ); //$readmemh for hex //This way you have stored your file data into the memory in binary format; // //Now if you want to read from memory.. always@(posedge clk) if(i <256) begin dataout <= memory[i] i <= i + 1; end endmodule