Read_sdc, Read_sdc –115 – Altera SDC and TimeQuest API User Manual
Page 125
Chapter 2: SDC and TimeQuest API Package and Commands
2–115
sta
© December 2009
Altera Corporation
SDC and TimeQuest API Reference Manual
read_sdc
Usage
read_sdc [-hdl] <file_name>
Options
-hdl: Read SDC commands embedded in HDL
<file_name>: Name of the SDC file
Description
Reads an SDC file with all current constraints and exceptions.
If an SDC file is specified, read_sdc only reads that SDC file. If the -hdl option is specified, read_sdc only
reads SDC commands that were embedded in HDL.
If no arguments are specified, read_sdc reads the default SDC files along with any SDC commands that
were embedded in HDL. If one or more SDC_FILE assignments exists in the QSF, read_sdc reads all of
them in order. Otherwise, read_sdc reads the file <revision>.sdc if it exists.
Example
project_new test
create_timing_netlist
# Read SDC commands from test_constraints.sdc
read_sdc test_constraints.sdc
# Read SDC commands embedded in HDL
read_sdc -hdl
update_timing_netlist
report_timing
delete_timing_netlist
project_close