Navigate: GUI Main Panel fcomp collapse mergeflt partflt changeflt removeflt reporter
Related: Fault Status Types

The Report Generator, reporter

reporter is a general purpose fault file report formatter. Flexible selection mechanisms construct arbitrary, user defined coverage calculations and fault listings. It is also possible to produce a simple, predefined summary known here as the standard report.

Standard Report

In its simplest usage, reporter produces a brief summary of the status of a fault file. To obtain this report select FileList/Report/Standard on the main menubar. A new window is created to display a summary similar to the following example:
Representative faults:	   220
Calculated coverage:	  0.00%
	Detected:	     0	   0.0%
	Undetected:	   220	 100.0%
	Undetectable:	     0	   0.0%
	Probable:	     0	   0.0%
	ATG_Wont:	     0	   0.0%
	ATG_Gave_Up:	     0	   0.0%
	Hyperactive:	     0	   0.0%
	Oscillates:	     0	   0.0%
	Suspended:	     0	   0.0%
	Unexpected:	     0	   0.0%
	Ignore:		     0	   0.0%
Note: this summary is created and an abbreviated version displayed when you double-click on a fault file icon.

Custom Report

Selecting the FileList/Report/Custom on the main menubar launches a dialog panel. There are two text areas on this. The top one has a lighter, recessed appearance and is used to hold a "script" that defines the content and layout of the report.

The bottom text area is labeled output:. This is used to display the generated report after the report button has been pressed. The top section of the dialog provides assistance in defining the content of the report.

Existing scripts may be loaded with the load button located above the script; new or modified scripts may be saved with the save button. The third button in this area, clear will remove all existing text from the script area.

Defining Scripts

Reporter can be viewed as a filter for ascii text files. All text present in the input command file are echoed to standard out, unless set off by curly braces ('{' and '}'). Within braces, reporter looks for report generation instructions, which create output on standard out.

The following is a simple report directive:

Coverage: {((#detected + #probable) / (total - #unbl)) * 100}%
For some circuit, the above example may print:
Coverage: 97.32%
The general form of a directive is as follows:
{ report [ , report ] ... }
Expressions may include:
  1. four function arithmetic using '+', '-', '*', '/',
  2. built in variables: TOTAL, #detected, #undetected, ... #any_status
  3. 'COUNT selection class FAULTS' clause for selecting arbitrary fault subsets,
  4. floating-point constants.
selection is discussed below. class can be "collapsed" or "equivalent". If class is not specified, "collapsed" is used. Note the built in variables (TOTAL, #detected, #undetected, etc.) are also collapsed counts. Examples:
{ count pin "clk" faults + #osc }

{ count all collapsed faults }

{ count undetectable collapsed faults }

Listing Faults

The syntax:
LIST selection FAULTS [ unames ]
produces a list of the selected faults. By default, the listing format is an ascii fault list that can be used as input to fcomp (this is supported by the fcomp button in the GUI panel). The optional keyword "unames" following "faults" indicates to reporter that the hierarchical name of the appropriate highest-level cell module instance pin should be used to denote the fault origin; in the absence of "unames", hierarchical name of the underlying gate/UDP instance pin is used to denote the fault origin. It is not valid to run fcomp on a list produced with the "unames" option.

The selection for LIST or COUNT clauses are a conjunction of filter conditions:

  1. ALL
  2. fault status (eg. undetectable or probable)
  3. fault type (eg. SA0 or SA01)
  4. GATE "gate name wild card string"
  5. NET "net name wild card string"
  6. PIN "primitive pin name wild card string"
  7. BACK_ANN "back annotation wild card string"
  8. GATE_TYPE "gate type name wild card string"
The keywords "MODULE" and "BLOCK" can be used for "GATE", and the keywords "TYPE" and "COMPONENT" can be used for "GATE_TYPE".

Conditions are separated by commas. Any filter condition can be negated by "NOT". Do this by inserting "NOT" in front of the keyword using normal editing features (the text areas support a subset of emacs control sequences). The following example uses multiple filters, one of which uses negation:

{list gate "RPD.WZ.~", NOT net "VCC" gate_type "TDX_DFF1" faults}

The GUI panel provides assistance in defining these clauses. The boxes at the top of the panel can be filled with selection values. If left blank, that part of the filter will not be activated.

The predefined values for fault type and fault status are available from menus activated by the respective field labels.

When all the desired settings have been made press the count or list buttons to insert the clause in the script at the current insertion position. The resulting script text may be edited as normal.

The gate_type names are case insensitive, but must otherwise match the TDX gate type names defined in "man tdx_info" for Verilog or VHDL. For example, in Verilog the DFF primitive is "TDX_DFF1", but in VHDL it is "DFF1". In Verilog, an and gate is "and", but in VHDL it is "AND_GATE".

Wild-Card Naming

The following "wild-cards" are accepted to identify multiple gates and fault origins:
~
tilde matches any number of characters, even through hierarchical boundaries
*
asterisk matches any number of characters up to a hierarchy boundary
#
pound matches one or more digits.

Print Output Formats

A format specification can be used with reporter commands that print numeric values. All values are floating-point numbers, and the format is passed to the C "printf" utility. Examples of this are "%4.2f" and "%6.0f". The first integer before the period is the "minimum field width", and the second integer is the precision after the decimal point. The "%4.2f" format will print numbers like " 6.00" and "1234.12". The "%6.0f" format will print "123456" and " 3456". If the value exceeds the "minimum field width", the full value is printed in an extended field width. The default numeric value format is "%6.2f".

It is also possible to specify a format for the "list" command. The following is an example; please see the TDX User's Manual for more information.

{list all faults("'%s' Pin '%s' %s Status '%s'\n")}
This produces the following type of report:
    'RA.U3.U2' Pin 'B' SA0 Status 'DETECTED'

Examples

{ list gate "Name", undetected faults }

{ list gate "Name", undetected faults unames }

{ list module "Name~", probable, sa0 faults }

{ list module "Name~", probable, sa0 faults unames }

{ list gate "Name~", pin "Q" faults unames }

{ list gate "Name~", pin "Q" faults }

{list all faults  ("name %s, pin %s, val =%s\n") }

{list all faults unames ("name %s, pin %s, val =%s\n") }

{ list gate_type "TDX_DFF1", not detected, sa1 faults }

{ count gate "Name~", pin "Q" faults :"%4.0f"}

{#undetected:"%2.0f"}

Name, Date and System Clauses

The reporter program has built-in commands to print the circuit model name, the current date, the input fault list file name, and to execute a shell command:
{circuit}
Circuit model name
{model}
Circuit model name
{date}
Current date and time
{file}
Input fault list file name
{!"shell command"}
Execute shell command
{!"ls"}
List directory
{!"cat filename"}
Print "filename" in the report

Output Redirection

The report text may be saved to a user-nominated file by pressing the save button above the output text area. Alternatively, you can direct that the results of the report be written directly to one or more nominated files. This is achieved by using a separate redirection reporter command. The output is redirected until the next redirection reporter command. Some special characters are allowed in the file name:
~
your home directory
$shellVar
$$c
circuit name
$$f
fault file name Examples of redirection:
{ > "file" }
write new file
{ >> "file" }
append to the end of file
{ > "" }
back to stdout
For example:
{ > "~/work/$$c/$$f.report" }
The following sequence will create two files, the file named "fee" in your home directory will contain a line like "0.84% for run XXX":
    { > "foo" }
    { list undetected faults }
    { > "~/fee" }
    { #detected / total }% for run XXX

Running fcomp on the results of reporter

The default format of the "list" command (as long as you don't use the "unames" option) is suitable for feeding into the fcomp program. The reporter GUI panel makes this easy for you. Assuming the output panel only contains the result of one or more "list" commands (no additional text or "count" output), you may push the fcomp button to run the faultlist compiler on the faultlist. You will be prompted for the name of the faultfile to be created.
Last modified: Mon Jan 5 15:55:20 PST 1998
Copyright (c) Vervent Technologies Inc, 2007