Detailed Explanation of Common Commands of Tessent Tool
Detailed Explanation of Common Commands of Tessent Tool
Tessent tool.
## 1. `read_design` command
1. **Function**
- This command is used to read the design file into the
Tessent environment. The design file can be in Verilog , VHDL
and other formats, which is the basis for subsequent DFT
operations.
2. **Syntax format and parameters**
- Basic format: `read_design [options] <design_file>`
- Common parameters:
- `-format <file_format>`: Specify the design file format ,
such as `-format verilog` for Verilog file format, `-format vhdl`
for VHDL file format.
- `-top <top_module_name>`: Specify the top-level module
name in the design, for example `-top my_top_module`. This
helps Tessent determine the hierarchical structure of the
design.
## 2. `write_design` command
1. **Function**
- Contrary to `read_design`, it writes the design processed by
Tessent to a file, which can be used to save files with DFT
structures (such as designs after scan chain insertion).
2. **Syntax format and parameters**
- Basic format: `write_design [options] <output_file>`
- Common parameters:
- `-format <file_format>`: Specifies the output file format,
such as `-format verilog` or `-format vhdl`.
- `-hierarchy <hierarchy_option>`: Specifies the hierarchy
representation in the output file, such as `-hierarchy flat` (flat
hierarchy) or `-hierarchy preserve` (retain the original
hierarchy).
1 Ashwani DFT
## 3. `set_fault_model` command
1. **Function**
- Set the fault model, which is an important prerequisite for
ATPG operation. Common fault models include stuck-at fault,
etc.
2. **Syntax format and parameters**
- Basic format: `set_fault_model [options]
<fault_model_type>`
- Common parameters:
- `-type <fault_type>`: For the stuck fault model, you can
further specify `-type stuck-at-0` (stuck at 0 fault) or `-type
stuck-at-1` (stuck at 1 fault), etc.
- `-coverage <coverage_requirement>`: Set the fault
coverage requirement, such as `-coverage 90` means that the
fault coverage is required to reach 90%.
## 4. `scan_insertion` command
1. **Function**
- Insert a scan chain into the design, convert ordinary triggers
into scan triggers and connect them into a scan chain, so as to
better control and observe the internal state in the test mode.
2. **Syntax format and parameters**
- Basic format: `scan_insertion [options]`
- Common parameters:
- `-design <design_name>`: Specify the design name to be
scan-inserted, such as `-design my_chip`.
- `-chain_length <length>`: Set the length of the scan chain,
for example `-chain_length 100`.
- `-scan_style <style>`: Specify the scan style, such as `-
scan_style mux - d` (multiplexed scan style).
- `-clock <clock_name>`: Determine the clock signal used by
the scan chain, such as `-clock test_clk`.
2 Ashwani DFT
## 5. `atpg` command
1. **Function**
- Automatic test pattern generation command, which
automatically generates test vectors based on the design
structure and the selected fault model to detect faults in the
design.
2. **Syntax format and parameters**
- Basic format: `atpg [options]`
- Common parameters:
- `-design <design_name>`: Specify the design name to be
ATPG operated, such as `-design my_design`.
- `-fault_model <model>`: Specify the fault model, such as `-
fault_model stuck` (fixed fault model).
- `-atpg_mode <mode>`: Determine the ATPG mode, such as
`-atpg_mode full` (full mode).
- `-max_patterns <number>`: Set the maximum number of
test patterns (test vectors), such as `-max_patterns 500`.
## 6. `simulate` command
1. **Function**
- Perform simulation test on the design. You can use the
generated test vectors to simulate the design to verify whether
the behavior of the design under the test conditions meets
expectations.
2. **Syntax format and parameters**
- Basic format: `simulate [options]`
- Common parameters:
- `-design <design_name>`: Specify the name of the design to
be tested, such as `-design my_circuit`.
- `-test_vector <vector_file>`: Specify the test vector file,
such as `-test_vector my_test_vector.tv`.
- `-simulator <simulator_name>`: If there are multiple
simulators to choose from, you can specify them through this
parameter, such as `-simulator QuestaSim`.
3 Ashwani DFT
- `-output <output_file>`: Specify the output file of the
simulation results, such as `-output simulation_results.log`.
## 8. `report_fault_coverage` command
1. **Function**
- Generate a report on fault coverage, showing the proportion
of faults that can be detected by the current test set, which is
an important indicator for evaluating the effectiveness of the
test.
2. **Syntax format and parameters**
- Basic format: `report_fault_coverage [options]`
- Common parameters:
- `-detail <detail_level>`: Specifies the level of detail of the
report, such as `-detail high` (provides more detailed
information, including fault coverage of each module, etc.) or `-
detail low` (only provides overall fault coverage information).
- `-output <report_file>`: Specifies the file to which the
report will be output, such as `-output
fault_coverage_report.txt`.
4 Ashwani DFT
1. **Function**
- Set the test mode to determine the working mode of the
design during the test, such as normal test mode or special
debug test mode, etc.
2. **Syntax format and parameters**
- Basic format: `set_test_mode [options] <test_mode>`
- Common parameters:
- `-enable <feature>`: Enable specific test functions, such as
`-enable scan - test` (enable scan test function).
5 Ashwani DFT
2. **Syntax format and parameters**
- Basic format: `set_reset [options] <reset_spec>`
- Common parameters:
- `-name <reset_name>`: Specify the reset signal name, such
as `-name rst`.
- `-type <reset_type>`: Specify the reset type, such as `-type
async` (asynchronous reset) or `-type sync` (synchronous reset).
6 Ashwani DFT
- `-voltage <voltage_level>`: Set the power voltage, such as `-
voltage 1.8` (indicates 1.8V).
7 Ashwani DFT
## 16. `set_design_rule` command
1. **Function**
- Define design rules, such as minimum line width, minimum
spacing, etc. These rules help ensure the manufacturability and
reliability of the design during physical implementation.
2. **Syntax format and parameters**
- Basic format: `set_design_rule [options]
<design_rule_spec>`
- Common parameters:
- `-min_width <width>`: Specify the minimum line width,
such as `-min_width 0.18` (the unit depends on the design,
which may be microns, etc.).
- `-min_spacing <spacing>`: Set the minimum spacing, such
as `-min_spacing 0.2`.
8 Ashwani DFT
- Enable or set debug mode. In debug mode, you can get
more information about the internal state of the design, which
is helpful for fault diagnosis and debugging.
2. **Syntax format and parameters**
- Basic format: `set_debug_mode [options] <debug_mode>`
- Common parameters:
- `-enable <debug_feature>`: Enable specific debug features,
such as `-enable scan - debug` (enable scan debug function).
9 Ashwani DFT
- `-priority <priority_level>`: Set the optimization priority,
such as `-priority high` (high priority) or `-priority low` (low
priority).
10 Ashwani DFT