Memory Device; A.7.22 Memory Device - AMD SimNow Simulator 4.4.4 User Manual

Amd simnow simulator user manual
Table of Contents

Advertisement

User Manual

A.7.22 Memory Device

1 simnow> memdevice.usage
Automation Command
Save <filename>
Load <filename>
BaseAddress <value>
GetBaseAddress
SizeInBlocks <value>
GetSizeInBlocks
InitFile <filename>
GetInitFile
ReadOnly <0|1>
GetReadOnly
SystemBios <0|1>
GetSystemBios
MemAddrMask <0|1>
GetAddrMask
InitValEnable <0|1>
InitVal <hex value>
244
AMD Confidential
Description
Creates file „filename‟ and saves the contents of the
currently loaded ROM „to filename‟.
Loads the specified MemDevice „filename‟ to defined
address „BaseAddress‟.
„Value‟ is the base address of the device in hex.
Returns the base address of the device in hex.
„Value‟ is the total size of the memory device, given in
decimal value for the number of 32-Kbyte blocks (32-
Kbyte blocks are used because not initialized memory is
dynamically allocated when addressed in 32-Kbyte
chunks).
Returns the number of 32-Kbyte blocks allocated by this
device.
„filename‟ is the name of the binary file that is used to
initialize the memory contents. Note that the device
initializes memory for the content length of the file. If
you specify a 512-Kbyte ROM and use a 256-Kbyte
image file, the first 256 Kbytes are initialized.
Returns the path and name of the init file (see above
InitFile).
Turns (1) the memory device into a ROM. Writes to the
device are ignored when the read-only option is
selected.
Returns true if memory is read-only otherwise it returns
false.
Tells (1) the memory device that it is the system BIOS.
Returns true if memory is used as a System BIOS
otherwise it returns false.
Enables (1) or disables (0) memory-address masking. If
enabled (1) it indicates that the address received by the
memory device is masked by a bit mask with the same
number of bits as the size of the memory device (e.g., a
256-Kbyte ROM uses an 18-bit mask, or it is masked by
0x003FFFF). This enables the ROM to be remapped
dynamically into different memory address ranges in
conjunction with the aforementioned chip select.
Returns true if memory-address masking is enabled
otherwise it returns false.
Enables (1) or disables (0) the initialized unwritten
memory option. If enabled the memory is initialized
using a specified byte (see below InitVal) otherwise the
memory is not initialized.
Sets byte initializer for memory that needs to be
initialized.
h
September 12
, 2008
Appendix A

Advertisement

Table of Contents
loading

Table of Contents

Save Article as PDF