File tree Expand file tree Collapse file tree 5 files changed +20
-8
lines changed
RTL_Benchmarks_Gap_Analysis
fixed_point_arithmetic_parameterized
test_raptor_batch_options Expand file tree Collapse file tree 5 files changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -261,6 +261,9 @@ parse_cga exit 1; }
261
261
else
262
262
echo " "
263
263
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
264
267
echo " sta" >> raptor_tcl.tcl
265
268
echo " power" >> raptor_tcl.tcl
266
269
echo " bitstream $bitstream " >> raptor_tcl.tcl
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ module qdiv(
36
36
reg [N- 1 :0 ] dividend_copy;
37
37
reg [2 * (N- 1 )- 1 :0 ] divider_copy;
38
38
39
- reg [5 :0 ] bit ;
39
+ reg [5 :0 ] bt ;
40
40
reg done;
41
41
42
42
initial done = 1 ;
@@ -49,7 +49,7 @@ module qdiv(
49
49
if ( done && start ) begin
50
50
51
51
done <= 1'b0 ;
52
- bit <= N+ Q- 2 ;
52
+ bt <= N+ Q- 2 ;
53
53
quotient <= 0 ;
54
54
dividend_copy <= {1'b0 ,dividend[N- 2 :0 ]};
55
55
@@ -69,18 +69,18 @@ module qdiv(
69
69
// subtract
70
70
dividend_copy <= dividend_copy - divider_copy;
71
71
// set quotient
72
- quotient[bit ] <= 1'b1 ;
72
+ quotient[bt ] <= 1'b1 ;
73
73
end
74
74
75
75
// reduce divisor
76
76
divider_copy <= divider_copy >> 1 ;
77
77
78
78
// stop condition
79
- if (bit == 0 )
80
- done <= 1'b1 ;
81
-
79
+ if (bt == 0 )
80
+ done <= 1'b1 ;
81
+
82
82
// reduce bit counter
83
- bit <= bit - 1 ;
83
+ bt <= bt - 1 ;
84
84
end
85
85
end
86
86
endmodule
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ parse_cga exit 1; }
186
186
# [ -z "$ip_name" ] && echo "add_library_ext .v .sv">>raptor_tcl.tcl || echo ""
187
187
[ -z " $ip_name " ] && echo " add_design_file ./rtl/common_network.v" >> raptor_tcl.tcl
188
188
[ -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
190
190
[ -z " $ip_name " ] && echo " add_design_file ./rtl/median.v" >> raptor_tcl.tcl
191
191
[ -z " $ip_name " ] && echo " add_design_file ./rtl/node.v" >> raptor_tcl.tcl
192
192
[ -z " $ip_name " ] && echo " add_design_file ./rtl/pixel_network.v" >> raptor_tcl.tcl
@@ -264,6 +264,9 @@ parse_cga exit 1; }
264
264
else
265
265
echo " "
266
266
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
267
270
echo " sta" >> raptor_tcl.tcl
268
271
echo " power" >> raptor_tcl.tcl
269
272
echo " bitstream $bitstream " >> raptor_tcl.tcl
Original file line number Diff line number Diff line change @@ -258,6 +258,9 @@ parse_cga exit 1; }
258
258
else
259
259
echo " "
260
260
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
261
264
echo " sta" >> raptor_tcl.tcl
262
265
echo " power" >> raptor_tcl.tcl
263
266
echo " bitstream $bitstream " >> raptor_tcl.tcl
Original file line number Diff line number Diff line change @@ -258,6 +258,9 @@ parse_cga exit 1; }
258
258
else
259
259
echo " "
260
260
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
261
264
echo " sta" >> raptor_tcl.tcl
262
265
echo " power" >> raptor_tcl.tcl
263
266
echo " bitstream $bitstream " >> raptor_tcl.tcl
You can’t perform that action at this time.
0 commit comments