Write_sdc, Write_sdc –157 – Altera SDC and TimeQuest API User Manual
Page 167
Chapter 2: SDC and TimeQuest API Package and Commands
2–157
sta
© December 2009
Altera Corporation
SDC and TimeQuest API Reference Manual
write_sdc
Usage
write_sdc [-expand] [-history] <file_name>
Options
-expand: Generate SDC file by expanding the macros
-history: Reports full history of assignments
<file_name>: Name of output file
Description
Generates an SDC file with all current constraints and exceptions. When you use the -expand option,
derive_clocks, derive_pll_clocks, derive_lvds_clocks and derive_clock_uncertainty macros are be
expanded to corresponding sdc assignments before they are written to a file. If you do not use the -expand
option, these macros are preserved.
Example
project_new test
create_timing_netlist
create_clock -period 10 -name clk10 clk
set_multicycle_path -from [get_cells a] -to [get_cells b]
update_timing_netlist
report_timing
write_sdc my_sdc_file.sdc
delete_timing_netlist
project_close