Emulation of Memory Communication

The emulation of memory communication is driven by a stimuli file where information is provided about the sequence of accesses.

For any present memory port, the eVA_Design_Emulator entity has a generic Mem<X>_StimuliFileName where <X> is the port number. The stimuli file consists of lines with following syntax,

<WrData> <WrAddr> <WrFlag> <WrReq> <RdAddr> <RdFlag> <RdReq>

where the elements have the following meaning:

<WrData>: hexadecimal data word intended for port ovMemWrDataX

<WrAddr>: hexadecimal write address (for ovMemWrAddrX)

<WrFlag>: hexadecimal write flag (for ovMemWrFlagX)

<WrReq>: write request (oMemWrReqX)

<RdAddr>: hexadecimal read address (for ovMemRdAddrX)

<RdFlag>: hexadecimal read flag (for ovMemRdFlagX)

<RdReq>: read request (oMemRdReqX)

To any command line, you can add a comment preceded by ‘#’.

The following code is an example stimuli file which causes the output of two images each consisting of four data words:

0000000000000000 000000 0 0 000000 00 0

0000000000000000 000000 0 0 000000 00 0

0000000000000000 000000 0 0 000000 00 0

0000000000000000 000000 0 0 000000 00 0

000000000000000a 000000 0 1 000000 00 0 #Write 0xa to address 0x0

000000000000000b 000001 0 1 000000 00 0 #Write 0xb to address 0x1

000000000000000c 000002 0 1 000000 00 0 #Write 0xc to address 0x2

000000000000000d 000003 1 1 000000 00 0 #Write 0xd to address 0x3

0000000000000000 000000 0 0 000000 00 0

0000000000000000 000000 0 0 000000 00 0

0000000000000000 000000 0 0 000000 00 0

0000000000000000 000000 0 0 000000 00 0

0000000000000000 000000 0 0 000000 00 0

0000000000000000 000000 0 0 000000 00 0

000000000000000e 000104 1 1 000000 00 0 #Write 0xe to address 0x104

00000000000000bb 000001 0 1 000000 00 0 #Write 0xbb to address 0x1

0000000000000000 000000 0 0 000000 00 1 #Read from address 0x0

0000000000000000 000000 0 0 000001 00 1 #Read from address 0x1

0000000000000000 000000 0 0 000002 00 1 #Read from address 0x2

0000000000000000 000000 0 0 000003 01 1 #Read from address 0x3

000000000000000e 000000 0 0 000104 00 1 #Read from address 0x104

0000000000000000 000000 0 0 000000 00 0

0000000000000000 000000 0 0 000000 00 0

0000000000000000 000000 0 0 000000 00 0

 

Read data returned from the memory to the emulator is written to a file. For providing the file name the eVA_Design_Emulator entity has a generic Mem<X>_DumpFileName. The dump lines have the following format,

<RdData> <RdFlag>

where the elements have the following meaning:

<RdData>: hexadecimal data word according to port ivMemRdDataX

<RdFlag>: hexadecimal value of read flag according to port ivMemRdFlagX