cores/xadc: Fix refactor issue.

This commit is contained in:
Florent Kermarrec 2023-02-10 11:53:59 +01:00
parent 408a68ba79
commit 2205a0c2c3
1 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@ USSystemMonitorChannels = [
]
class USSystemMonitor(XilinxSystemMonitor):
def __init__(self, channels=USSystemMonitorChannels, primitive="SYSMONE1", sim_device="ULTRASCALE", analog_pads=None):
def __init__(self, channels=USSystemMonitorChannels, primitive="SYSMONE1", sim_device=None, analog_pads=None):
# Channels.
for channel in channels:
self.add_channel(channel)
@ -255,7 +255,7 @@ class USSystemMonitor(XilinxSystemMonitor):
i_DI = self.di,
o_DO = self.do
)
self.specials += Instance(primitive, self.params)
self.specials += Instance(primitive, **self.params)
# DRP.
self.comb += If(~self.drp_en,