Native Inspect Manual (H06.13+, J06.03+)
}
}
• To use the Tcl script ListPCBs to walk data structure:
(eInspect 0,519): tcl source mypcb
(eInspect 0,519): ListPCBs
20 Active PCBs
pin flags attributes
0 0x6000 7
1 0x0500 0
2 0x6000 0
3 0x0500 0
4 0x6000 0
5 0x0500 0
6 0x0000 0
7 0x0000 0
8 0x0000 0
9 0x0000 0
10 0x0000 0
11 0x0000 0
12 0x0000 0
13 0x0000 0
14 0x0000 0
15 0x0000 0
16 0x0000 0
17 0x0000 0
18 0x0000 0
19 0x0000 0
Tcl Commands Provided by Native Inspect
Native Inspect includes the built-in commands that are provided by open-source Tcl (such as package
provide and namespace eval). In addition to these, the commands listed in Table 14 are provided
specifically for the HP NonStop platform.
NOTE: Starting with Tcl 8.5, the exprexpression and formatexpression commands are
enhanced to support evaluating and formatting of 64-bit expressions.
NOTE: Starting with Tcl 8.5, the lexprexpression command is no longer supported. The
mpexprexpression and mpformatexpression commands are deprecated.
Table 14 Tcl Commands for HP NonStop Systems
DescriptionTcl Command
Evaluates a 32-bit expression. Also supports 64-bit expressions.exprexpression
Outputs a formatted 32-bit expression. Also supports 64-bit expressions.formatexpression
Evaluates a long expression (both 64-bit arithmetic and logical expressions). For
expression, specify the high and low 32 bits separated by a space.
lexprexpression
Evaluates a multiple precision expression. Can have an arbitrary operand. There
is no automatic truncation, so be careful when performing bit-shifting operations.
mpexprexpression
Outputs a formatted multiple-precision value.mpformatexpression
Example: tcl puts (mpformat 0x%x [mpexpr 0xffffffff00000000]]
0x0xffffffff00000000
Displays output; PUT does not include a newline, while puts does. PUT output is
also captured to a log file if you use the Native Inspect log command to record
a debug session.
{PUT|puts}expression
Passes the results of a symbolic expression to the Tcl script. Typically used to assign
a return value to a Tcl variable. Is essentially the output of the Native Inspect print
symexpr
Tcl Commands Provided by Native Inspect 133










