-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add software support for RowFpgaBoard
- Loading branch information
1 parent
1ddf696
commit 61501f4
Showing
8 changed files
with
97 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import pyrogue as pr | ||
|
||
import surf | ||
import surf.protocols.ssi | ||
|
||
import warm_tdm | ||
|
||
class RowFpgaBoard(pr.Device): | ||
def __init__(self, frontEndClass, num_row_selects=32, num_chip_selects=0, **kwargs): | ||
super().__init__(**kwargs) | ||
|
||
self.forceCheckEach = True | ||
|
||
self.add(frontEndClass( | ||
name='AnalogFrontEnd')) | ||
|
||
self.add(warm_tdm.WarmTdmCore2( | ||
offset = 0x00000000, | ||
expand = True, | ||
disable_timing_tx = True, | ||
local_therm_channels = [9, 10, 1, 11, 0, 3], | ||
fe_therm_channels = [2, 8])) | ||
|
||
self.add(surf.protocols.ssi.SsiPrbsRx( | ||
enabled = False, | ||
hidden = True, | ||
offset = 0xC0200000)) | ||
|
||
self.add(surf.protocols.ssi.SsiPrbsTx( | ||
enabled = False, | ||
hidden = True, | ||
offset = 0xC0201000)) | ||
|
||
self.add(warm_tdm.RowDacDriver( | ||
offset = 0xC100_0000, | ||
frontEnd = self.AnalogFrontEnd, | ||
num_row_selects = num_row_selects, | ||
num_chip_selects = num_chip_selects, | ||
expand = True)) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters