From 6366a02389546b4e706401e779f5b7fa400be3e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Boczar?= Date: Mon, 12 Jul 2021 15:58:30 +0200 Subject: [PATCH] phy/sim_utils: fix log level NONE not working --- litedram/phy/sim_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litedram/phy/sim_utils.py b/litedram/phy/sim_utils.py index 1d4fc11..04b5b91 100644 --- a/litedram/phy/sim_utils.py +++ b/litedram/phy/sim_utils.py @@ -146,7 +146,7 @@ class SimLogger(Module, AutoCSR): def __init__(self, log_level=INFO, clk_freq=None): 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 if clk_freq is not None: self.time_ps = Signal(64)