Skip to content

Commit

Permalink
Apply sim fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kgugala committed Dec 24, 2024
1 parent a45eb94 commit c0cb273
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 0 additions & 2 deletions design/el2_mem.sv
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ import el2_pkg::*;

el2_mem_if mem_export_local ();

assign mem_export .clk = clk;
assign icache_export .clk = clk;
assign mem_export_local.clk = clk;

assign mem_export .iccm_clken = mem_export_local.iccm_clken;
Expand Down
9 changes: 6 additions & 3 deletions testbench/tb_top.sv
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ module tb_top
bit [31:0] mem_signature_begin = 32'd0; // TODO:
bit [31:0] mem_signature_end = 32'd0;
bit [31:0] mem_mailbox = 32'hD0580000;
logic rst_l;
`endif
logic porst_l;
logic [pt.PIC_TOTAL_INT:1] ext_int;
Expand Down Expand Up @@ -1010,7 +1011,9 @@ module tb_top
`endif
end


`ifndef VERILATOR
assign rst_l = cycleCnt > 5;
`endif
assign porst_l = cycleCnt > 2;

//=========================================================================-
Expand Down Expand Up @@ -2570,7 +2573,7 @@ end : Gen_iccm_enable


// ICACHE TAG
if (pt.ICACHE_WAYPACK == 0 ) begin : PACKED_0
if (pt.ICACHE_WAYPACK == 0 ) begin : PACKED_11
for (genvar i=0; i<pt.ICACHE_NUM_WAYS; i++) begin: WAYS
if (pt.ICACHE_TAG_DEPTH == 32) begin : size_32
`EL2_IC_TAG_SRAM(32,26,i)
Expand All @@ -2597,7 +2600,7 @@ if (pt.ICACHE_WAYPACK == 0 ) begin : PACKED_0
`EL2_IC_TAG_SRAM(4096,26,i)
end // if (pt.ICACHE_TAG_DEPTH == 4096)
end // block: WAYS
end // block: PACKED_0
end // block: PACKED_11

else begin : PACKED_1
if (pt.ICACHE_ECC) begin : ECC1
Expand Down

0 comments on commit c0cb273

Please sign in to comment.