diff --git a/litex/soc/cores/frequency_meter.py b/litex/soc/cores/frequency_meter.py index 3e6159ee2..522de1fdd 100644 --- a/litex/soc/cores/frequency_meter.py +++ b/litex/soc/cores/frequency_meter.py @@ -32,8 +32,8 @@ class Sampler(Module): class FrequencyMeter(Module, AutoCSR): - def __init__(self, period, width=6): - self.clk = Signal() + def __init__(self, period, width=6, clk=None): + self.clk = Signal() if clk is None else clk self.value = CSRStatus(32) # # #