Txt File Format

TXT file format is a simple format that is used to describe the internal data model in plain text. It can be used to have a quick trial of a control structure.

TXT file support several commands, which is actually shared with Interactive Mode & Batch Mode. This means you can regard TXT file as a command file for Batch Mode.

Commands

load

Command load is used to load a design file.:

PinFab:> load -h
usage: load [-h] [-k KIND] filename

positional arguments:
  filename    Design file

optional arguments:
  -h, --help  show this help message and exit
  -k KIND     Design file type

Design type can be automatically recognized by tool with filename extension. If the file extension can’t idendify its type, user need explicitly specify it with argument -k.

save

Command save is used to save current design into a design file.:

PinFab:> save -h
usage: save [-h] [-k KIND] filename

positional arguments:
  filename    Design file

optional arguments:
  -h, --help  show this help message and exit
  -k KIND     Design file type

Similarly if the file extension can’t idendify its type, user specify it with -k.

logic

Command logic

PinFab:> logic -h
usage: logic [-h] [-out OUT] [logicname] [logic]

positional arguments:
  logicname
  logic

optional arguments:
  -h, --help  show this help message and exit
  -out OUT
mux

Command mux

PinFab:> mux -h
usage: mux [-h] [-o ONAME] [-i INAME] [-s SELNAME] [-size SELSIZE] [muxname]

positional arguments:
  muxname

optional arguments:
  -h, --help     show this help message and exit
  -o ONAME       Output signal name
  -i INAME       Iutput signal name
  -s SELNAME     Sel signal name
  -size SELSIZE  Sel signal name size
tree

Command tree

PinFab:> tree -h
usage: tree [-h] [-default DEFAULT] [-root ROOT]
            [treename] [muxnames [muxnames ...]]

positional arguments:
  treename
  muxnames

optional arguments:
  -h, --help        show this help message and exit
  -default DEFAULT  Set tree as default tree
  -root ROOT        Tree root, format as: muxname[:index], index defaults 1
pad

Command pad

PinFab:> pad -h
usage: pad [-h] [-oe [OE]] [-ppen [PPEN]] [-dout [DOUT]] [-pu [PU]] [-pd [PD]]
           [-ie [IE]] [-din [DIN]] [-default]
           [padname] [controls [controls ...]]

positional arguments:
  padname
  controls

optional arguments:
  -h, --help    show this help message and exit
  -oe [OE]      Pad OE control
  -ppen [PPEN]  Pad PPEN control
  -dout [DOUT]  Pad DOUT control
  -pu [PU]      Pad PU control
  -pd [PD]      Pad PD control
  -ie [IE]      Pad IE control
  -din [DIN]    Pad DIN control
  -default      Set pad as default pad
mode

Command mode

lskdjlfj
pin

Command pin

PinFab:> pin -h
usage: pin [-h] [-g GROUP] [-pad PAD] [-tree TREE]
           [pinname] [modestate [modestate ...]]

positional arguments:
  pinname     Pin name
  modestate   Padstate of different modes, in format: stat@mode

optional arguments:
  -h, --help  show this help message and exit
  -g GROUP    Pin group
  -pad PAD    Pad name of pin
  -tree TREE  Bound tree name of pin
find

Command find

PinFab:> find -h
usage: find [-h] [pattern]

positional arguments:
  pattern

optional arguments:
  -h, --help  show this help message and exit
generate

Command generate

PinFab:> generate -h
usage: generate [-h] [-o OUTPUT] [-t TEMPLATE]

optional arguments:
  -h, --help   show this help message and exit
  -o OUTPUT    Output file
  -t TEMPLATE  Template used to generate
generate_register

Command generate_register

PinFab:> generate_register -h
usage: generate_register [-h] filename

positional arguments:
  filename    Output filename

optional arguments:
  -h, --help  show this help message and exit
generate_integrate

Command generate_integrate

PinFab:> generate_integrate -h
usage: generate_integrate [-h] filename

positional arguments:
  filename    Output filename

optional arguments:
  -h, --help  show this help message and exit
summary

Command summary

PinFab:> summary -h
usage: summary [-h] [-v VERBOSE]

optional arguments:
  -h, --help  show this help message and exit
  -v VERBOSE  Verbose mode