Skip to content

Commit 52b11e8

Browse files
committed
added setup_lec_sim for 3 designs
1 parent a29e1e3 commit 52b11e8

File tree

5 files changed

+19
-4
lines changed

5 files changed

+19
-4
lines changed

RTL_testcases/RTL_Benchmarks_Gap_Analysis/ecg/raptor_run.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ start=`date +%s`
77
design="ecg"
88
ip_name="" #design_level
99
#select tool (verilator, vcs, ghdl, iverilog)
10-
tool_name="iverilog"
10+
tool_name="verilator"
1111

1212
#simulation stages
1313
post_synth_sim=false
@@ -262,6 +262,9 @@ parse_cga exit 1; }
262262
else
263263
echo ""
264264
fi
265+
echo "setup_lec_sim 5 2">>raptor_tcl.tcl
266+
[ "$tool_name" = "iverilog" ] && echo "simulate gate icarus">>raptor_tcl.tcl || echo "simulate gate verilator">>raptor_tcl.tcl
267+
[ "$tool_name" = "iverilog" ] && echo "simulate pnr icarus">>raptor_tcl.tcl || echo "simulate pnr verilator">>raptor_tcl.tcl
265268
echo "sta">>raptor_tcl.tcl
266269
echo "power">>raptor_tcl.tcl
267270
echo "bitstream $bitstream">>raptor_tcl.tcl

RTL_testcases/RTL_Benchmarks_Gap_Analysis/ecg/rtl/f3m.v

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,10 @@ module f3m_mult3(clk, reset,
160160
done);
161161
input clk, reset;
162162
input [`WIDTH:0] a0, b0, a1, b1, a2, b2;
163-
output reg [`WIDTH:0] c0, c1, c2;
164-
output reg done;
163+
output reg [`WIDTH:0] c0 = 0;
164+
output reg [`WIDTH:0] c1 = 0;
165+
output reg [`WIDTH:0] c2 = 0;
166+
output reg done = 0;
165167
reg [3:0] K;
166168
reg mult_reset, delay1, delay2;
167169
wire e1, e2, e3, mult_done, delay3, rst;

RTL_testcases/RTL_Benchmarks_Gap_Analysis/fast_antilog/raptor_run.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,9 @@ parse_cga exit 1; }
258258
else
259259
echo ""
260260
fi
261+
echo "setup_lec_sim">>raptor_tcl.tcl
262+
[ "$tool_name" = "iverilog" ] && echo "simulate gate icarus">>raptor_tcl.tcl || echo "simulate gate verilator">>raptor_tcl.tcl
263+
[ "$tool_name" = "iverilog" ] && echo "simulate pnr icarus">>raptor_tcl.tcl || echo "simulate pnr verilator">>raptor_tcl.tcl
261264
echo "sta">>raptor_tcl.tcl
262265
echo "power">>raptor_tcl.tcl
263266
echo "bitstream $bitstream">>raptor_tcl.tcl

RTL_testcases/RTL_Benchmarks_Gap_Analysis/fast_fourier_transform/raptor_run.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ start=`date +%s`
77
design="fast_fourier_transform"
88
ip_name="" #design_level
99
#select tool (verilator, vcs, ghdl, iverilog)
10-
tool_name="iverilog"
10+
tool_name="verilator"
1111

1212
#simulation stages
1313
post_synth_sim=false
@@ -258,6 +258,9 @@ parse_cga exit 1; }
258258
else
259259
echo ""
260260
fi
261+
echo "setup_lec_sim">>raptor_tcl.tcl
262+
[ "$tool_name" = "iverilog" ] && echo "simulate gate icarus">>raptor_tcl.tcl || echo "simulate gate verilator">>raptor_tcl.tcl
263+
[ "$tool_name" = "iverilog" ] && echo "simulate pnr icarus">>raptor_tcl.tcl || echo "simulate pnr verilator">>raptor_tcl.tcl
261264
echo "sta">>raptor_tcl.tcl
262265
echo "power">>raptor_tcl.tcl
263266
echo "bitstream $bitstream">>raptor_tcl.tcl

RTL_testcases/opensource_with_testbench/Encryption/raptor_run.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,10 @@ parse_cga exit 1; }
264264
else
265265
echo ""
266266
fi
267+
echo "clear_simulation_files">>raptor_tcl.tcl
268+
echo "setup_lec_sim">>raptor_tcl.tcl
269+
[ "$tool_name" = "iverilog" ] && echo "simulate gate icarus">>raptor_tcl.tcl || echo "simulate gate verilator">>raptor_tcl.tcl
270+
[ "$tool_name" = "iverilog" ] && echo "simulate pnr icarus">>raptor_tcl.tcl || echo "simulate pnr verilator">>raptor_tcl.tcl
267271
echo "sta">>raptor_tcl.tcl
268272
echo "power">>raptor_tcl.tcl
269273
echo "bitstream $bitstream">>raptor_tcl.tcl

0 commit comments

Comments
 (0)