Tcl command "rockm"

ROCKM library tcl interface


Index:


Input types

ROCKMT_ITrid
pointer

ROCKM id
Must be the same as ROCKMT_OTrid

ROCKMT_ITreadreg
case insensitive set
  • "reset"
  • "FIFO"
  • "watchdog"
  • "CSR0"
  • "CSR1"
  • "CSR2"
  • "elapsed"
  • "trigger"
  • "tque"
  • "tnow"
  • "chainadd"
  • "golden"
  • "wordcnt"
  • "info"
    if (hubmode=0) infohub else infomicro
  • "infohub"
    hubmode must be set to 0
  • "infomicro"
    hubmode must be set to 1
  • "microstat"
  • "microword"
  • "DFIFO"

ROCKMT_ITwritereg
case insensitive set
  • "reset"
  • "watchdog"
  • "CSR0"
  • "CSR2"
  • "trigger"
  • "chainadd"
  • "golden"
  • "microword"
  • "DFIFO"

ROCKMT_ITget
case insensitive set
  • "filter"
  • "intrst"
  • "reprog"
  • "cbus"
  • "fifo_rst"
  • "micro"
  • "hub_rst"
  • "cman"
  • "df"
  • "daf"
  • "dghf"
  • "dlhf"
  • "dae"
  • "de"
  • "tef"
  • "tff"
  • "watchdog"
  • "foe"
  • "boe"
  • "bof"
  • "cbusy_ff"
  • "cpause"
  • "hub_mode"
  • "inttrg"
  • "diag"
  • "ctknout"
  • "crdy"
  • "cerr"
  • "crst"
  • "crngt"
  • "cbusy"
  • "ctrgv"
  • "edata"
  • "hubon"
  • "cbuson"
  • "timeout"
  • "elapsed"
  • "wscale"
  • "elapsed_time"
  • "halt"
  • "busy"
  • "syncfail"
  • "parity_error"
  • "qtrg"
  • "ptrg"
  • "overrun"
  • "cnthigh"
  • "chain_add"
  • "golden_ref"
  • "cntlow"
  • "slot"
    hubmode must be set to 0
  • "auxas"
    hubmode must be set to 0
  • "auxtrgv"
    hubmode must be set to 0
  • "auxdk"
    hubmode must be set to 0
  • "auxds"
    hubmode must be set to 0
  • "cbustemp"
    hubmode must be set to 1
  • "vmetemp"
    hubmode must be set to 1
  • "wrcyc"
    hubmode must be set to 1
  • "rdcyc"
    hubmode must be set to 1
  • "urw"
    hubmode must be set to 1
  • "udav"
    hubmode must be set to 1
  • "udk"
    hubmode must be set to 1
  • "uds"
    hubmode must be set to 1
  • "status"
  • "cycle"
  • "invacc"
  • "uwrdy"
  • "done"
  • "microw"

ROCKMT_ITset
case insensitive set
  • "filter"
  • "intrst"
  • "reprog"
  • "cbus"
  • "fifo_rst"
  • "micro"
  • "hub_rst"
  • "cman"
  • "watchdog"
  • "foe"
  • "boe"
  • "bof"
  • "cbusy_ff"
  • "cpause"
  • "hub_mode"
  • "inttrg"
  • "diag"
  • "edata"
  • "elapsed"
  • "wscale"
  • "test"
  • "chain_add"
  • "goldenref"
  • "microw"

ROCKMT_ITwrite_reset
record
filter
natural

intrst
natural

reprog
natural

cbus
natural

fifo_rst
natural

micro
natural

hub_rst
natural

cman
natural

ROCKMT_ITwrite_watchdog
natural

ROCKMT_ITwrite_csr0
record
foe
natural

boe
natural

bof
natural

cbusy_ff
natural

cpause
natural

hub_mode
natural

inttrg
natural

diag
natural

ROCKMT_ITwrite_csr2
record
edata
natural

elapsed
natural

wscale
natural

ROCKMT_ITwrite_trigger
natural

Test field

ROCKMT_ITwrite_chainadd
natural

chain_add field

ROCKMT_ITwrite_golden
natural

goldenref field

ROCKMT_ITwrite_microword
natural

microw field


Output types

ROCKMT_OTrid
pointer

ROCKM id
Must be the same as ROCKMT_ITrid

ROCKMT_OTdummy
integer

Dummy result

ROCKMT_OTraw_readpage_internal
record
reset
natural

fifo
natural

watchdog
natural

csr0
natural

csr1
natural

csr2
natural

elapsed
natural

trigger
natural

ROCKMT_OTraw_readpage_info
record
tque
natural

tnow
natural

chainadd
natural

golden
natural

wordcnt
natural

info
natural

if (hubmode=0) infohub else infomicro

microstat
natural

microword
natural

ROCKMT_OTread_reset
record
filter
natural

intrst
natural

reprog
natural

cbus
natural

fifo_rst
natural

micro
natural

hub_rst
natural

cman
natural

ROCKMT_OTread_fifo
record
df
natural

daf
natural

dghf
natural

dlhf
natural

dae
natural

de
natural

tef
natural

tff
natural

ROCKMT_OTread_watchdog
natural

ROCKMT_OTread_csr0
record
foe
natural

boe
natural

bof
natural

cbusy_ff
natural

cpause
natural

hub_mode
natural

inttrg
natural

diag
natural

ROCKMT_OTread_csr1
record
ctknout
natural

crdy
natural

cerr
natural

crst
natural

crngt
natural

cbusy
natural

ctrgv
natural

ROCKMT_OTread_csr2
record
edata
natural

hubon
natural

cbuson
natural

timeout
natural

elapsed
natural

wscale
natural

ROCKMT_OTread_elapsed
natural

ROCKMT_OTread_trigger
record
halt
natural

busy
natural

syncfail
natural

parity_error
natural

ROCKMT_OTread_tque
record
tff
natural

link
natural

qtrg
natural

ROCKMT_OTread_tnow
natural

ptrg field

ROCKMT_OTread_chainadd
record
overrun
natural

cnthigh
natural

chain_add
natural

ROCKMT_OTread_golden
natural

goldenref field

ROCKMT_OTread_wordcnt
natural

cntlow field

ROCKMT_OTread_infohub
record
slot
natural

auxas
natural

auxtrgv
natural

auxdk
natural

auxds
natural

ROCKMT_OTread_infomicro
record
cbustemp
natural

vmetemp
natural

wrcyc
natural

rdcyc
natural

urw
natural

udav
natural

udk
natural

uds
natural

ROCKMT_OTread_microstat
record
status
natural

cycle
natural

invacc
natural

uwrdy
natural

done
natural

ROCKMT_OTread_microword
natural

microw field

ROCKMT_OTread_dfifo
record
nvd
natural

value
natural

ROCKMT_OTreadpage_internal
record
filter
natural

intrst
natural

reprog
natural

cbus
natural

fifo_rst
natural

micro
natural

hub_rst
natural

cman
natural

df
natural

daf
natural

dghf
natural

dlhf
natural

dae
natural

de
natural

tef
natural

tff
natural

watchdog
natural

foe
natural

boe
natural

bof
natural

cbusy_ff
natural

cpause
natural

hub_mode
natural

inttrg
natural

diag
natural

ctknout
natural

crdy
natural

cerr
natural

crst
natural

crngt
natural

cbusy
natural

ctrgv
natural

edata
natural

hubon
natural

cbuson
natural

timeout
natural

elapsed
natural

wscale
natural

elapsed_time
natural

halt
natural

busy
natural

syncfail
natural

parity_error
natural

ROCKMT_OTreadpage_infohub
record
tff
natural

link
natural

qtrg
natural

ptrg
natural

overrun
natural

cnthigh
natural

chain_add
natural

goldenref
natural

cntlow
natural

slot
natural

auxas
natural

auxtrgv
natural

auxdk
natural

auxds
natural

status
natural

cycle
natural

invacc
natural

uwrdy
natural

done
natural

microw
natural

ROCKMT_OTreadpage_infomicro
record
tff
natural

link
natural

qtrg
natural

ptrg
natural

overrun
natural

cnthigh
natural

chain_add
natural

goldenref
natural

cntlow
natural

cbustemp
natural

vmetemp
natural

wrcyc
natural

rdcyc
natural

urw
natural

udav
natural

udk
natural

uds
natural

status
natural

cycle
natural

invacc
natural

uwrdy
natural

done
natural

microw
natural


Commands

rockm ispresent chain
Input:
chain
natural

Output:
numeric boolean

C function:
rockmt_tl_ispresent

rockm open chain
Input:
chain
natural

Output:
ROCKMT_OTrid

C function:
rockmt_tl_open

rockm close rid
Input:
rid
ROCKMT_ITrid

Output:
ROCKMT_OTdummy

C function:
rockmt_tl_close

rockm raw read reg rid
Input:
reg
ROCKMT_ITreadreg

rid
ROCKMT_ITrid

Output:
natural

C function:
rockmt_tl_raw_read

Read a register

rockm raw write reg rid value [options]
Input:
reg
ROCKMT_ITwritereg

rid
ROCKMT_ITrid

value
natural

"-or" or
natural

Apply an or before writing (after the and)

"-and" and
natural

Apply an and before writing (before the or)

Output:
ROCKMT_OTdummy

C function:
rockmt_tl_raw_write

Write into a register

rockm raw readpage internal rid
Input:
rid
ROCKMT_ITrid

Output:
ROCKMT_OTraw_readpage_internal

C function:
rockmt_tl_raw_readpage_internal

Read the internal page

rockm raw readpage info rid
Input:
rid
ROCKMT_ITrid

Output:
ROCKMT_OTraw_readpage_info

C function:
rockmt_tl_raw_readpage_info

Read the info page

rockm get fld rid
Input:
fld
ROCKMT_ITget

rid
ROCKMT_ITrid

Output:
natural

C function:
rockmt_tl_get

Get a bit

rockm set fld rid value
Input:
fld
ROCKMT_ITset

rid
ROCKMT_ITrid

value
natural

Output:
ROCKMT_OTdummy

C function:
rockmt_tl_set

Set a bit

rockm read reset rid
Input:
rid
ROCKMT_ITrid

Output:
ROCKMT_OTread_reset

C function:
rockmt_tl_read_reset

Read and decode the reset register

rockm read FIFO rid
Input:
rid
ROCKMT_ITrid

Output:
ROCKMT_OTread_fifo

C function:
rockmt_tl_read_fifo

Read and decode the FIFO register

rockm read watchdog rid
Input:
rid
ROCKMT_ITrid

Output:
ROCKMT_OTread_watchdog

C function:
rockmt_tl_read_watchdog

Read and decode the watchdog register

rockm read CSR0 rid
Input:
rid
ROCKMT_ITrid

Output:
ROCKMT_OTread_csr0

C function:
rockmt_tl_read_csr0

Read and decode the CSR0 register

rockm read CSR1 rid
Input:
rid
ROCKMT_ITrid

Output:
ROCKMT_OTread_csr1

C function:
rockmt_tl_read_csr1

Read and decode the CSR1 register

rockm read CSR2 rid
Input:
rid
ROCKMT_ITrid

Output:
ROCKMT_OTread_csr2

C function:
rockmt_tl_read_csr2

Read and decode the CSR2 register

rockm read elapsed rid
Input:
rid
ROCKMT_ITrid

Output:
ROCKMT_OTread_elapsed

C function:
rockmt_tl_read_elapsed

Read and decode the elapsed register

rockm read trigger rid
Input:
rid
ROCKMT_ITrid

Output:
ROCKMT_OTread_trigger

C function:
rockmt_tl_read_trigger

Read and decode the trigger register

rockm read tque rid
Input:
rid
ROCKMT_ITrid

Output:
ROCKMT_OTread_tque

C function:
rockmt_tl_read_tque

Read and decode the TQUE register

rockm read tnow rid
Input:
rid
ROCKMT_ITrid

Output:
ROCKMT_OTread_tnow

C function:
rockmt_tl_read_tnow

Read and decode the TNOW register

rockm read chainadd rid
Input:
rid
ROCKMT_ITrid

Output:
ROCKMT_OTread_chainadd

C function:
rockmt_tl_read_chainadd

Read and decode the chainadd register

rockm read golden rid
Input:
rid
ROCKMT_ITrid

Output:
ROCKMT_OTread_golden

C function:
rockmt_tl_read_golden

Read and decode the golden register

rockm read wordcnt rid
Input:
rid
ROCKMT_ITrid

Output:
ROCKMT_OTread_wordcnt

C function:
rockmt_tl_read_wordcnt

Read and decode the wordcnt register

rockm read infohub rid
Input:
rid
ROCKMT_ITrid

Output:
ROCKMT_OTread_infohub

C function:
rockmt_tl_read_infohub

Read and decode the infohub register
hubmode must be set to 0

rockm read infomicro rid
Input:
rid
ROCKMT_ITrid

Output:
ROCKMT_OTread_infomicro

C function:
rockmt_tl_read_infomicro

Read and decode the infomicro register
hubmode must be set to 1

rockm read microstat rid
Input:
rid
ROCKMT_ITrid

Output:
ROCKMT_OTread_microstat

C function:
rockmt_tl_read_microstat

Read and decode the microstat register

rockm read microword rid
Input:
rid
ROCKMT_ITrid

Output:
ROCKMT_OTread_microword

C function:
rockmt_tl_read_microword

Read and decode the microword register

rockm read DFIFO rid
Input:
rid
ROCKMT_ITrid

Output:
ROCKMT_OTread_dfifo

C function:
rockmt_tl_read_dfifo

Read and decode a DFIFO value

rockm write reset rid value
Input:
rid
ROCKMT_ITrid

value
ROCKMT_ITwrite_reset

Output:
ROCKMT_OTdummy

C function:
rockmt_tl_write_reset

Encode and write the reset register

rockm write watchdog rid value
Input:
rid
ROCKMT_ITrid

value
ROCKMT_ITwrite_watchdog

Output:
ROCKMT_OTdummy

C function:
rockmt_tl_write_watchdog

Encode and write the watchdog register

rockm write CSR0 rid value
Input:
rid
ROCKMT_ITrid

value
ROCKMT_ITwrite_csr0

Output:
ROCKMT_OTdummy

C function:
rockmt_tl_write_csr0

Encode and write the CSR0 register

rockm write CSR2 rid value
Input:
rid
ROCKMT_ITrid

value
ROCKMT_ITwrite_csr2

Output:
ROCKMT_OTdummy

C function:
rockmt_tl_write_csr2

Encode and write the CSR2 register

rockm write trigger rid value
Input:
rid
ROCKMT_ITrid

value
ROCKMT_ITwrite_trigger

Output:
ROCKMT_OTdummy

C function:
rockmt_tl_write_trigger

Encode and write the trigger register

rockm write chainadd rid value
Input:
rid
ROCKMT_ITrid

value
ROCKMT_ITwrite_chainadd

Output:
ROCKMT_OTdummy

C function:
rockmt_tl_write_chainadd

Encode and write the chainadd register

rockm write golden rid value
Input:
rid
ROCKMT_ITrid

value
ROCKMT_ITwrite_golden

Output:
ROCKMT_OTdummy

C function:
rockmt_tl_write_golden

Encode and write the golden register

rockm write mircoword rid value
Input:
rid
ROCKMT_ITrid

value
ROCKMT_ITwrite_microword

Output:
ROCKMT_OTdummy

C function:
rockmt_tl_write_microword

Encode and write the microword register

rockm readpage internal rid
Input:
rid
ROCKMT_ITrid

Output:
ROCKMT_OTreadpage_internal

C function:
rockmt_tl_readpage_internal

Read the internal page

rockm readpage infohub rid
Input:
rid
ROCKMT_ITrid

Output:
ROCKMT_OTreadpage_infohub

C function:
rockmt_tl_readpage_infohub

Read the info page, with infohub register
hubmode must be set to 0

rockm readpage infomicro rid
Input:
rid
ROCKMT_ITrid

Output:
ROCKMT_OTreadpage_infomicro

C function:
rockmt_tl_readpage_infomicro

Read the info page, with infomicro register
hubmode must be set to 1

rockm do reset rid
Input:
rid
ROCKMT_ITrid

Output:
ROCKMT_OTdummy

C function:
rockmt_tl_do_reset

Reset the ROCKM in the right order


Generated Wed 29. Oct 1997 11:40:15 from a tl file.
Do not modify by hand!