Scanmaker Flow
scanmaker is a program that modifies a verilog circuit to
include scan chains. It accepts as input a command file that defines
the scan chain or chains to be inserted. tdx_step is capable
of creating this command file.
Scanmaker functionality in tdx_step
To get tdx_step to write out a command file you must set the
enable checkbutton in the Scanmaker
portion of the tdx_step GUI panel to be on.
You are also advised to specify a map
file . Clicking on the map file: button pops up a menu of
files with the .map extension. Alternatively, type in a name in box.
The map file can also be specified via a tdx_step interactive command
Although tdx_step can run without the map file, it may make
inappropriate assumptions and create a command file unsuitable for
scanmaker.
Scanmaker-related Interactive Commands in tdx_step
map_file
The map_file command is used to set/show the mapfile name. Without any
argument, it will show the name of the current map file. With a filename
argument, it will check the file for presence and read access. It will
also read the mapfile immediately.
The scanmaker command is a prefix command. i.e. it has a number of
sub-commands. The scanmaker sub-commands are:
- clock
- scanin_prefix
- scanout_prefix
- chain_pefix
- control
- max_chain_length
e.g. "scanmaker control TestEnable" will set
"TestEnable" port as your scan control pin.
scanmaker clock
clock is used to set the clock(s) involved in your scan chain(s). The valid
clock commands are:
-
scanmaker clock default <name>
-
Specify the default scan clock. If a flip-flop's clock is
repaired, it will use this clock. If a flip-flop is already
using this clock, then no change will be made. The default
name used for the scan clock is "ScanClock"
You can use an already existing top-level port of your
design as the default scan clock. However, this port need not
already exist in your design. scanmaker will create a new port
if needed.
- scanmaker clock allow <name>+
-
Specify other clocks that are valid scan clocks. If a flip-flop
uses a clock other than the default clock or the allowed clocks,
and it is to be used in the scan chain, then it is considered a
violation, and its clock will be repaired to use the default clock.
More than one name can be specified, and this command can also
be used more than once. Each clock is added to the allowed list.
Only existing top-level ports can be specified here.
- scanmaker clock clear
-
Use this command to reset the list of allowed clocks and the
default clock. There is no command to remove just one name from
the list of allowed clocks. By using this command, you will
reset the name of the default scan clock to "ScanClock" and
the list of allowed clocks will be empty.
scanmaker scanin_prefix
scanin_prefix is used to set the name of the top level scan in port of
your scan chain(s). The default prefix is "ScanIn". You can
only specify the prefix because it is used for all the scan chains. It
gets appended by a number denoting the scan chain number. So the first
chain will have the scan in port name of "ScanIn0", the
second "ScanIn1", and so on.
scanout_prefix is used to set the name of the top level scan out port
of your scan chain(s). The default prefix is "ScanOut". The
same prefix is used for all the scan chains. It gets appended by a
number. So the first chain will have the scan out port name of
"ScanOut0", the second "ScanOut1", and so on.
chain_prefix is used to set the name of your scan chain(s). The default
prefix is "chain". It is used for all the scan chains. It gets appended
by a number. So the first chain will named "chain0", the second "chain1", and so on.
control is used to set the scan control pin. The same signal is used
to put all the scan chains in or out of scan mode. The default name is
"TestEnable". This may or may not be an existing
port. scanmaker will create a new port if necessary.
max_chain_length is used to specify the maximum length of any scan
chain. If you do not want any limits to the length of the scan chain,
set it to 0. i.e. "scanmaker max_chain_length 0". If you do not
want any scan chain of length more than 25, then use "scanmaker max_chainlength 25".
tdx_step will then create multiple scan chains of roughly equal length
which do not exceed this limit. The default value is 0.
tdx_step advice commands
tdx_step has commands which give advice on suitability of
certain scan configurations and strategies. The functionality of these
commands has been expanded in order to create a command file for
scanmaker. A new advice command has also been added.
fullscanremainder is used for full scan. It will use all the storage elements
for scan, except those that are specified non-scan by the
user ("user-constraint"). This command is very much the same as before
except that now a command file is also output.
The output from the fullscanremainder command are:
- <design>.remainder.scn -- same as before
- <design>.remainder.cmd -- command file ready for scanmaker
advice 3 is used for partial scan. The amount of partial
scan can be set by the user using command
scanpercent.
advice 3 is the same as before. It will select only those flip-flops which
do not violate any scan rules. However, there may still be some repairs
to be made and those are written to the command file output.
The output from the advice 3 command are:
- <design>.3.step -- same as before
- <design>.3.scnviol -- same as before
- <design>.3.cmd -- command file ready for scanmaker
advice 2 is also used for partial scan but it
is a more aggressive strategy which uses the scanmaker's ability
to perform repairs. It will select the best flip-flops for partial scan
regardless of any violations (except user constraints). The repairs are
written out to the command file.
The output from the advice 2 command are:
- <design>.2.step -- same as before
- <design>.2.scnviol -- same as before
- <design>.2.cmd -- command file ready for scanmaker
top
Scanmaker
scanmaker modifies verilog files according to commands in the
given commandfile. The main input files for the tool are:
The following output files are written to a directory nominated by the user:
- modified verilog files
- repairs.v - extra verilog design file that stores the repair logic
- sout file - scan-out file that stores scan chain information
useful for tdx_atg
GUI Control Panel
The control panel is activated by the Test/Scanmaker option on
the main panel menu.
The top two lines of the panel allow the definition of command file and map file
respectively. The pop up menus list files with .cmd
and .map extensions respectively. Once it has been nominated, either
file may be viewed and edited by clicking on the button to the right
of the filename.
The choice of Scan Mode is made
with the radio buttons.
- full
- In this mode, scanmaker does not modify the design hierarchy;
all existing flipflops are inserted into
one scan chain; repairs (if any) are applied in a hierarchical way
(i.e. all instances of a hierarchical module are affected).
The full-scan mode allows:
- insertion of one scan chain that includes all silicon-level flipflops
- repairing of component groups (the group always includes all
instances of a hierarchal module).
- partial
- This mode is more complex then full-scan mode because it
keeps the design hierarchy as close as possible to the original
hierarchy structure and allows scan inserting actions that address "flat"
instances by their instance pathes.
In partial-scan mode, scanmaker replicates the hierarchical
modules whenever necessary. The replicated modules' name get
the suffix "_stitched<n>" where <n> starts at 1
and is incremented for each copy.
The partial-scan mode allows:
- insertion of any predefined scan chain
-
insertion of multiple scan chains
-
repairing of any component defined by its instance path.
The top level: menu allows definition of the top level of the
design. This is normally the same name as the design name. However,
if module names and the file names don't correlate you may need to
type in this box.
Libraries listed in the Verilog
libraries entry are neither
modified or written to the output directory.
Output Directory indicates where
the modified Verilog files are written.
Click on the scanmaker button to get
the program underway. Note that every verilog file is listed on the
command line and this is reflected in the window created to show
program output.
Bugs and Limitations
Tdx_scanmaker cannot work with Verilog multiple instance calls as in
the following example:
FF f1(q[1],data1,clk,x4,rs), f2(q[2],data2,x5,rs), f3(q[3],data3,x6,rs);
There is no direct link between the simulator's world
(based on the simulator primitives) and the scanmaker's world
(based on the silicon-level cells).
The scanmaker can only handle silicon-level cells with not more than
one Clock, Set and Clr pin.
Negative polarity is not supported for the DATA_IN (ScanIn)
and DATA_OUT (ScanOut) signals.
The signal names and polarities of the scan mode (ScanMode),
CLOCK (ScanClock) and CONTROL (TestEnable)
must be the same in all chains.
Only one global CLOCK signal is supported.
top
Last modified: Fri Nov 21 18:29:03 PST 1997
Copyright (c) Vervent Technologies Inc, 2007