<memory_space>.get-string <memory_space>.save-vmem
Simics Reference Manual  /  3 Commands  /  3.2 Command List  / 

<memory_space>.load-vmem

Synopsis

<memory_space>.load-vmem filename [offset] [word-size] [-b]

Description

Loads the contents of the Verilog VMEM file filename into memory. Simics tries to guess the word size based on the number of digits it sees in the numbers, but this is only a guess. One can specify the word size by passing the word-size argument.

Offsets in the file are interpreted relative to offset and as multiples of word-size.

By default, numbers are assumed to be in little endian format. For example, the following Verilog VMEM file contains the data which will be loaded at address 0x1000:

@00000400 48656D6C 6F2C2057 6F726C64 0AFFFFFF

Byte of the memory at address 0x1000 will get value 0x6c and byte at address 0x1001 will get value 0x6d. If -b is specified, numbers are instead interpreted in big endian format and byte at address 0x1000 will get value 0x48.

This command uses Simics's Search Path and path markers (%simics%, %script%) to find the file to load. Refer to The Command Line Interface chapter of the Simics User's Guide manual for more information on how Simics's Search Path is used to locate files.

Provided By

Simics Core

See Also

<memory_space>.save-vmem, <memory_space>.load-intel-hex
<memory_space>.get-string <memory_space>.save-vmem