2024.7.31 Spyglass dft tcl 及sgdc使用总结
spyglass dft tcl使用
1、新建工程
new_project design_name_dft -force
current_methodology $::SPYGLASS_HOME/GuideWare/lastest/block/rtl_handoff/dft
2、set option 和环境变量
set_option enableSV 1
set_option enableSV09 yes
set_option allow_non_lrm yes
set design_path $env(design_path)
set common $env(common )
set sram_wrapper $env(sram_wrapper)
set design_spyglass $env(design_spyglass)
3、读取设计文件
read_file -type sourcelist ${design_path}/src/syn.f
4、读取lib文件
read_file -type gateslib ${sram_wrapper}/libs/rom/lib/*.lib
read_file -type gateslib /libs/TSMC/T28_GL/consumer/IP/standardcell/*hvt/*.lib
5、读取sgdc
read_file -type sgdc ./design_name.sgdc
6、运行dft
current dft_scan_ready -top design_top
run_goal
save_project
gui_start
dft sgdc约束文件怎么约束
1、
current_design design_top
2、约束test_clock,这里是插入OCC的地方或者直接test_clock输入,以下为示例
clock -name “test_clock” -testclock
clock -name design*.u_dont_apbclk_100m_occ_buf.Z -testclock
2、no_scan约束,主要为不进scan chain的module或者reg
no_scan -name "u_*.clk_div_inst"
no_scan -name "u_*.reg"
3、约束test mode
current_design design_top
test_mode -name scan_mode -value 1
test_mode -name mbist_mode -value 1
test_mode -name "u_*.u_dont*.u_dont.TE" -value 1
test_mode -name scan_reset_n -value 1 -scanshift
test_mode -name por_rst_n -value 1 -scanshift