The memory tool ( memtool) tests system memory.
EDA Quick Test mode only completes simple access (read) tests. You can use memtool to test static memory areas, such as L2Cache mapped as SRAM or DRAM on a memory mapped device.
The memory configuration file consists of lines that describe a region of memory and the tests performed on that memory region. Therefore, you can have multiple entries for a region of memory. All parameters are separated by a : character. The following describes the configuration file parameters.
b — byte (8 bits)
h — halfword (16 bits)
w — word (32 bits)
d — double-word (64 bits)
A-1 — run all available tests.
Syntax: ./memtool <option> -h := show this help test [[all]|list|region#] := test using the MEM test config file info := display configuration info of device read [b|h|w] address := read the specified physical address write [b|h|w] address data [length] := write at the specified physical address
// Memory Configuration File // // Example: // SystemRam:-:-:w:4:1:2800:0:0:1:-1:SPD:/dev/i2c-0:50:0,ff: // This describes the SystemRam which is dynamic in location and size. It is accessed by words // and incremented addresses of 4 bytes. It is ECC covered, and has a max chunk of 10KB max // cache and cacheline size (unused at this time) are 0. The tests will be performed once on this // region, and the -1 denotes to run all tests, excluding dim cache memory test. The Descriptive // device is a SPD on /dev/i2c-0 at address 0x50, and we read registers 0-255. // // Note: a '-' address and size denotes a dynamic ram allocation // =======================Tests================================ // -1 : all Tests Run // 0h : No Address Test // 1h : Address Read Test (Access) // 2h : Address Read|Modify|Write|Verify // 4h : Address walking 1's // 8h : Address walking 0's // 00h : No Data Test // 10h : Data Read Test (Access) // 20h : Data Read|Modify|Write|Verify // 40h : Data walking 1's // 80h : Data walking 0's // 100h : Data walking 1's // 200h : Data walking 0's // 400h : patterns (00ff, ff00, 55aa, aa55) // 800h : Cache (cacheKiller - Not Part of ALL Tests) SystemRam:-:-:d:8:1:2800:-1:-1:1:-1:i2c:0x52,SPD,0,255