Skip to content

Commit 254d945

Browse files
authored
Merge pull request #403 from os-fpga/lec_sim
added setup_lec_sim for asyncfifo and asynchronous_master_spi
2 parents 7123adc + f8e791b commit 254d945

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

RTL_testcases/RTL_Benchmarks_Gap_Analysis/asyncfifo/raptor_run.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,9 @@ parse_cga exit 1; }
260260
else
261261
echo ""
262262
fi
263+
echo "setup_lec_sim 10 2">>raptor_tcl.tcl
264+
echo "simulate gate icarus">>raptor_tcl.tcl || echo "simulate gate verilator">>raptor_tcl.tcl
265+
echo "simulate pnr icarus">>raptor_tcl.tcl || echo "simulate pnr verilator">>raptor_tcl.tcl
263266
echo "sta">>raptor_tcl.tcl
264267
echo "power">>raptor_tcl.tcl
265268
echo "bitstream $bitstream">>raptor_tcl.tcl

RTL_testcases/RTL_Benchmarks_Gap_Analysis/asynchronous_master_spi/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 10 2">>raptor_tcl.tcl
262+
echo "simulate gate icarus">>raptor_tcl.tcl || echo "simulate gate verilator">>raptor_tcl.tcl
263+
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/asynchronous_master_spi/rtl/spi_master.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ begin
254254
charreceivedn <= ~charreceivedn;
255255
end
256256

257-
assign data = (rd) ? output_buffer : {WORD_LEN{1'bz}};
257+
assign data = (rd) ? output_buffer : {WORD_LEN{1'b0}};
258258

259259
assign sck = (modeint[1])? ~sckint : sckint;
260260
assign mosi = (ss) ? 1'b1:_mosi;

0 commit comments

Comments
 (0)