Skip to content

Commit 708554b

Browse files
authored
Merge pull request #414 from os-fpga/axi_lite_ip_litex
added setup_lec_sim command in axi_lite_ip_litex and axi_st_d256_gen2_only
2 parents 61278c7 + c7116ca commit 708554b

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

RTL_testcases/RTL_Benchmarks_Gap_Analysis/axi_lite_ip_litex/raptor_run.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,9 @@ parse_cga exit 1; }
259259
else
260260
echo ""
261261
fi
262+
echo "setup_lec_sim 10 2">>raptor_tcl.tcl
263+
echo "simulate gate icarus">>raptor_tcl.tcl || echo "simulate gate verilator">>raptor_tcl.tcl
264+
echo "simulate pnr icarus">>raptor_tcl.tcl || echo "simulate pnr verilator">>raptor_tcl.tcl
262265
echo "sta">>raptor_tcl.tcl
263266
echo "power">>raptor_tcl.tcl
264267
echo "bitstream $bitstream">>raptor_tcl.tcl
@@ -272,6 +275,8 @@ parse_cga exit 1; }
272275
fi
273276
fi
274277

278+
[ -f rtl/sim.v ] && sed -i -e "s|MEM_FILE_PATH|$PWD/rtl|g" rtl/sim.v
279+
275280
cd results_dir
276281
echo "Device: $device">>results.log
277282
echo "Strategy: $strategy">>results.log

RTL_testcases/RTL_Benchmarks_Gap_Analysis/axi_lite_ip_litex/rtl/sim.v

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2816,7 +2816,7 @@ end
28162816
// Port 0 | Read: Sync | Write: ---- |
28172817
reg [31:0] mem[0:5393];
28182818
initial begin
2819-
$readmemh("mem.init", mem);
2819+
$readmemh("MEM_FILE_PATH/mem.init", mem);
28202820
end
28212821
reg [31:0] mem_dat0;
28222822
always @(posedge sys_clk_1) begin
@@ -2831,7 +2831,7 @@ assign main_simsoc_dat_r = mem_dat0;
28312831
// Port 0 | Read: Sync | Write: Sync | Mode: Write-First | Write-Granularity: 8
28322832
reg [31:0] mem_1[0:874];
28332833
initial begin
2834-
$readmemh("mem_1.init", mem_1);
2834+
$readmemh("MEM_FILE_PATH/mem_1.init", mem_1);
28352835
end
28362836
reg [9:0] mem_1_adr0;
28372837
always @(posedge sys_clk_1) begin
@@ -2854,7 +2854,7 @@ assign main_ram_dat_r = mem_1[mem_1_adr0];
28542854
// Port 0 | Read: Sync | Write: ---- |
28552855
reg [7:0] mem_2[0:36];
28562856
initial begin
2857-
$readmemh("mem_2.init", mem_2);
2857+
$readmemh("MEM_FILE_PATH/mem_2.init", mem_2);
28582858
end
28592859
reg [5:0] mem_2_adr0;
28602860
always @(posedge sys_clk_1) begin
@@ -2869,8 +2869,8 @@ assign builder_csr_bankarray_dat_r = mem_2[mem_2_adr0];
28692869
// Port 0 | Read: Sync | Write: Sync | Mode: Read-First | Write-Granularity: 10
28702870
// Port 1 | Read: Sync | Write: ---- |
28712871
reg [9:0] storage[0:15];
2872-
reg [9:0] storage_dat0;
2873-
reg [9:0] storage_dat1;
2872+
reg [9:0] storage_dat0=10'd0;
2873+
reg [9:0] storage_dat1=10'd0;
28742874
always @(posedge sys_clk_1) begin
28752875
if (main_uart_tx_fifo_wrport_we)
28762876
storage[main_uart_tx_fifo_wrport_adr] <= main_uart_tx_fifo_wrport_dat_w;

RTL_testcases/RTL_Benchmarks_Gap_Analysis/axi_st_d256_gen2_only/raptor_run.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,9 @@ parse_cga exit 1; }
275275
else
276276
echo ""
277277
fi
278+
echo "setup_lec_sim 10 2">>raptor_tcl.tcl
279+
echo "simulate gate icarus">>raptor_tcl.tcl || echo "simulate gate verilator">>raptor_tcl.tcl
280+
echo "simulate pnr icarus">>raptor_tcl.tcl || echo "simulate pnr verilator">>raptor_tcl.tcl
278281
echo "sta">>raptor_tcl.tcl
279282
echo "power">>raptor_tcl.tcl
280283
echo "bitstream $bitstream">>raptor_tcl.tcl

0 commit comments

Comments
 (0)