forked from M-Labs/artiq
1
0
Fork 0

ad9912: add missing NAC3TODO

This commit is contained in:
Sebastien Bourdeauducq 2022-03-01 18:09:41 +08:00
parent a3b55b6164
commit 0256c91d53
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ class AD9912:
self.chip_select = chip_select self.chip_select = chip_select
if sw_device: if sw_device:
self.sw = dmgr.get(sw_device) self.sw = dmgr.get(sw_device)
# NAC3TODO: support no sw
self.pll_n = pll_n self.pll_n = pll_n
sysclk = self.cpld.refclk / [1, 1, 2, 4][self.cpld.clk_div] * pll_n sysclk = self.cpld.refclk / [1, 1, 2, 4][self.cpld.clk_div] * pll_n
assert sysclk <= 1e9 assert sysclk <= 1e9