Flextest Command Line Interface


  1. To invoke Flextest as a command line interface,enter:

    shell> flextest ud_counter_ps.edif -edif -lib atglib -pt

    If you wish to save time, you can use your dofile to add the clocks and identify the scan chains and skip steps 2 through 4:

    shell> flextest ud_counter_ps.edif -edif -lib atglib -pt -dofile ud_counter_ps.dofile

    When the command has been entered, if you used the command line interface you should get the SETUP> prompt.



  2. To add clocks in the command line mode, enter the following command. The clocks are all inputs that directly affect the operation of the flip flops.

    SETUP> add clocks 0 CLK RESET

  3. To specify the scan groups enter the following command:

    SETUP> add scan groups grp1 ud_counter_ps.testproc

  4. To specify the scan chains in the command line, enter:

    SETUP> add scan chains chain1 grp1 scan_in1 OUT(1)
  5. Specify the test cycle for you test patterns by entering the following command:

    SETUP> set test cycle 2

  6. Add pin constraints by entering the following command:

    SETUP> add pin constraints clk sr0 1 1 1

  7. To run rules checking, enter the following command.

    SETUP> set system mode atpg

  8. This step is only needed if you plan on doing IDDQ testing, otherwise you may skip this step. Enter the following command:

    ATPG> set fault type IDDQ
  9. To create an internal fault list, enter the command shown below.

    ATPG> add faults -all
  10. To generate the test patterns, enter the following command:

    ATPG> run
  11. To take a look at the coverage statistics, enter the following command: 

    ATPG> report statistics

    For a detailed explanation of the fault types, click here.
  12. To take a look at the Hypertrophic faults, enter the following command: 

    ATPG> report faults -Class Hyp -all
  13. To save the test patterns in ASCII format, enter the following command:


    ATPG> save pattern ud_counter_ps.pats

    or if you wish to save them in verilog format, enter:

    ATPG> save patterns ud_counter_ps.pats
  1. To terminate the session, enter the following command:

    ATPG> exit



click here to go back to Index


model anotb (OUT, B, A) (

model aorbn (OUT, B, A) (

model dff (QBAR, Q, DATA, CLOCK) (

model dfsc (SCAN, QBAR, Q, DATA1, DATA, CLOCK) (

model dffr (RESET, QBAR, Q, DATA, CLOCK) (

model dfscr (SCAN, RESET, QBAR, Q, DATA1, DATA, CLOCK) (

model dffsr (SET, RESET, QBAR, Q, DATA, CLOCK) (

model dfscsr (SET, SCAN, RESET, QBAR, Q, DATA1, DATA0, CLOCK) (

model inv1 (OUT, IN1) (

model nd2x1 (OUT, IN2, IN1) (

model nd4 (OUT, IN4, IN3, IN2, IN1) (

model ndi2x1 (OUT2, OUT1, IN2, IN1) (

model nr3 (OUT, IN3, IN2, IN1) (

model xor (OUT, IN2, IN1) (



click here to go back to Index