Navigate:GUI Main Panel tdx_lsim tdx_iddq
Generic:Logic States Timeplate Logic States Fault Status Types Verilog Primitives VHDL Primitives
GUI Panel, interactive commands, FaultValidator, Distributed

tdx_fsim

TDX-FSIM is a high-performance concurrent fault simulator that accurately grades test vectors on a wide-range of state and timing-sensitive circuits. It supports synchronous and asynchronous designs containing logic gates, MOS transistors, tri-state buffers, flip-flops, single/multi-port RAMs, complex bus resolution functions, and Verilog User Defined Primitives (UDPs). TDX-FSIM also supports the very detailed pin timing and strobing features found on modern "tester-per-pin" automatic test equipment (ATE)

Circuit netlists can be in VHDL or Verilog, and all of the gate-level, unidirectional primitives defined in the Open Verilog International Version 2.0 Verilog standard are supported. To accurately model state and timing-sensitive circuits, TDX-FSIM uses an event-driven algorithm with 23 logic states, rise/fall delays, turn-on/off delays, and charge-storage buses and wires. The fault types simulated are stuck-at-0 and stuck-at-1 on the input and output pins of any circuit primitive. To maintain complete fault detection accuracy, the full set of delays and states used for the non-fault circuit are also used for every faulty circuit (a circuit containing a single stuck-at fault).

TDX-LSIM is a logic simulator that is used to verify the correctness of the circuit design model. TDX-IDDQ is a fault simulator for current-measurement testing. All programs have essentially the same user interface, but TDX-FSIM has additional options for test vector grading, and TDX-IDDQ has additional options for current-measurement vector selection and fault grading. TDX-FSIM is a concurrent fault simulator that uses a traditional stuck-at 0/1 fault list. TDX-IDDQ uses a user-programmable CMOS transistor short fault model file. The fault simulation capabilities of both TDX-FSIM and TDX-IDDQ are included in TDX-ATG, the automatic test generation program. Stuck-at fault simulation is also used by the dynamic testability analysis program, TDX-STEP.

TDX-FSIM reads a compiled circuit model, a fault list file, a vector file, and an initialization file containing user options. It produces fault coverage information, and a fault dictionary that identifies where and when each fault is detected. The following files are used by TDX-FSIM:

model.ckt
compiled circuit interconnect.
model.nnm
compiled circuit names.
model.flt
input fault list file.
model.vec
input vector file.
model.fsiminit
initial user options file.
model.log
output log file.
model.dct
output fault dictionary.
model.out.flt
output fault list file with status - for each fau

The model.ckt and model.nnm are produced by either the Verilog netlist compiler, "verilogt", or by the VHDL netlist compiler "vhdlt." Input fault list files are created by "fcomp", which supports many features for selective faulting and collapsing, or by "fgen" which primarily creates checkpoint fault lists. Vector files are created by the user or by TDX-ATG, the automatic test generation program. Vector files created by TDX-ATG are normally named model.tvc, so if TDX-FSIM does not find a model.vec file, it will look for a model.tvc file. The model.fsiminit file contains user options, input/output formatting commands, and pin timing descriptions. The default names for all input files can be changed by command-line options.

The output model.log file contains the fault coverage percentage data, information messages. and various statistics about the fault simulation run. The output model.dct file identifies the vector number, pin, and states of each detected fault. The output model.out.flt fault list file contains the detect/undetected/probable status for each fault. The "reporter" program reads the model.out.flt file to produce reports tailored to the user's needs.

TDX-FSIM has an extensive on-line help facility which can be accessed by running "tdx_fsim model -i". Then at the "(fsim)" prompt, enter "help". Any command described by the help facility can be put into the initial options file model.fsiminit read by TDX-FSIM. All of these commands are described here).

Top of page

GUI Control Panel

The tdx_fsim panel allows the definition of parameters to be used in running the fault simulator.

When the parameters reflect your intentions push the fsim button. A window will then appear which will show the output of the simulator. If the Interactive checkbox has been checked this window will permit interaction.

To dismiss the panel without performing a simulation push the Cancel button.

It is necessary to select a fault file to be read by the fault simulation. This is done by clicking on one of the fault files listed on the left side of the main TDX Tool Manager control panel.

Interactive

If the Interactive button is checked an interactive fault simulation will be started when the lsim/fsim/iddq button is pressed. An interactive run allows greater flexibility. Once the interactive session is fully initialised you may type `help' to get built-in documentation or use many commands

sdf file:

By default, circuit timing information is read from model.sdf (in Standard Delay Format) if present. To prevent this happening specify "null" in the text field. To select other .sdf files in the current directory click on the sdf file: label.

Vector File:

tdx_fsim exercises the simulation using a set of vectors. These vectors are supplied by a file identified with this section. The selected file is displayed to the right of the Vector File: button. By default this is set to be model.vec or model.tvc. To change the setting either edit the text box or click with the left button on the Vector File: button and select an alternate.

Init File

The init file is used to set up various parameters of the simulation (for instance, the signals to be displayed by the simulator at each timestep). The selected file is displayed to the right of the Init File: button. If no name is specified tdx_fsim will choose the first file from the following The file ".tdxinit" in the user's home directory is always read first if it is present. Another name for this option

To override this default selection either edit the text box or click with the left button on the Init File: button and select an alternate.

The most common commands in the init file are:

vector in
defines the format of the input vector file.
vector print
defines the format of the simulation print results.
timeplate
defines pin electronics, timing, and detection strobing.

The init file may also contain many other options including those for fault detection, probable detects, hyperactive faults, and output vector formatting (reformatting of the input vector file).

outmodel:

All output files are normally written using the input model name followed by an extension. This option allows specifying a different model for all output files. A relative or absolute pathname may be specified by editing the text entry. If left blank the default output naming conventions will be followed.

log file:

Write the log to the specified file rather than outmodel.log.

spt output:

Normally the simulation results are echoed in a window created by the GUI. By making this field non-blank you specify a file to which the results are to be written. Specifying "null" in this field inhibits writing of the results. You may push the "Save Log" button on the log window when the simulation has completed to achieve a similar result.

The simulation results are formatted with the PRINT vector (see the "vector" interactive/init file command). The simulation results file can also be set with the "spt" interactive/init file command.

print on change:

If this button is not checked, the program prints results once per vector using net states captured during the output strobe window specified in the pin electronics "timeplate" of each pin. When it is checked, simulation results are printed whenever any pin in the PRINT vector changes state. Can also be set interactively.

print timestamp

Check this box to put a timestamp on each line of simulation print results. Otherwise, only the vector number is printed. Can also be set interactively.

reformat

Activate scan vector reformatting. All SCAN_IN data in the input vector file is validated and reformatted into multiple "broadside" vectors that will serially clock the scan data into the circuit. This will produce an output model.out.vec file with each functional SCAN_IN replaced by multiple "broadside" vectors. The circuit must contain actual scan chains. All or part of the actual scan circuitry must be defined. The minimum information required is a "scn_chain" definition line to identify the scan_mode control input pin and it's polarity. The definitions must be specified in the scan information file This option can also be set with the "reformat_scan_in" interactive/init file command.

Please be advised that reformatting is much more quickly achieved as part of logic simulation than fault or IDDq simulation.

Using Scan

Scan files may be generated using tdx_atg or tdx_scan. They are listed in the main panel. If one of these files is selected on the main file it is possible to fault simulate using some or all of the scan artifacts. The TPO/TMI, Partial Scan and Full Scan check buttons enable use of these scan artifacts.

If no scan file is selected on the main panel these check buttons have no effect. SCAN_IN data in the input vector file will also be ignored.

initial state:

Click on the label or edit the text entry to change the unassigned initial net state for simulation. The default initial state is Z (floating X). This option can be used to change the value to 0, 1, Z, X, or any other state supported by the simulator (PX, P0, FAX, etc.). This option can also be used to setup random initial states with an optional integer value to seed the random number generator. The initial state can also be set with the "init_state" interactive/init file command.

delay:

Set the gate/net delay option to min, typ, or max for Verilog circuits. The default is typ. The delay mode can also be set with the "delay" interactive/init file command.

time precision

Set the simulation time precision to the specified value in pico-seconds. The default is 100 ps. The value is an integer not less than 1. distribute This button launches a sub-panel to configure distributed fault simulation.

fault file:

This field defines the file that will be read to identify fault locations. Click on the label to get a popup menu of fault files. Alternatively, type in the name of the file manually. This file can also be defined by clicking on the name of a fault file in the main TDX Tool Manager panel.

hard:

Set the detect limit for hard detected faults to the specified value. A fault must be detected "value" times before it is dropped from simulation. Only one hard detect is required for a fault to be "detected" in fault simulation output reports. This option is for fault dictionaries. The value should be greater than or equal to 0, and less than 65536. Default value is 1. Setting the value to 0 disables dropping hard detected faults. This option can also be set with the "hard" interactive/init file command.

probable:

Set the detect limit for probable faults to the specified value. A fault must be probably detected "value" times before it is dropped from simulation. The value should be greater than or equal to 0, and less than 65536. Default value is 5. Setting the value to 0 disables probable detection. This option can also be set with the probable interactive/init file command.

hypertrophic:

Set the limit to drop hypertrophic faults to the specified value. Hypertrophic faults use too much virtual memory before they are detected. The value, which should be greater than or equal to 0, is a percentage of the number of nets in the circuit.

For example, if the value is 60 and there are 10,000 nets in the circuit the "fault effect" limit will be 6,000. If a faulty circuit uses more than 6,000 fault effect records it will be dropped and the fault marked hyperactive. The number of fault effect records consumed is one more than the fanout of the net. If the average fanout of a circuit is 2, a limit of 60 means that at least 20% of the nets must diverge from their good circuit values before a fault is dropped.

Hypertrophic faults are typically faults on circuit reset lines, or faults that affect many flip-flop clock pins. These faults may consume a large amount of simulation resource before a "fault effect" propagates to a circuit output pin and the fault is detected. Many times it is advisable to drop these faults before overall performance is severely affected.

Ones strategy is to drop these faults early in an attempt to simulate the vast majority of faults as quickly as possible. A hypertrophic limit of 10 is a good starting point. When the other faults have been simulated, a separate simulation pass with a higher hypertrophic limit is started for these "difficult" faults. The resim hyper option should be set for this run.

Setting the value to 0 disables dropping hypertrophic faults. For circuits with less than 1000 nets, the default is 0. For circuits with 1000 to 2000 nets, the default is 150. For all other circuits, the default is 50. A fault effect exists at both output and input pins, so a hypertrophic value greater than 100 is acceptable even though it is a percentage. Setting a low (20-30) hypertrophic limit is an effective way to improve performance and limit memory requirements during the test development process. This option can also be set with the "hypertrophic" interactive/init file command.

hyperactive

Set the limit to drop hyperactive faults to the specified value. The value is a percentage of the number of good circuit element evaluations. The value must be greater than or equal to 0. The default value is 500: if the number of explicit element evaluations in a faulty machine is 5 times greater than the number of evaluations in the good machine, the fault is dropped as hyperactive. Setting the value to 0 disables dropping hyperactive faults. This option can also be set with the "hyperactive" interactive/init file command. Memory intensive faults may also be dropped at the ctrl-C menu.

mem limit

Set the limit on the amount of host computer memory (in Megabytes) that will be used during the run. When the limit is exceeded, the fault simulator will automatically suspend (drop) faults until memory use is within range. This option only affects stuck-at fault simulation. To specify "no limit", set the value to 0. The default memory limit is 90% of the available swap space. On systems where swap space cannot be determined, the default limit is 0 (no limit), and the run must rely on the "mem_reserve" to avoid failure. However, setting this value to the actual amount of RAM in the host usually achieves better performance (once memory in use exceeds RAM size, page faulting will reduce performance dramatically).

This option can also be set with the "mem_limit" interactive/init file command.

TDX Tool Manager cannot determine memory size and therefore doesn't display a default value.

Accelerate

It is possible to run fault simulations faster but with slightly less accuracy. When this button is checked acceleration is enabled.

With acceleration, some accuracy may be lost in the fault detection results of asynchronous circuits for a very small percentage (less than 1/2%) of the faults. The final detected/undetected status is usually not affected. In some circuits with many X values in the good circuit, the detected/probably detected status may be affected. When the accelerate level is 1, the fault simulation performance may double.

This option can also be set with the "accelerate" interactive/init file command.

no detect highz

Disable highz fault detection. Some testers are able to identify the difference between driven (active) and undriven (highz) output pin states. By default, the simulator will mark faults as detected when the fault produces a difference in the driven/undriven mode of an output pin. When this option is selected, the driven/undriven mode will NOT count as a hard detection. This option can also be set with the "detect_highz" interactive/init file command.

no detect strength

Disable strength fault detection. When this option is used, the drive strength (active, passive, highz) at circuit output pins is ignored when doing fault detection, and only the 0/1/X logic state is used. This option should NOT be used for normal fault simulation, and is provided only as an option to allow comparison of results with more limited fault simulators that do not have strengths and/or mask the strength when doing fault detection. Many of these fault simulators will produce inaccurate results, and may count highz-0 verses highz-1 as a hard detection. This option can also be set with the "detect_strength" interactive/init file command.

resimulate probable

Set the option to resimulate faults marked as probably detected in the input fault list file. When this option is selected, the status of probably detected faults is changed to "undetected" at the start of simulation. This option may be useful when the probable detection options have changed between two runs, and the output fault file from one run is being used as the input fault file for the second run.

resimulate hyperactive/hypertrophic

Set the option to resimulate faults marked as hyperactive/hypertrophic in the input fault list file. When this option is selected, the status of hyper faults is changed to "undetected" at the start of simulation. This option may be useful when the hyperactive/hypertrophic dropping options have changed between two runs, and the output fault file from one run is being used as the input fault file for the second run.

Top of page

Interactive Simulation

Interrupts Wild Cards Commands

When run in interactive mode the simulator interacts with users using text commands. Some of these accept wild cards. Commands can also be interrupted using control-C.

Commands

The following commands may be entered at any simulation breakpoint. These commands can also be placed in an init (e.g.model.fsiminit or model.tdxinit) file, or in a file that is used with the "include" command. Note that some commands are listed in multiple categories. There is also an alphabetical list.
simulation
freeze, init_state, join_signals, list_set, maxdelta, oscillations, print, set, show, sim, stable_conflict, stop, supply_bidir, timeplate, toggle_count, tvc, unfreeze, unknowns, unstablecancel, unstabledrop, unstableshow, use_timeplate, vlbehavior, weak_cmos_x
breakpoints
break_unknown, delete, when
output
bus, compare_outputs, dct, echocmd, echostring, list_set, out_fmd, outflt, print, show, spt, spt_prtime, spt_trace, spt_watch, tstl, tvc, vcd, vcd_dumpvars, vector, wgl
memories
memload, memunload, xaddr
fault detection
detect_highz, detect_strength, hard, hyperactive, hypertrophic, keep_probable, monitor_faults, no_detect_strobe, outflt, probable, show, suspend, timeplate, toggle_count, unsuspend
scan
reformat_scan_in
performance management
accelerate, keep_probable, mem_limit, mem_reserve, oscillations, sortlists
other
debug, define, document, help, include, info, prompt, pwd, quit
Top of page

Distributed Fault Simulation

Fault simulation is a task that is amenable to being accelerated by being run on multiple computers at one time. This is done by splitting the full fault list into a number of smaller fault lists which are independently simulated. After completion of each smaller fault simulation the fault lists are recombined. This approach is also frequently beneficial even if only one computer is available.

TDX utilities partflt and mergeflt may be used to perform parallel via the GUI or a script. An easier way to do this is to use distributed faultsim. This is facilitated by additional switches for the tdx_fsim program. manages the splitting of the fault simulation onto multiple computers ("hosts") and will recombine the results. Each host may run one or more batches of faults depending on how the user configures the simulation. As soon as a host finishes one batch a new batch will be started.

distributed tdx_fsim is only supported on UNIX platforms at present.

A control panel is launched by pressing the distribute button on the tdx_fsim control panel.

Hosts List

The heart of the distribute fsim control panel is the list of hosts. This is found above the distributed fsim and cancel buttons. By default, the host which is running the GUI will be found in the list. This is not required and it can be removed from the list (as can any other host) by clicking the delete button to the left of the hostname. Additional hosts may be added to the list by pressing add host which will popup a menu of available hosts (which may be extended by pressing the config button).

For each host you may specify a number of faults to process on each pass. Choosing this number for maximum efficiency is not easy. It will depend on:

Generally, the length of time to complete a batch of faults will increase quicker than the number of faults. For instance, doubling the number of faults may triple or quadruple the run time of the batch. If the process exceeds physical memory the resulting page faulting may drastically reduce performance (10's or 100's of times slower). With experience, users learn how their circuit's simulation performance degrades with increasing fault load.

Distributed fault simulation is started by pressing the distributed fsim button. At this point, the other fields on the panel come into play. The faults pending: box indicates how many faults have yet to be started; the faults complete: box indicates how many faults have been simulated (i.e. their batch has completed). For each host there is an indication of approximately which vector is being processed and the number of the pass (i.e. batch) the host is on. From this information it is possible to get an idea of how effectively one has chosen the number of faults per batch (however, it is not possible to modify the choice for the remainder of the simulation).

Licensing

The amount of possible paralellism is obviously limited by the number of available (and hopefully unloaded or lightly loaded) processors. It is also limited by the number of licenses that have been purchased. Each distributed faultsim control process needs a license and each "slave" process needs one too. Choosing more hosts than you have available licenses will not improve performance!

The Hosts File

Prior to use of distributed tdx_fsim, the GUI requires creation of a file that defines available hosts. Assistance in creating and modifying this file is available by pressing the config button on the distributed fsim panel. The file contains one line per potential fault-simulation host. Each line is either a comment (starts with `#') or consists of five space-delimited fields: On some hosts the memory size can be obtained by a command such as /etc/dmesg | grep mem. Obtaining machine clock speed from the machine itself is generally impossible. One solution might be to track down the purchase order. Fortunately, the number isn't critical and a guess will do!

The following example might clarify the format:

obliq sparc20 40 64 /usr/tdx/sunOS4
cockpit sparc20 80 128 /usr/tdx/sunOS5
gamma2 alpha 433 512 /usr/tdx/alpha_osf1
The hosts table is loaded from one of the following files (in decreasing order of priority):
  1. ./hostTable
  2. $HOME/hostTable
  3. $TDX_ROOT/hostTable

GUI Support for Defining Available Hosts

A click on the config button on the distibuted fsim panel activates a panel to help you define the hosts table.

To add a host, you would:

  1. type the name of the host next to host:
  2. select the host's machine/operating system from the popup menu to the right of the host widget. This selection will cause the GUI to attempt to locate an appropriate TDX_ROOT value and the location of the binaries for that architecture using the current value of environment variable TDX_ROOT. Typically, this is $TDX_ROOT/../machine or $TDX_ROOT/machine where machine might be sun4_SunOS5 (Solaris). The location of the binaries is also automatically selected. If the automatic search fails the TDX_ROOT: and binaries: entries will become blank.
  3. type the machine speed next to Mhz. Optional.
  4. type the size of memory next to Mb. Optional.
  5. adjust TDX_ROOT: and/or binaries: if necessary.
  6. click add. Checks are made for the accuracy of your selections and warnings may be indicated. If so, fix the problem and click add again. Confirmation of success will be displayed in the top left of the panel.
The new host will appear in the add host menu on the distributed fsim panel.

It is also possible to modify the definition of a host. Type the name of the existing host in the host: box and press the return key. The existing values will be loaded and may be edited before clicking add which will modify the entry.

The GUI does not support removal of a host at this time. This should be performed using a text editor.

If you wish to save the result of your edits, click on save. This will write your new configuration to file hostTable in your current directory. If you wish your changes to be visible to all TDX users then you need to copy the new file to the distribution directory.

Top of page


Last modified: Sat Dec 19 14:20:50 PST 1998
Copyright (c) Vervent Technologies Inc, 2007