- Abbreviations
SDC :Synopsys Design Constraints
SGDC : Spyglass Design Constraints
CDC : Clock Domain Crossing
In Spygalss project file e.g. work.proj add this option
1
set_option sdc2sgdc { yes }
Create $top.sgdc with content of follow 2 lines.
1
2current_design $top
sdc_data -file $PATH_TO_SDC_FILEAfter first run $top.sgdc Spyglass will generate auto SGDC format constraint files which are located at like,
1
2
3
4./work/$top/cdc/clock_reset_integrity/spyglass_reports/clock-reset/autoclocks.sgdc
./work/$top/cdc/clock_reset_integrity/spyglass_reports/clock-reset/autoresets.sgdc
./work/$top/cdc/clock_reset_integrity/spyglass_reports/clock-reset/generated_clocks.sgdc
./work/$top/cdc/clock_reset_integrity/spyglass_reports/clock-reset/generated_resets.sgdcThen you can
cat
above four auto SGDC files and replace all content of $top.sgdc.1
cat ./work/$top/cdc/clock_reset_integrity/spyglass_reports/clock-reset/*.sgdc > $PATH_TO_SDC_FILE
Now the $top.sgdc looks like,
1
2
3
4
5
6
7current_design "xxx"
#DEFINITE CLOCKS:
clock -name "xxx.clk" -domain0 -tag SG_AUTO_TAG_1
##ASYNCHRONOUS RESETS##
#DEFINITE RESETS:
reset -name "xxx.rstn" -value 0