File tree Expand file tree Collapse file tree 8 files changed +15
-136
lines changed
RTL_testcases/RTL_Benchmarks_Gap_Analysis Expand file tree Collapse file tree 8 files changed +15
-136
lines changed Original file line number Diff line number Diff line change @@ -184,11 +184,11 @@ parse_cga exit 1; }
184
184
[ -z " $ip_name " ] && echo " add_include_path ./rtl" >> raptor_tcl.tcl || echo " "
185
185
# [ -z "$ip_name" ] && echo "add_library_path ./rtl">>raptor_tcl.tcl || echo ""
186
186
# [ -z "$ip_name" ] && echo "add_library_ext .v .sv">>raptor_tcl.tcl || echo ""
187
- [ -z " $ip_name " ] && echo " add_design_file ./rtl/dmx512_tx /dmx_dpram.v" >> raptor_tcl.tcl
188
- [ -z " $ip_name " ] && echo " add_design_file ./rtl/dmx512_tx/dmx_tx .v" >> raptor_tcl.tcl
187
+ [ -z " $ip_name " ] && echo " add_design_file ./rtl/dmx512_rx /dmx_dpram.v" >> raptor_tcl.tcl
188
+ [ -z " $ip_name " ] && echo " add_design_file ./rtl/dmx512_rx/dmx_rx .v" >> raptor_tcl.tcl
189
189
# #vary design to design
190
190
191
- echo " set_top_module dmx_tx " >> raptor_tcl.tcl
191
+ echo " set_top_module dmx_rx " >> raptor_tcl.tcl
192
192
193
193
# #vary design to design
194
194
[ -z " $add_constraint_file " ] && echo " " || echo " add_constraint_file $add_constraint_file " >> raptor_tcl.tcl
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ module dmx_dpram #(
24
24
input [depth- 1 :0 ] a,
25
25
input we,
26
26
input [width- 1 :0 ] di,
27
- output reg [width- 1 :0 ] do ,
27
+ output reg [width- 1 :0 ] dout ,
28
28
29
29
input [depth- 1 :0 ] a2,
30
30
input we2,
@@ -37,7 +37,7 @@ reg [width-1:0] ram[0:(1 << depth)-1];
37
37
always @(posedge clk) begin
38
38
if (we)
39
39
ram[a] <= di;
40
- do <= ram[a];
40
+ dout <= ram[a];
41
41
if (we2)
42
42
ram[a2] <= di2;
43
43
do2 <= ram[a2];
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ dmx_dpram channels(
44
44
.a(csr_a[8 :0 ]),
45
45
.we(1'b0 ),
46
46
.di(8'hxx ),
47
- .do (csr_channel),
47
+ .dout (csr_channel),
48
48
49
49
.a2(channel_a),
50
50
.we2(channel_we),
@@ -113,11 +113,11 @@ end
113
113
114
114
parameter break_threshold = clk_freq/ 11364 ;
115
115
reg [12 :0 ] break_counter;
116
- wire break = break_counter == 13'd0 ;
116
+ wire brk = break_counter == 13'd0 ;
117
117
always @(posedge sys_clk) begin
118
118
if (sys_rst| rx_r)
119
119
break_counter <= break_threshold;
120
- else if (~ break )
120
+ else if (~ brk )
121
121
break_counter <= break_counter - 13'd1 ;
122
122
end
123
123
@@ -168,7 +168,7 @@ always @(*) begin
168
168
ce_load = 1'b1 ;
169
169
channel_a_reset = 1'b1 ;
170
170
next_skip = 1'b1 ;
171
- if (break )
171
+ if (brk )
172
172
next_state = WAIT_MAB;
173
173
end
174
174
WAIT_MAB: begin
Load Diff This file was deleted.
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 @@ -24,7 +24,7 @@ module dmx_dpram #(
24
24
input [depth- 1 :0 ] a,
25
25
input we,
26
26
input [width- 1 :0 ] di,
27
- output reg [width- 1 :0 ] do ,
27
+ output reg [width- 1 :0 ] dout ,
28
28
29
29
input [depth- 1 :0 ] a2,
30
30
input we2,
@@ -37,7 +37,7 @@ reg [width-1:0] ram[0:(1 << depth)-1];
37
37
always @(posedge clk) begin
38
38
if (we)
39
39
ram[a] <= di;
40
- do <= ram[a];
40
+ dout <= ram[a];
41
41
if (we2)
42
42
ram[a2] <= di2;
43
43
do2 <= ram[a2];
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ dmx_dpram channels(
45
45
.a(csr_a[8 :0 ]),
46
46
.we(csr_channels_we),
47
47
.di(csr_di[7 :0 ]),
48
- .do (csr_do_channels[7 :0 ]),
48
+ .dout (csr_do_channels[7 :0 ]),
49
49
50
50
.a2(channel_a),
51
51
.we2(1'b0 ),
You can’t perform that action at this time.
0 commit comments