Skip to content

Commit 5a5dc97

Browse files
authored
Merge pull request #440 from os-fpga/task/EDA-3187/add_setup_lec_sim
added setup_lec_sim for dmx512_tx
2 parents eb478f2 + f2d5a3e commit 5a5dc97

File tree

8 files changed

+15
-136
lines changed

8 files changed

+15
-136
lines changed

RTL_testcases/RTL_Benchmarks_Gap_Analysis/dmx512/raptor_run.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,11 @@ parse_cga exit 1; }
184184
[ -z "$ip_name" ] && echo "add_include_path ./rtl">>raptor_tcl.tcl || echo ""
185185
# [ -z "$ip_name" ] && echo "add_library_path ./rtl">>raptor_tcl.tcl || echo ""
186186
# [ -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
189189
##vary design to design
190190

191-
echo "set_top_module dmx_tx">>raptor_tcl.tcl
191+
echo "set_top_module dmx_rx">>raptor_tcl.tcl
192192

193193
##vary design to design
194194
[ -z "$add_constraint_file" ] && echo "" || echo "add_constraint_file $add_constraint_file">>raptor_tcl.tcl

RTL_testcases/RTL_Benchmarks_Gap_Analysis/dmx512/rtl/dmx512_rx/config.tcl

Lines changed: 0 additions & 7 deletions
This file was deleted.

RTL_testcases/RTL_Benchmarks_Gap_Analysis/dmx512/rtl/dmx512_rx/dmx_dpram.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module dmx_dpram #(
2424
input [depth-1:0] a,
2525
input we,
2626
input [width-1:0] di,
27-
output reg [width-1:0] do,
27+
output reg [width-1:0] dout,
2828

2929
input [depth-1:0] a2,
3030
input we2,
@@ -37,7 +37,7 @@ reg [width-1:0] ram[0:(1 << depth)-1];
3737
always @(posedge clk) begin
3838
if(we)
3939
ram[a] <= di;
40-
do <= ram[a];
40+
dout <= ram[a];
4141
if(we2)
4242
ram[a2] <= di2;
4343
do2 <= ram[a2];

RTL_testcases/RTL_Benchmarks_Gap_Analysis/dmx512/rtl/dmx512_rx/dmx_rx.v

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ dmx_dpram channels(
4444
.a(csr_a[8:0]),
4545
.we(1'b0),
4646
.di(8'hxx),
47-
.do(csr_channel),
47+
.dout(csr_channel),
4848

4949
.a2(channel_a),
5050
.we2(channel_we),
@@ -113,11 +113,11 @@ end
113113

114114
parameter break_threshold = clk_freq/11364;
115115
reg [12:0] break_counter;
116-
wire break = break_counter == 13'd0;
116+
wire brk = break_counter == 13'd0;
117117
always @(posedge sys_clk) begin
118118
if(sys_rst|rx_r)
119119
break_counter <= break_threshold;
120-
else if(~break)
120+
else if(~brk)
121121
break_counter <= break_counter - 13'd1;
122122
end
123123

@@ -168,7 +168,7 @@ always @(*) begin
168168
ce_load = 1'b1;
169169
channel_a_reset = 1'b1;
170170
next_skip = 1'b1;
171-
if(break)
171+
if(brk)
172172
next_state = WAIT_MAB;
173173
end
174174
WAIT_MAB: begin

RTL_testcases/RTL_Benchmarks_Gap_Analysis/dmx512/rtl/dmx512_rx/sdc.json

Lines changed: 0 additions & 117 deletions
This file was deleted.

RTL_testcases/RTL_Benchmarks_Gap_Analysis/dmx512_tx/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/dmx512_tx/rtl/dmx512_tx/dmx_dpram.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module dmx_dpram #(
2424
input [depth-1:0] a,
2525
input we,
2626
input [width-1:0] di,
27-
output reg [width-1:0] do,
27+
output reg [width-1:0] dout,
2828

2929
input [depth-1:0] a2,
3030
input we2,
@@ -37,7 +37,7 @@ reg [width-1:0] ram[0:(1 << depth)-1];
3737
always @(posedge clk) begin
3838
if(we)
3939
ram[a] <= di;
40-
do <= ram[a];
40+
dout <= ram[a];
4141
if(we2)
4242
ram[a2] <= di2;
4343
do2 <= ram[a2];

RTL_testcases/RTL_Benchmarks_Gap_Analysis/dmx512_tx/rtl/dmx512_tx/dmx_tx.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ dmx_dpram channels(
4545
.a(csr_a[8:0]),
4646
.we(csr_channels_we),
4747
.di(csr_di[7:0]),
48-
.do(csr_do_channels[7:0]),
48+
.dout(csr_do_channels[7:0]),
4949

5050
.a2(channel_a),
5151
.we2(1'b0),

0 commit comments

Comments
 (0)