mirror of https://github.com/YosysHQ/yosys.git
quicklogic: Add missing `RAM_INIT` param on TDP36K sim model
This commit is contained in:
parent
b602c0858f
commit
4903f99f85
|
@ -81,150 +81,7 @@ module TDP36K (
|
||||||
// Split (1 bit)
|
// Split (1 bit)
|
||||||
localparam [ 0:0] SPLIT_i = MODE_BITS[80];
|
localparam [ 0:0] SPLIT_i = MODE_BITS[80];
|
||||||
|
|
||||||
parameter INITP_00 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
parameter [1024*36-1:0] RAM_INIT = 36864'bx;
|
||||||
parameter INITP_01 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INITP_02 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INITP_03 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INITP_04 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INITP_05 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INITP_06 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INITP_07 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INITP_08 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INITP_09 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INITP_0A = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INITP_0B = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INITP_0C = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INITP_0D = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INITP_0E = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INITP_0F = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_00 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_01 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_02 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_03 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_04 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_05 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_06 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_07 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_08 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_09 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_0A = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_0B = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_0C = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_0D = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_0E = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_0F = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_10 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_11 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_12 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_13 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_14 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_15 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_16 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_17 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_18 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_19 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_1A = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_1B = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_1C = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_1D = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_1E = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_1F = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_20 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_21 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_22 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_23 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_24 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_25 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_26 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_27 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_28 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_29 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_2A = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_2B = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_2C = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_2D = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_2E = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_2F = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_30 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_31 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_32 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_33 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_34 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_35 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_36 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_37 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_38 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_39 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_3A = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_3B = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_3C = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_3D = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_3E = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_3F = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_40 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_41 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_42 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_43 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_44 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_45 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_46 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_47 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_48 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_49 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_4A = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_4B = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_4C = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_4D = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_4E = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_4F = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_50 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_51 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_52 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_53 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_54 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_55 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_56 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_57 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_58 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_59 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_5A = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_5B = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_5C = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_5D = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_5E = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_5F = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_60 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_61 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_62 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_63 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_64 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_65 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_66 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_67 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_68 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_69 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_6A = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_6B = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_6C = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_6D = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_6E = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_6F = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_70 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_71 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_72 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_73 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_74 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_75 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_76 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_77 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_78 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_79 = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_7A = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_7B = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_7C = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_7D = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_7E = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
parameter INIT_7F = 256'h0000000000000000000000000000000000000000000000000000000000000000;
|
|
||||||
|
|
||||||
input wire RESET_ni;
|
input wire RESET_ni;
|
||||||
input wire WEN_A1_i;
|
input wire WEN_A1_i;
|
||||||
|
@ -261,6 +118,15 @@ module TDP36K (
|
||||||
output reg [17:0] RDATA_A2_o;
|
output reg [17:0] RDATA_A2_o;
|
||||||
output reg [17:0] RDATA_B2_o;
|
output reg [17:0] RDATA_B2_o;
|
||||||
input wire FLUSH2_i;
|
input wire FLUSH2_i;
|
||||||
|
|
||||||
|
function [18431:0] split_init;
|
||||||
|
input index;
|
||||||
|
integer i;
|
||||||
|
for (i = 0; i < 1024; i = i + 1) begin
|
||||||
|
split_init[i * 18 +: 18] = RAM_INIT[i * 36 + index * 18 +: 18];
|
||||||
|
end
|
||||||
|
endfunction
|
||||||
|
|
||||||
wire EMPTY2;
|
wire EMPTY2;
|
||||||
wire EPO2;
|
wire EPO2;
|
||||||
wire EWM2;
|
wire EWM2;
|
||||||
|
@ -605,7 +471,8 @@ module TDP36K (
|
||||||
.SYNC_FIFO_i(SYNC_FIFO1_i),
|
.SYNC_FIFO_i(SYNC_FIFO1_i),
|
||||||
.POWERDN_i(POWERDN1_i),
|
.POWERDN_i(POWERDN1_i),
|
||||||
.SLEEP_i(SLEEP1_i),
|
.SLEEP_i(SLEEP1_i),
|
||||||
.PROTECT_i(PROTECT1_i)
|
.PROTECT_i(PROTECT1_i),
|
||||||
|
.INIT_i(split_init(0))
|
||||||
)u1(
|
)u1(
|
||||||
.RMODE_A_i(ram_rmode_a1),
|
.RMODE_A_i(ram_rmode_a1),
|
||||||
.RMODE_B_i(ram_rmode_b1),
|
.RMODE_B_i(ram_rmode_b1),
|
||||||
|
@ -642,7 +509,8 @@ module TDP36K (
|
||||||
.SYNC_FIFO_i(SYNC_FIFO2_i),
|
.SYNC_FIFO_i(SYNC_FIFO2_i),
|
||||||
.POWERDN_i(POWERDN2_i),
|
.POWERDN_i(POWERDN2_i),
|
||||||
.SLEEP_i(SLEEP2_i),
|
.SLEEP_i(SLEEP2_i),
|
||||||
.PROTECT_i(PROTECT2_i)
|
.PROTECT_i(PROTECT2_i),
|
||||||
|
.INIT_i(split_init(1))
|
||||||
)u2(
|
)u2(
|
||||||
.RMODE_A_i(ram_rmode_a2),
|
.RMODE_A_i(ram_rmode_a2),
|
||||||
.RMODE_B_i(ram_rmode_b2),
|
.RMODE_B_i(ram_rmode_b2),
|
||||||
|
|
Loading…
Reference in New Issue