blob: 6f0eea7075362a989581f21e5df6a394d265c43a [file] [log] [blame]
yosys -import
plugin -i sdc
plugin -i design_introspection
# Import the commands from the plugins to the tcl interpreter
yosys -import
read_verilog $::env(DESIGN_TOP).v
read_verilog -specify -lib -D_EXPLICIT_CARRY +/xilinx/cells_sim.v
read_verilog -lib +/xilinx/cells_xtra.v
hierarchy -check -auto-top
# Start flow after library reading
synth_xilinx -flatten -abc9 -nosrl -nodsp -iopad -run prepare:check
#synth_xilinx
# Read the design's timing constraints
read_sdc $::env(DESIGN_TOP).input.sdc
# Propagate the clocks
propagate_clocks
# Write the clocks to file
set fh [open $::env(DESIGN_TOP).txt w]
puts $fh [get_clocks]
puts $fh [get_clocks -include_generated_clocks]
puts $fh [get_clocks -include_generated_clocks clk2]
puts $fh [get_clocks -of [get_nets clk_int_1 clk1] -include_generated_clocks clk_int_1]
puts $fh [get_clocks -of [get_nets]]
puts $fh [get_clocks -of [concat [get_nets clk2] [get_nets clk_int_1 clk]]]
close $fh