Skip to content

Commit 4f6a7dc

Browse files
authored
Merge pull request #426 from os-fpga/EDA-3187-add-setup-lec-sim
EDA-3187 added setup_lec_sim for BOOT_CLOCK_primitive_inst
2 parents 7acd240 + d2a41df commit 4f6a7dc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

RTL_testcases/RS_FPGA_PRIMITIVES_new/BOOT_CLOCK_primitive_inst/raptor_run.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,10 @@ parse_cga exit 1; }
260260
else
261261
echo ""
262262
fi
263+
echo "clear_simulation_files">>raptor_tcl.tcl
264+
echo "setup_lec_sim">>raptor_tcl.tcl
265+
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
263267
echo "sta">>raptor_tcl.tcl
264268
echo "power">>raptor_tcl.tcl
265269
echo "bitstream $bitstream">>raptor_tcl.tcl

RTL_testcases/RS_FPGA_PRIMITIVES_new/BOOT_CLOCK_primitive_inst/rtl/BOOT_CLOCK_primitive_inst.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module BOOT_CLOCK_primitive_inst (
22
input wire clk1, // Source clock domain clock
33
input wire async_signal, // Asynchronous signal to be synchronized
4-
output reg sync_signal, // Synchronized signal
4+
output reg sync_signal = 0, // Synchronized signal
55
output reg O_BOOT_CLOCK // Clock output
66
);
77

0 commit comments

Comments
 (0)