Skip to content

Commit 2f23396

Browse files
authored
Merge pull request #447 from os-fpga/task/EDA-3187/add_setup_lec_sim
Task/eda 3187/add setup lec sim
2 parents 779c610 + c031c9d commit 2f23396

File tree

5 files changed

+20
-8
lines changed

5 files changed

+20
-8
lines changed

RTL_testcases/RTL_Benchmarks_Gap_Analysis/fixed_point_arithmetic_parameterized/raptor_run.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,9 @@ parse_cga exit 1; }
261261
else
262262
echo ""
263263
fi
264+
echo "setup_lec_sim">>raptor_tcl.tcl
265+
[ "$tool_name" = "iverilog" ] && echo "simulate gate icarus">>raptor_tcl.tcl || echo "simulate gate verilator">>raptor_tcl.tcl
266+
[ "$tool_name" = "iverilog" ] && echo "simulate pnr icarus">>raptor_tcl.tcl || echo "simulate pnr verilator">>raptor_tcl.tcl
264267
echo "sta">>raptor_tcl.tcl
265268
echo "power">>raptor_tcl.tcl
266269
echo "bitstream $bitstream">>raptor_tcl.tcl

RTL_testcases/RTL_Benchmarks_Gap_Analysis/fixed_point_arithmetic_parameterized/rtl/qdiv.v

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module qdiv(
3636
reg [N-1:0] dividend_copy;
3737
reg [2*(N-1)-1:0] divider_copy;
3838

39-
reg [5:0] bit;
39+
reg [5:0] bt;
4040
reg done;
4141

4242
initial done = 1;
@@ -49,7 +49,7 @@ module qdiv(
4949
if( done && start ) begin
5050

5151
done <= 1'b0;
52-
bit <= N+Q-2;
52+
bt <= N+Q-2;
5353
quotient <= 0;
5454
dividend_copy <= {1'b0,dividend[N-2:0]};
5555

@@ -69,18 +69,18 @@ module qdiv(
6969
//subtract
7070
dividend_copy <= dividend_copy - divider_copy;
7171
//set quotient
72-
quotient[bit] <= 1'b1;
72+
quotient[bt] <= 1'b1;
7373
end
7474

7575
//reduce divisor
7676
divider_copy <= divider_copy >> 1;
7777

7878
//stop condition
79-
if(bit == 0)
80-
done <= 1'b1;
81-
79+
if(bt == 0)
80+
done <= 1'b1;
81+
8282
//reduce bit counter
83-
bit <= bit - 1;
83+
bt <= bt - 1;
8484
end
8585
end
8686
endmodule

RTL_testcases/RTL_Benchmarks_Gap_Analysis/fpga-median/raptor_run.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ parse_cga exit 1; }
186186
# [ -z "$ip_name" ] && echo "add_library_ext .v .sv">>raptor_tcl.tcl || echo ""
187187
[ -z "$ip_name" ] && echo "add_design_file ./rtl/common_network.v">>raptor_tcl.tcl
188188
[ -z "$ip_name" ] && echo "add_design_file ./rtl/dff_3_pipe.v">>raptor_tcl.tcl
189-
[ -z "$ip_name" ] && echo "add_design_file ./rtl/dual_port_ram.v">>raptor_tcl.tcl
189+
# [ -z "$ip_name" ] && echo "add_design_file ./rtl/dual_port_ram.v">>raptor_tcl.tcl
190190
[ -z "$ip_name" ] && echo "add_design_file ./rtl/median.v">>raptor_tcl.tcl
191191
[ -z "$ip_name" ] && echo "add_design_file ./rtl/node.v">>raptor_tcl.tcl
192192
[ -z "$ip_name" ] && echo "add_design_file ./rtl/pixel_network.v">>raptor_tcl.tcl
@@ -264,6 +264,9 @@ parse_cga exit 1; }
264264
else
265265
echo ""
266266
fi
267+
echo "setup_lec_sim">>raptor_tcl.tcl
268+
[ "$tool_name" = "iverilog" ] && echo "simulate gate icarus">>raptor_tcl.tcl || echo "simulate gate verilator">>raptor_tcl.tcl
269+
[ "$tool_name" = "iverilog" ] && echo "simulate pnr icarus">>raptor_tcl.tcl || echo "simulate pnr verilator">>raptor_tcl.tcl
267270
echo "sta">>raptor_tcl.tcl
268271
echo "power">>raptor_tcl.tcl
269272
echo "bitstream $bitstream">>raptor_tcl.tcl

RTL_testcases/test_raptor_batch_options/fsm_encoding_binary/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/test_raptor_batch_options/fsm_encoding_onehot/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

0 commit comments

Comments
 (0)