Skip to content

Commit c3362fb

Browse files
committed
Added note on MIF file initialization
1 parent 343abf8 commit c3362fb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

true_dual_port_write_first_2_clock_ram.sv

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,16 @@ module true_dual_port_write_first_2_clock_ram #( parameter
5454
output [RAM_WIDTH-1:0] doutb
5555
);
5656

57+
58+
5759
logic [RAM_WIDTH-1:0] BRAM [RAM_DEPTH-1:0];
5860
logic [RAM_WIDTH-1:0] ram_data_a = {RAM_WIDTH{1'b0}};
5961
logic [RAM_WIDTH-1:0] ram_data_b = {RAM_WIDTH{1'b0}};
6062

63+
// ONLY FOR QUARTUS IDE
64+
// You can provide initialization in convinient .mif format
65+
//(* ram_init_file = INIT_FILE *) logic [RAM_WIDTH-1:0] BRAM [RAM_DEPTH-1:0];
66+
6167
// either initializes the memory values to a specified file or to all zeros
6268
generate
6369
if (INIT_FILE != "") begin: use_init_file

0 commit comments

Comments
 (0)