Skip to content

Commit 8b982f4

Browse files
authored
Merge pull request #416 from os-fpga/setup_lec
added setup_lec_sim command for 4 designs
2 parents 4644500 + 9640c57 commit 8b982f4

File tree

6 files changed

+22
-6
lines changed

6 files changed

+22
-6
lines changed

RTL_testcases/RTL_Benchmarks_Gap_Analysis/axi_st_d256_multichannel/raptor_run.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,9 @@ parse_cga exit 1; }
282282
else
283283
echo ""
284284
fi
285+
echo "setup_lec_sim 10 2">>raptor_tcl.tcl
286+
[ "$tool_name" = "iverilog" ] && echo "simulate gate icarus">>raptor_tcl.tcl || echo "simulate gate verilator">>raptor_tcl.tcl
287+
[ "$tool_name" = "iverilog" ] && echo "simulate pnr icarus">>raptor_tcl.tcl || echo "simulate pnr verilator">>raptor_tcl.tcl
285288
echo "sta">>raptor_tcl.tcl
286289
echo "power">>raptor_tcl.tcl
287290
echo "bitstream $bitstream">>raptor_tcl.tcl

RTL_testcases/RTL_Benchmarks_Gap_Analysis/axi_st_d64/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+
[ "$tool_name" = "iverilog" ] && echo "simulate gate icarus">>raptor_tcl.tcl || echo "simulate gate verilator">>raptor_tcl.tcl
280+
[ "$tool_name" = "iverilog" ] && 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

RTL_testcases/RTL_Benchmarks_Gap_Analysis/axi_st_d64_nordy/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+
[ "$tool_name" = "iverilog" ] && echo "simulate gate icarus">>raptor_tcl.tcl || echo "simulate gate verilator">>raptor_tcl.tcl
280+
[ "$tool_name" = "iverilog" ] && 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

RTL_testcases/RTL_Benchmarks_Gap_Analysis/axi_st_d64_nordy/rtl/axi_st_d64_nordy_master_name.sv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ module axi_st_d64_nordy_master_name (
3131

3232
);
3333

34+
wire user_st_vld;
35+
3436
// Connect Data
3537

3638
assign user_st_vld = 1'b1 ; // user_st_vld is unused

RTL_testcases/RTL_Benchmarks_Gap_Analysis/axilite_noctrl_combined_ip_litex/raptor_run.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ device="GEMINI_COMPACT_104x68"
1919

2020
strategy="delay" #(area, delay, mixed, none)
2121

22-
add_constraint_file="./raptor_sdc.sdc" #Sets SDC + location constraints Constraints: set_pin_loc, set_mode, all SDC Standard commands
22+
add_constraint_file="" #Sets SDC + location constraints Constraints: set_pin_loc, set_mode, all SDC Standard commands
2323

2424
verific_parser="" #(on/off)
2525

@@ -259,6 +259,9 @@ parse_cga exit 1; }
259259
else
260260
echo ""
261261
fi
262+
echo "setup_lec_sim">>raptor_tcl.tcl
263+
[ "$tool_name" = "iverilog" ] && echo "simulate gate icarus">>raptor_tcl.tcl || echo "simulate gate verilator">>raptor_tcl.tcl
264+
[ "$tool_name" = "iverilog" ] && 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/axilite_noctrl_combined_ip_litex/rtl/sim.v

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2697,7 +2697,7 @@ end
26972697
// Port 0 | Read: Sync | Write: ---- |
26982698
reg [31:0] mem[0:5348];
26992699
initial begin
2700-
$readmemh("mem.init", mem);
2700+
$readmemh("MEM_FILE_PATH/mem.init", mem);
27012701
end
27022702
reg [31:0] mem_dat0;
27032703
always @(posedge sys_clk_1) begin
@@ -2712,7 +2712,7 @@ assign main_simsoc_dat_r = mem_dat0;
27122712
// Port 0 | Read: Sync | Write: Sync | Mode: Write-First | Write-Granularity: 8
27132713
reg [31:0] mem_1[0:874];
27142714
initial begin
2715-
$readmemh("mem_1.init", mem_1);
2715+
$readmemh("MEM_FILE_PATH/mem_1.init", mem_1);
27162716
end
27172717
reg [9:0] mem_1_adr0;
27182718
always @(posedge sys_clk_1) begin
@@ -2735,7 +2735,7 @@ assign main_ram_dat_r = mem_1[mem_1_adr0];
27352735
// Port 0 | Read: Sync | Write: ---- |
27362736
reg [7:0] mem_2[0:36];
27372737
initial begin
2738-
$readmemh("mem_2.init", mem_2);
2738+
$readmemh("MEM_FILE_PATH/mem_2.init", mem_2);
27392739
end
27402740
reg [5:0] mem_2_adr0;
27412741
always @(posedge sys_clk_1) begin
@@ -2750,8 +2750,8 @@ assign builder_csr_bankarray_dat_r = mem_2[mem_2_adr0];
27502750
// Port 0 | Read: Sync | Write: Sync | Mode: Read-First | Write-Granularity: 10
27512751
// Port 1 | Read: Sync | Write: ---- |
27522752
reg [9:0] storage[0:15];
2753-
reg [9:0] storage_dat0;
2754-
reg [9:0] storage_dat1;
2753+
reg [9:0] storage_dat0=10'd0;
2754+
reg [9:0] storage_dat1=10'd0;
27552755
always @(posedge sys_clk_1) begin
27562756
if (main_uart_tx_fifo_wrport_we)
27572757
storage[main_uart_tx_fifo_wrport_adr] <= main_uart_tx_fifo_wrport_dat_w;

0 commit comments

Comments
 (0)