GRMON3-UM
June 2019, Version 3.1.0
166 www.cobham.com/gaisler
66. mem - syntax
NAME
mem - AMBA bus 32-bit memory read access, list a range of addresses
SYNOPSIS
mem ?-options? address ?length?
DESCRIPTION
mem ?-options? address ?length?
Do an AMBA bus 32-bit read access at address and print the the data. The optional length parameter
should specified in bytes and the default size is 64 bytes (16 words).
OPTIONS
-bsize bytes
The -bsize option can be used to specify the size blocks of data in bytes that will be read between each
print to the screen. Setting a high value may increase performance but cause a less smooth printout when
using a slow debug link.
-ascii
If the -ascii flag has been given, then a single ASCII string is returned instead of a list of values.
-cstr
If the -cstr flag has been given, then a single ASCII string, up to the first null character, is returned
instead of a list of values.
-hex
Give the -hex flag to make the Tcl return values hex strings. The numbers are always 2, 4 or 8 characters
wide strings regardless of the actual integer value.
-x
Give the -x flag to make the Tcl return values hex strings. The numbers are always 2, 4 or 8 characters
wide strings regardless of the actual integer value. The return values are prefixed with 0x.
RETURN VALUE
Upon successful completion mem returns a list of the requested 32-bit words. Some options changes the result
value, see options for more information.
EXAMPLE
Read 4 words from address 0x40000000:
grmon3> mem 0x40000000 16
TCL returns:
1073741824 0 0 0
SEE ALSO
Section 3.4.7, “Displaying memory contents”