From c3362fb4a28a2e754a1c7114bd5898dbb9fed1fd Mon Sep 17 00:00:00 2001 From: Konstantin Pavlov Date: Sun, 20 Feb 2022 06:39:03 +0300 Subject: [PATCH] Added note on MIF file initialization --- true_dual_port_write_first_2_clock_ram.sv | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/true_dual_port_write_first_2_clock_ram.sv b/true_dual_port_write_first_2_clock_ram.sv index d74f1d7..4cf9ccd 100755 --- a/true_dual_port_write_first_2_clock_ram.sv +++ b/true_dual_port_write_first_2_clock_ram.sv @@ -54,10 +54,16 @@ module true_dual_port_write_first_2_clock_ram #( parameter output [RAM_WIDTH-1:0] doutb ); + + logic [RAM_WIDTH-1:0] BRAM [RAM_DEPTH-1:0]; logic [RAM_WIDTH-1:0] ram_data_a = {RAM_WIDTH{1'b0}}; logic [RAM_WIDTH-1:0] ram_data_b = {RAM_WIDTH{1'b0}}; + // ONLY FOR QUARTUS IDE + // You can provide initialization in convinient .mif format + //(* ram_init_file = INIT_FILE *) logic [RAM_WIDTH-1:0] BRAM [RAM_DEPTH-1:0]; + // either initializes the memory values to a specified file or to all zeros generate if (INIT_FILE != "") begin: use_init_file