You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Benjamin Reese edited this page Oct 11, 2018
·
1 revision
MemoryDevice
A MemoryDevice allows for efficient loading of large data blocks into FPGA registers/BRAM.
Instantiation works like any other pyrogue.Device. A MemoryDevice has no Variables, and can only be loaded via a YAML config file.
Instantiation Example
pyrogue.MemoryDevice(
name='Waveform',
description='',
offset=0, # Address offset relative to parentsize=4096, # Size of memory block in bytesbase=pyrogue.UInt, # Data type at each locationwordBitSize=32, # Size of each word in bitsstride=4, # Address stride between each wordverify=True, #Verify the contents after loading
)
YAML Example
Path:
To:
Waveform:
0: 0x12345678, 0xAAAA5555 # Load these words into the Waveform RAM starting at word offset 02: 0x00000000, 0x00000000 # Load these words starting at word offset 24: 0, 1, 2, 3, 4, 5, 6, 7, 8 # Can put as many values as you want at each offset