Skip to content

Commit

Permalink
adding enAdcTile/enDacTile arg to _RfDataConverter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ruck314 committed Jun 24, 2023
1 parent b40b1e3 commit c1d6fa3
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions python/surf/xilinx/_RfDataConverter.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
class RfDataConverter(pr.Device):
def __init__(
self,
gen3 = True, # True if using RFSoC GEN3 Hardware
gen3 = True, # True if using RFSoC GEN3 Hardware
enAdcTile = [True,True,True,True],
enDacTile = [True,True,True,True],
**kwargs):
super().__init__(**kwargs)

Expand Down Expand Up @@ -104,22 +106,24 @@ def __init__(
))

for i in range(4):
self.add(xil.RfTile(
name = f'dacTile[{i}]',
isAdc = False,
gen3 = gen3,
offset = 0x04000 + 0x4000*i,
expand = False,
))
if enDacTile[i]:
self.add(xil.RfTile(
name = f'dacTile[{i}]',
isAdc = False,
gen3 = gen3,
offset = 0x04000 + 0x4000*i,
expand = False,
))

for i in range(4):
self.add(xil.RfTile(
name = f'adcTile[{i}]',
isAdc = True,
gen3 = gen3,
offset = 0x14000 + 0x4000*i,
expand = False,
))
if enAdcTile[i]:
self.add(xil.RfTile(
name = f'adcTile[{i}]',
isAdc = True,
gen3 = gen3,
offset = 0x14000 + 0x4000*i,
expand = False,
))

def Init(self, dynamicNco=False):

Expand Down

0 comments on commit c1d6fa3

Please sign in to comment.