From 1b9eefbee4f953270967c6d9cd3e157c55255c64 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 25 Mar 2021 08:43:52 +0100 Subject: [PATCH] integration/soc: Move Timer import to add_timer. --- litex/soc/integration/soc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/integration/soc.py b/litex/soc/integration/soc.py index da7a0f712..b29beb35a 100644 --- a/litex/soc/integration/soc.py +++ b/litex/soc/integration/soc.py @@ -15,7 +15,6 @@ from migen import * from litex.soc.cores import cpu from litex.soc.cores.identifier import Identifier -from litex.soc.cores.timer import Timer from litex.soc.cores.video import VideoTimingGenerator, VideoTerminal, VideoFrameBuffer, ColorBarsPattern from litex.soc.interconnect.csr import * @@ -919,6 +918,7 @@ class SoC(Module): self.add_constant("CONFIG_CPU_NOP", self.cpu.nop) def add_timer(self, name="timer0"): + from litex.soc.cores.timer import Timer self.check_if_exists(name) setattr(self.submodules, name, Timer()) self.csr.add(name, use_loc_if_exists=True)