Package mem
This package holds all component declarations, types and functions of the PoC.mem <NS:mem> namespace.
It provides the following enumerations:
T_MEM_FILEFORMAT
specifies whether a file is in Intel Hex, LatticeMem, or Xilinx Mem format.
T_MEM_CONTENT
specifies whether data in text file is in binary, decimalor hexadecimal format.
It provides the following functions:
mem_FileExtension
returns the file extension of a given filename.
mem_ReadMemoryFile
reads initial memory content from a given file.
Name |
Description |
---|---|
T_MEM_FILEFORMAT |
|
T_MEM_CONTENT |
Functions
- mem_FileExtension(string Filename)
- Parameters:
Filename (string)
- mem_ReadMemoryFile(string FileName, positive MemoryLines, positive BitsPerMemoryLine, T_MEM_FILEFORMAT FORMAT, T_MEM_CONTENT CONTENT = MEM\_CONTENT\_HEX)
- Parameters:
FileName (string)
MemoryLines (positive)
BitsPerMemoryLine (positive)
FORMAT (T_MEM_FILEFORMAT)
CONTENT (T_MEM_CONTENT)
- Return type:
×