def register_clkin(self, clkin, freq):
self.clkin = Signal()
- if isinstance(clkin, Signal):
+ if isinstance(clkin, (Signal, ClockSignal)):
self.comb += self.clkin.eq(clkin)
elif isinstance(clkin, Record):
self.specials += DifferentialInput(clkin.p, clkin.n, self.clkin)
def register_clkin(self, clkin, freq):
self.clkin = Signal()
- if isinstance(clkin, Signal):
+ if isinstance(clkin, (Signal, ClockSignal)):
self.comb += self.clkin.eq(clkin)
elif isinstance(clkin, Record):
self.specials += DifferentialInput(clkin.p, clkin.n, self.clkin)
assert freq >= clki_freq_min
assert freq <= clki_freq_max
self.clkin = Signal()
- if isinstance(clkin, Signal):
+ if isinstance(clkin, (Signal, ClockSignal)):
self.comb += self.clkin.eq(clkin)
else:
raise ValueError