
GRMON3-UM
June 2019, Version 3.1.0
226
www.cobham.com/gaisler
Below is an example of how the first MCTRL is named and how the APB register base address is found using
Plug and Play information from the GRMON
mctrl0
variable. The eleventh PCI device (a network card) is also
listed using the unique name
pdev10
.
grmon3> info sys mctrl0
mctrl0 Cobham Gaisler Memory controller with EDAC
AHB: 00000000 - 20000000
AHB: 20000000 - 40000000
AHB: 40000000 - 80000000
APB: 80000000 - 80000100
8-bit prom @ 0x00000000
32-bit static ram: 1 * 8192 kbyte @ 0x40000000
32-bit sdram: 2 * 128 Mbyte @ 0x60000000
col 10, cas 2, ref 7.8 us
grmon3> info sys pdev10
pdev10 Bus 02 Slot 03 Func 00 [2:3:0]
vendor: 0x1186 D-Link System Inc
device: 0x4000 DL2000-based Gigabit Ethernet
class: 020000 (ETHERNET)
subvendor: 0x1186, subdevice: 0x4004
BAR1: 00001000 - 00001100 I/O-32 [256B]
BAR2: 82203000 - 82203200 MEMIO [512B]
ROM: 82100000 - 82110000 MEM [64kB]
IRQ INTA# -> IRQW
2. Variables
GRMON provides variables that can be used in scripts. A list of the variables can be found below.
grmon_version
The version number of GRMON
grmon_shell
The name of the shell
grmon::settings::suppress_output
The variable is a bitmask to control GRMON output.
bit 0
Block all output from GRMON commands to the terminal
bit 1
Block all output from TCL commands (i.e. puts) to the terminal
bit 2
Block all output to the log
grmon::settings::echo_result
If setting this to one, then the result of a command will always be printed in the terminal.
grlib_device
The device ID of the system, read from the plug and play area.
grmon::interrupt
This variable will be set to 1 when a user issues an interrupt (i.e. pressing Ctrl-C from the commandline), it's
always set to zero before a commands sequence is issued. It can be used to abort user defined commands.
It is also possible to write this variable from inside hooks and procedures. E.g. writing a 1 from a
exec
hook will abort the execution
grlib_build
The build ID of the system, read from the plug and play area.
grlib_system
The name of the system. Only valid on known systems.
grlib_freq
The frequency of the system in Hz.
1
Replace with device name.
Содержание GRMON3
Страница 56: ...GRMON3 UM June 2019 Version 3 1 0 56 www cobham com gaisler...
Страница 114: ...GRMON3 UM June 2019 Version 3 1 0 114 www cobham com gaisler...
Страница 123: ...GRMON3 UM June 2019 Version 3 1 0 123 www cobham com gaisler dcache...
Страница 156: ...GRMON3 UM June 2019 Version 3 1 0 156 www cobham com gaisler SEE ALSO Section 6 13 On chip logic analyzer driver...
Страница 208: ...GRMON3 UM June 2019 Version 3 1 0 208 www cobham com gaisler SEE ALSO Section 3 5 Tcl integration...