Skip to content

Commit

Permalink
quicklogic: Add RAM_INIT to specialized BRAM models
Browse files Browse the repository at this point in the history
  • Loading branch information
povik committed Nov 30, 2023
1 parent a47c2aa commit 49cee23
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions techlibs/quicklogic/qlf_k6n10f/generate_bram_types_sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def generate(filename):
);
parameter [80:0] MODE_BITS = 81'd0;
parameter [1024*36-1:0] RAM_INIT = 36864'bx;
input wire RESET_ni;
input wire WEN_A1_i, WEN_B1_i;
Expand Down Expand Up @@ -61,7 +62,7 @@ def generate(filename):
input wire FLUSH2_i;
TDP36K #(.MODE_BITS(MODE_BITS)) bram (
TDP36K #(.MODE_BITS(MODE_BITS), .RAM_INIT(RAM_INIT)) bram (
.RESET_ni (RESET_ni),
.WEN_A1_i (WEN_A1_i), .WEN_B1_i (WEN_B1_i),
.REN_A1_i (REN_A1_i), .REN_B1_i (REN_B1_i),
Expand Down Expand Up @@ -148,6 +149,7 @@ def generate(filename):
);
parameter [80:0] MODE_BITS = 81'd0;
parameter [1024*36-1:0] RAM_INIT = 36864'bx;
input wire RESET_ni;
input wire WEN_A1_i, WEN_B1_i;
Expand Down Expand Up @@ -178,7 +180,7 @@ def generate(filename):
input wire FLUSH2_i;
TDP36K #(.MODE_BITS(MODE_BITS)) bram (
TDP36K #(.MODE_BITS(MODE_BITS), .RAM_INIT(RAM_INIT)) bram (
.RESET_ni (RESET_ni),
.WEN_A1_i (WEN_A1_i), .WEN_B1_i (WEN_B1_i),
.REN_A1_i (REN_A1_i), .REN_B1_i (REN_B1_i),
Expand Down

0 comments on commit 49cee23

Please sign in to comment.