Skip to content

Commit

Permalink
Remove MemoryDevices from surf
Browse files Browse the repository at this point in the history
  • Loading branch information
slacrherbst committed Jul 6, 2023
1 parent b40b1e3 commit dea5257
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
12 changes: 9 additions & 3 deletions python/surf/devices/microchip/_Axi24LC64FT.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,15 @@ def __init__(self,
# Variables
##############################
if (instantiate):
pr.MemoryDevice(
self.add(pr.RemoteVariable(
name = "Mem",
description = "Memory Array",
size = (4*nelms),
# nelms = nelms,
)
numValues = nelms,
valueBits = 32,
valueStride = 32,
bitSize = 32 * nelms,
# mode = "RO",
))


15 changes: 7 additions & 8 deletions python/surf/devices/micron/_DdrSpd.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,15 @@ def __init__( self,
**kwargs):
super().__init__(description=description, hidden=hidden, **kwargs)

##############################
# Variables
##############################
if (instantiate):
pr.MemoryDevice(
self.add(pr.RemoteVariable(
name = "Mem",
description = "Memory Array",
size = (4*nelms),
# nelms = nelms,
numValues = nelms,
valueBits = 32,
valueStride = 32,
bitSize = 32 * nelms,
# mode = "RO",
wordBitSize = 8,
# bitSize = 8,
)
))

0 comments on commit dea5257

Please sign in to comment.