Navigate:
GUI Main Panel
tdx_atg
tdx_step
tdx_tap
tdx_fsim
Generic:
Logic States
Timeplate Logic States
Fault Status Types
Verilog Primitives
VHDL Primitives
tdx_atg:
GUI
Interactive Commands
tdx_atg
tdx_atg creates test stimuli from input data files which contain the
netlist described in .ckt and .nnm format. Additionally, a .flt
file containing the fault list is required. The output includes
a .tvc file containing the test vectors generated. The original
fault file input, the .flt file, is updated and written out with
the extension .out.flt. Other output files are the .log file,
the .diag file, the .dct file and the .stt file.
tdx_atg is designed to run on synchronous circuits where clock lines
for the state elements are driven only by primary inputs. tdx_atg
can also handle circuits with gated clocks, i.e. where the edge
for a clock line comes from a primary input but is enabled by
one or more state elements. No special command-line option is
necessary. However, the user should use the clock_input command
to define one or more primary inputs as clock inputs. This is done
through one of the initialization files. For circuits, with more
complex clocking schemes, the forced
clocks option may be useful.
tdx_atg can handle circuits with combinational loops. However, when
running on circuits with combinational loops, the combinational loops option
must be used. Otherwise, in its normal processing tdx_atg will assume
that the circuit does not contain combinational loops.
tdx_atg can be run with virtual DFT added to the circuit.
The DFT information is typically contained in a .scn file which is
nominated in the Scan section of the GUI panel.
An examination of the following sections will make understanding the
GUI Panel much easier:
In addition options setable within the GUI, there are a number of atg-specific
commands that may be used within the init file.
By default, tdx_atg uses a minimum goal approach. Flip-flops whose simulation
values match the required state are not justified. This is an optimistic
approach and can potentially lead to shorter vector sequences and shorter
run times. However, these assumptions are sometimes invalid and can lead
to vector sequences which do not detect the targeted fault. In partial scan
runs too, tdx_atg uses an optimistic deferred scan approach which is an
extension of the minimum goal approach. Typically, this approach is better
for circuits with less activity where state elements tend to retain their
values. The user can override either of these approaches by using the maximize goals
or the conservative scan
options. Also, the automatic retry option can be
used to automatically retry a fault with the conservative approach if it
is indicated that tdx_atg failed on the fault due to an optimistic assumption.
Usually, the conservative approaches require more lenient thresholds for cpu
time, backup count and sequential back frames allowed.
On bidirectional I/O, tdx_atg will ensure that no conflicts
are created. It will also try to avoid conflicts on internal buses as
far as possible. If the enables for the tri-state elements are driven
by PIs only, then conflicts will never be created. If the enables come
from PIs and scan elements, then also conflicts will never be
created. In this case, tdx_atg will throw away vectors if
necessary, to ensure this. A note of how often this happens will be
written to the .diag file. If the enables also have non-scan
state elements in their fanin cone, then some conflicts may be
present. A note of these conflicts will also be made in the .diag file. (See
also the conflicts command.)
During vector sequences, unassigned primary inputs are assigned their previous
values. Thus, the default is to minimize pin changes between vectors. To
randomize unassigned inputs the user can use the randomize unassigned inputs option.
However, unassigned scan elements (when using scan) are randomized. This can be
suppressed by using the randomize unassigned scan option.
For full scan circuits, even unassigned primary inputs are randomized.
Also, for full scan and combinational circuits, tdx_atg will generate a set of random
vectors at the start of a run before generating fault-directed sequences. This
can be suppressed with the allow random
vectors option.
If partial scan or full scan is used, tdx_atg will
automatically check all scan design rules. In case of violations, it
will terminate after writing the violations to the
model.scan.err file. Violations can be overridden
by using the appropriate SAFE or SUPPRESS or UNSAFE syntax.
If a violation is overridden, tdx_atg will proceed with test generation.
However, because of active enable pins for a latch or active set or
clear pins, the scan chain may not be used as effectively or as often
as desired. A SUPPRESS override may prevent tdx_atg from using scan.
A SAFE override, though it allows tdx_atg to use scan, may prevent tdx_atg
from scanning the required value into a particular state element. A
summary of these run time violations is written towards the end of
the model.diag file.
The UNSAFE syntax is used to identify targets of scan rule violations.
The source of the UNSAFE statement is a scan element.
The target of an UNSAFE override cannot be in the scan chain.
These target elements are downstream of scan elements and will have their
state disrupted during a scan-in. tdx_atg will assume that these elements
take unknown states during a scan-in. Fault coverage and vector count
will be affected. UNSAFE overrides should be used carefully and sparingly.
On completion, tdx_atg will print a failure report. This report consists
of a breakdown of the reasons why tdx_atg failed on targeted faults. The
faults may have been detected later during tests generated for other
faults. This report is printed on standard output and at the end of
the model.diag file.
tdx_atg will abort a fault if it exceeds either of the two thresholds -
cpu time taken (max time/fault), or
the number of clock cycles required (sequential back frames). This report
includes the number of instances of each threshold being exceeded.
These faults will appear as GIVE UPs in the output fault file.
In this case you are advised to undertake a second run of tdx_atg on the undetected faults with the thresholds
increased from their current values.
In the case of sequential back frames being exceeded, in the second run
it is a good idea to increase the time parameter also since more back
frames implies more cpu time. Sometimes, even with increased thresholds,
faults will still be given up because sequential back frames were exceeded.
This is usually the case when the circuit has sequential loops and feedback.
At this point, one approach is to try the output partial vector sequence. In this mode,
tdx_atg will simulate the partial vector sequences that it had generated before
the back frames threshold was exceeded. Often these sequences will not detect
the targeted fault but will exercise the circuit sufficiently to detect
several other faults (randomize unassigned inputs could be tried along with this option).
The other approach is to add some DFT (usually levelized scan) to break up
the sequential loops so that tdx_atg can produce shorter vector sequences.
tdx_atg will also report on the number of times that a vector sequence
was generated which did not detect the targeted fault.
These faults will appear as UNDETECTED in the output fault file.
(These vectors may sometimes detect other faults serendipitously.)
Typically, this occurs because of minimum goals or the optimistic
scan approach. You are advised to address these failures by re-running with maximum goals and/or conservative
scan, or with the automatic retry
option; you may also need to increase the time parameter. Sometimes however,
faults may not be detected because they are at best probable
detects or because of circuit anomalies.
tdx_atg will also report on the faults for which it is unable to create
a vector sequence despite an exhaustive search. These faults appear
as UNDETECTABLE in the output fault file.
The "model.diag" file contains important information on the tdx_atg run.
The reported pieces of information are:
- Counts of the value distribution on the flipflops,
transition counts on the primary outputs, value distribution on the primary
inputs and counts of the high impedance values on the tri-state outputs.
- A summary of the time used by tdx_atg, divided into test generation
time and fault simulation time.
- A summary of the number of conflicts on internal buses. If the enables
of the tri-state elements come from PIs and scan elements only, then the vectors
causing the conflicts have been stripped out, else they have been retained.
- A list of the targets of the UNSAFE scan override statements. These elements have
been set to X during every scan-in.
- A summary of all run-time scan violations. Specifically, this is for scan elements
whose set or clear pins were active at the time of scan-in. If the violation
was marked SUPPRESS, then scan could not be used. (If this number is high, then having
this element in the scan chain may actually hurt fault coverage.) If the violation was
SAFE, then scan is used, however the scan-in value for this particular element is constrained.
- A histogram showing the distribution of cpu time per attempted fault.
- A summary of the reasons for all failed faults. The reasons include "cpu time
limit exceeded", "sequential back frames exceeded", "vector sequence generated but did not detect
fault" and "could not create vector sequence" (undetectable) faults.
- Command-line that was used to invoke tdx_atg.
It will see that the tdx_atg gui panel is more-or-less a
superset of the tdx_fsim gui panel. This is because
tdx_atg runs a fault simulation on the seed vectors (if
supplied) plus any vectors that it syntheses. Please consult the page
for tdx_fsim for details on the controls that
are common to both panels.
Automatically retry faults with maximum goals and/or
conservative scan if required. By default, ATG
uses minimum goals and optimistic deferred scan.
If this option is turned on, a fault will be
automatically retried with conservative scan and/or
maximum goals if it is indicated that ATG failed on
that fault because of optimistic scan or minimum goals.
The circuit has combinational loops.
Activate special combinational loop processing.
Use the optimistic deferred partial scan approach.
The default is on.
Do not attempt to disable the DLATCH after it has been enabled.
This option should be used if attempting to close the latch
is either impossible or unnecessarily complicates the task
of test generation, or if leaving the latch transparent is
desired. If this option is not used, the default action is
to close the DLATCH after the state has been updated.
Output the partial vector sequence when a fault is given
up because the number of sequential back frames
has exceeded the threshold.
If this option is used, ATG will not try to justify clock edges.
Instead, the user will define one or more primary inputs as
clocks with the clock_input command in an initialization file
and ATG will create edges on these clock inputs whenever it
needs a clock edge.
Prevent the creation of random vectors for combinational
and full scan circuits. By default, random vectors may be created.
See here for the difference between
minimum and maximum goals. The default is to use minimum goals; this
option would normally be only used for second and subsequent tdx_atg runs.
Print the fault detection percentage during combinational
or full scan random vector generation. The default is off.
Use fast combinational processing particularly for XORs.
The default is off.
This option randomizes primary inputs which are unassigned
in vector sequences generated during fault-directed ATG.
The default is to minimize pin changes between vectors.
Process the fault list from lowest to the highest component
number. The default is from the highest component down. As many of
the faults are detected as "side effects" of the fault being targeted
by ATG, a different ordering will probably produce a different fault
coverage. However, use of this option is as likely to reduce coverage
as increase it!
Process the fault list in a random order. The default is from the highest
component down. As in the case of reverse_fault_list (above), a different
ordering will probably produce a different fault coverage. This option is
likely to create a shorter test sequence, although it is very much dependant
upon the design.
This option will override the reverse_fault_list option.
If set, random values will be assigned to otherwise unassigned scan
elements. This is the default.
Selects whether to use the sequential or combinational TAP testability
numbers. For most purposes sequential is appropriate. This is the default.
Don't call TAP from ATG. Use the existing model.tap file.
Note that the tap file should have been created with
the same scan and test mode options as this ATG run.
By default, tdx_atg runs TAP, uses the resulting .tap file
and then deletes it.
Add scan out vectors to scan out faults during the
simulation of seed vectors. The default is off.
Simulate seed input vectors from the specified file. Faults detected
by these vectors will not need tests to be generated by tdx_atg.
Number of sequential back frames per fault.
The default is 10.
Cpu time allowed per fault. The value is in hundredths of a second.
The default is 50 (0.5 seconds).
Limit for the maximum number of vectors generated.
The default is 200,000.
If set, ATG should try to generate tests
for faults marked as ATG_Gave_Up in the input fault file. This option is
usually relevant only in repeated runs of ATG. By default, ATG will target
these faults only if either of the max seconds/fault or sequential back frames options have
been changed from their defaults.
Pressing this button restores the default values to each of the
atg-specific widgets.
TDX-ATG does not have an interactive mode or a breakpoint mechanism.
However, tdx_atg can read commands from an initialization
file. Most commands from tdx_lsim, tdx_fsim, tdx_iddq and
tdx_step may be placed in this file. In addition, the
following atg-specific commands are available.
This command defines the clock inputs for the circuit.
This command must be used if the forced clocks option is used.
Also, it is recommended that the user specify the clock inputs
for circuits with gated clocks. These clock inputs will be tried
in the order they are defined.
Set the mode for dealing with conflicts on internal buses.
Valid options are "0", "1", or "2" (or "off", "on", or "max"):
- "0" means do
not check for conflicts on internal buses.
- "1" means check for conflicts but
treat only one driver A0 (active 0) and another A1 (active 1) as a conflict.
- "2" means two or more drivers with strength ACTIVE or UNKNOWN is a conflict
regardless of whether they are driving the same or opposite values.
The default is "1".
In checking for conflicts, ATG examines the vectors it has produced during
test generation for any conflicts they may cause. It then attempts to modify
those vectors to avoid the conflicts. If it fails and the enables for the
tri-state drivers come exclusively from PIs and scan elements, ATG will assure
no conflicts by throwing away vectors if it has to. If non-scan state elements
are involved, then vectors will not be thrown away. In both cases, the .diag
file will contain a summary of the number of occurrences.
This command does not change the treatment of bidirectional I/O. For
bidirectional ports, conflicts are always checked and never allowed.
keep_atg_wont
Set/show the option to keep simulating unlikely
to be detected faults. For some circuits with tri-state buses,
or bidirectional pins, or combinational loops, atg may determine
that only probable detects are possible for certain faults. These
faults are normally marked undetectable, but this option can be
used delay marking these faults until the end of the atg run.
When on, faults marked as "unlikely to be detected" (atg_wont)
fault status by atg will continue to be simulated to try to find
a detection. When off, these faults are dropped from simulation.
The default is on.
xaddr
Set/show the RAM gate X address input threshold.
When the number of X address bits at a RAM meets or exceeds the threshold
during a read, the RAM output is set to X. When the number of X addresses
meets or exceeds the threshold during a write, the entire contents of
the RAM memory is set to X. When the limit is not exceeded, the data is
"clashed" by examining all possible address locations (each X at 0 and 1).
On read, a difference in data at in any storage address will set the RAM
output to X. On write, if the data at any address is different from the
RAM data input, the data at the address is set to X. Setting this
threshold to a high value may cause performance degradation. Setting the
threshold to 0, will disable RAM writes if the write enable is X, or any
address bit is X. With a 0 threshold, RAM read with X address will return X.
The default threshold is 9, which limits the number of "clashes" to 256.
A message is written to the model.xad file whenever an X address
occurs at a RAM gate when the WE input is active or X. The default
limit on the number of messages written is 1000. The default can be
changed by specifying a value after the X address limit. For example,
the command "xaddr 10 2000" sets the X address limit to 10, and sets
the report limit to 2000.
tdx_atg runs a fault simulation as part of its operation.
The simulation is run on the any seed vectors nominated by the
user followed by the vectors generated by the ATG algorithms.
You may have noticed that the tdx_atg GUI panel is a superset of
the tdx_fsim panel (well almost, tdx_atg doesn't support
interactive operation). Help for these common widgets is supplied by
the tdx_fsim and tdx_lsim pages.
Last modified: Fri Jan 23 15:17:23 PST 1998
Copyright (c) Vervent Technologies Inc, 2007