phy/sim_utils: fix log level NONE not working

This commit is contained in:
Jędrzej Boczar 2021-07-12 15:58:30 +02:00 committed by Alessandro Comodi
parent 914d018cf8
commit 6366a02389
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ class SimLogger(Module, AutoCSR):
def __init__(self, log_level=INFO, clk_freq=None): def __init__(self, log_level=INFO, clk_freq=None):
self.ops = [] self.ops = []
self.level = Signal(reset=log_level, max=self.NONE) self.level = Signal(reset=log_level, max=self.NONE + 1)
self.time_ps = None self.time_ps = None
if clk_freq is not None: if clk_freq is not None:
self.time_ps = Signal(64) self.time_ps = Signal(64)