autofix实践
1.read_gate_and_protocol
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
remove_design -designs read_ddc mapped/RISC_CORE.ddc current_design RISC_CORE link #Declare test components in preparation for create_test_protocol set_dft_signal -view existing_dft -port Clk -type ScanClock -timing {45 55} set_dft_signal -view existing_dft -port Reset -type Reset -active_state 0 set_dft_signal -view spec -port TEST_SE -type ScanEnable -active_state 1 set_dft_signal -view existing_dft -type Constant -active_state 1 -port TEST_MODE create_test_protocol dft_drc
2.preview_dft
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
# Get the scan insertion settings #source -e -v scripts/settings_insert_dft.tcl set_dft_signal -view spec -port Instrn[0] -type ScanDataIn set_dft_signal -view spec -port Xecutng_Instrn[0] -type ScanDataOut set_scan_configuration -chain_count 1 # Allow clock domains to be mixed together on same chain set_scan_configuration -clock_mixing mix_clocks # Specify the autofix configuration source -e -v scripts/autofix.tcl # Preview the scan architecture / test points preview_dft;
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
#***********START AUTOFIX COMMANDS******************************************************* # Use autofix to fix problems with sets/resets and clock problems # Enable AutoFix set_dft_configuration -fix_set enable -fix_reset enable -fix_clock enable set_dft_signal -view spec -type TestMode -active_state 1 -port TEST_MODE # Fix clocks # If an autofix clock is not specified, tool will look for a controllable clock # DFTC will create a new clock port if it does not find one # Using the clock Clk as the autofix clock set_dft_signal -view spec -port Clk -type TestData set_autofix_configuration -type clock -control TEST_MODE -test_data Clk # Fix resets # Use the Reset line as the reset fix set_dft_signal -view spec -port Reset -type TestData set_autofix_configuration -type reset -method mux -control TEST_MODE -test_data Reset # Fix sets # Use the same Reset line to fix the sets set_autofix_configuration -type set -method mux -control TEST_MODE -test_data Reset # TEST_MODE already declared as part of the test protocol #***********END AUTOFIX COMMANDS*********************************************************
3.insert_dft
insert_dft
dft_drc -coverage_estimate