STIL/VCD importer

Overview

This tool makes the test item generation easier for a large amount of STIL or VCD file conversion. This tool has following functions:

  • Converts STIL or VCD files to patterns.
  • Replaces the generated test condition values with variable.
  • Adjusts timing restriction of the generated test condition.
  • Adds a test item of each pattern to a work project.
    • Updates pin group definition on adding a test item.
    • Updates variable definition on adding a test item.
  • Compiles the generated patterns.
  • The generated work project is for MCU firmware only.
  • The generated work project is generated in Standard mode.

For Expert mode, refer to “How to apply this tool to a work project made by expert mode”.

Notice

CLOUD TESTING SERVICE, INC. (“CTS”) PROVIDE THIS DOCUMENT, WITH FREE OF CHARGE, AS A REFERENCE FOR CUSTOMER(S) TO PREPARE ITS ORIGINAL SOFTWARE AND CIRCUIT USED IN CONNECTION WITH THE SUBSCRIPTION OF CTS’ SERVICE. CUSTOMER MAY DUPLICATE OR MODIFY SAMPLE PROGRAM AND CIRCUIT EXAMPLE IN THIS DOCUMENT OR ATTACHED SAMPLE PROGRAM AND CIRCUIT EXAMPLE; HOWEVER, CLOUD TESTING SERVICE, INC DO NOT GUARANTEE THAT ANY KIND OF FUNCTIONAL CONFORMITY AND/OR MALFUNCTION AND/OR ANY DAMAGES INCURRED DUE TO THE USE, OF THIS SAMPLE PROGRAM AND CIRCUIT EXAMPLE AND/OR ITS DERIVATIVE SOFTWARE AND CIRCUIT. CLOUD TESTING SERVICE, INC DEEM THAT THE CUSTOMER(S) RECOGNIZED AND AGREED TO THE TERMS OF USE SHOWN ABOVE WHEN CUSTOMER(S) RECEIVED THIS DOCUMENT OR ATTACHED SAMPLE PROGRAM AND CIRCUIT EXAMPLE.

Requirement

This tool requires the following licenses and tools.

Tool download

Download from here.

How to execute

This tool is executed at the Windows command prompt.

% atpg2cts.pl -stil samp.stil -file options.txt -template temp -cxproj temp.cxproj -compile

The following logs are displayed when executed.

atpg2cts.pl Version 1.00.00: start at Mon Jan 29 10:49:17 2018
execution folder: C:/sample
parameters: -stil samp.stil -file options.txt -template temp -cxproj temp.cxproj -compile
script log file: stil.log
listing file name by [-stil] option
file name: samp_1.stil
file name: samp_2.stil
2 file(s) to convert
samp_1.stil log file: samp_1.stilr.log
samp_1.stil: start conversion at Mon Jan 29 10:49:17 2018
samp_1.stil: end conversion at Mon Jan 29 10:49:25 2018
samp_2.stil log file: samp_2.stilr.log
samp_2.stil: start conversion at Mon Jan 29 10:49:25 2018
samp_2.stil: end conversion at Mon Jan 29 10:49:32 2018
CTLab_stilr: converted 2/2 file(s)

Execution diagram

This tool runs as the following diagram.

STIL/VCD conversion

STIL conversion

  • Converts STIL files using STILReader for CX1000.
  • The STIL file name or the folder name in where the STIL file exists is given with -stil option.
  • Dedicated STILReader option must be defined in the file that is given with -file option.
  • Files generated by STILReader for CX1000 will be output in the folder that the script is executed.

Following options are available in STIL conversion.

OptionsDescriptions
-stil filenameConvert specified STIL file.
-stil foldernameConvert STIL files in specified folder.
-file option filenameApply specified option file as option file for STIL Reader(1).
-allpinnameadd prefix of pattern name to pin group all_pins.
-grpnameadd prefix of pattern name to pin group other than all_pins.

1:Allowable STILReader for CX1000 options will be shown as below.

-nm-scan-basegrp-pxrfilename-errorcheck-lf-pingrp
-wfcmap-makepinmap-grpname-pxr-pinmap-deledge-tsoptimize
-allpname-atpg-tester-tsmapfile-wfcreport-convopt-var

VCD conversion

  • Convert VCD files using CATVert-VCD for CX1000.
  • The VCD file name or the folder name in where the VCD file exists is given with -vcd option.
  • CDF(Conversion Definition File) used to CATVert-VCD for CX1000 must be prepared in advance, using CATVert Station is an easy way. The file is given with -cdf option.
  • Files generated by CATVert-VCD for CX1000 will be output in the folder that the script is executed.
  • Does not support -file option for CATVert-VCD for CX1000.

Following options are available in VCD conversion.

OptionsDescriptions
-vcd filenameConvert specified VCD file.
-vcd foldernameConvert VCD files in specified folder.
-cdf filenameSpecify CDF file for CATVert-VCD for CX1000.

Variable replacement for signal conditions

  • Variable replacement for VIH, VIL, VOH, VOL and each timing set’s period value is available.
  • Variable replacement is applied to “signal.csv“ generated from ”tcg.csv“.

Specify the following options to perform variable replacement.

OptionsDescriptions
-ts# variableReplace the period of the timing set specified in “#.”
When period is replaced, all signal timings of the timing set are replaced using equation below.
New period value = variable name
New timing value = (original timing value/original period value) * variable name
-vih variableReplace VIH of all converted signals.
If not specifed, “3.3” is set.
-vil variableReplace VIL of all converted signals.
If not specifed, “0.0” is set.
-voh variableReplace VOH of all converted signals.
If not specifed, “2.6” is set.
-vol variableReplace VOL of all converted signals.
If not specifed, “0.6” is set.

Adjustment for timing restriction

  • Confirmation and adjustment for timing restriction is available.
  • Adjustment for timing restriction is effective when -timing_chk option is specified.
  • This function is unavailable when using -ts option or the timing value of specified STIL is described by variable.

Specify the following options to check and correct timing restrictions.

OptionsDescriptions
-timing_chk RATIO/DIFFCheck timing restriction.
RATIO:Check if timing / period > 0.875 or not.
DIFF:Check if period - timing < 1.25e-9 or not.
RATIO and DIFF can not be used at the same time.
-timing_adj RATIO/DIFFAdjust timing restriction.
RATIO:Adjust timing to period * 0.875.
DIFF:Adjust timing to period - 1.25E-9.
RATIO and DIFF can not be used at the same time.

Work project generation

Append new test items

  • Copy .cxproj file specified by -cxproj, add a test item of each pattern to the end of the test flow of copied .cxproj file.
  • The test name uses the each pattern name.
  • The new test item copies a template test item which name is given by -template option. Signal condition and pattern name are replaced. Replace TS name if TS mapping file exists.

Specify the following options and add test items.

OptionsDescriptions
-cxproj filenameSpecify .cxproj filename to add test item.
Specify .cxproj file made by Standard mode.
-template test item nameSpecify the test item name to be used as a template when adding test items.
Specify a test item made by Functional Testing IP.
-signal_ovwOverwrite signal condition of template by the signal condition for each pattern.
if not specified, insert the signal condition for each pattern to top of the signal condition of template.

Update of pin group

  • Updates pin group definition.
  • If the pin group has already defined, the pins that compose the pin group are updated. If not defined, the pin group is appended.
  • Pin definition is not updated. Pin definition is necessary to be set in the .cxproj file specified by -cxorojoption in advance.

Update of Variable Definition

  • Updates variable definition when variable is defined in original STIL file.
  • If the variable has already defined, the variable and its value are not replaced. If not defined, the variable is appended.
  • Array type variable is not supported.

Pattern compile

  • Compiles patterns by -compile option.

Compile the pattern with the following options.

OptionsDescriptions
-compileCompile patterns.

Other options

The following options are available.


How to apply this tool to a work project created in expert mode

This tool is for a work project created in Standard mode, not available in a work project created in Expert mode. By the following process, it can be applied to work projects created in expert mode.

  1. Create new test item for the template (hereinafter referred to as A) in standard mode.
  2. Specify A to -template and execute the tool.
  3. Load a work project created in Expert mode to CloudTesting(TM) Lab.
  4. By [Flow Item(F)]->[Append Flow Item From Other Work Project(A)] in Home Window’s menu, Select the work project generated at phase (2) and select test items to add.

Notice

  • The generated work project is for MCU firmware only.
  • The generated work project is generated in Standard mode.
  • Work project file format is subject to change without notice.
  • The script and the document are subject to change without notice.
Updated at
March 14, 2018