integration/soc: Move Identifier import to add_identifier.

This commit is contained in:
Florent Kermarrec 2021-03-25 08:47:05 +01:00
parent e1b20a934a
commit 6e23fb1d99
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,6 @@ from math import log2, ceil
from migen import * from migen import *
from litex.soc.cores import cpu from litex.soc.cores import cpu
from litex.soc.cores.identifier import Identifier
from litex.soc.interconnect.csr import * from litex.soc.interconnect.csr import *
from litex.soc.interconnect.csr_eventmanager import * from litex.soc.interconnect.csr_eventmanager import *
@ -1089,6 +1088,7 @@ class SoC(Module):
class LiteXSoC(SoC): class LiteXSoC(SoC):
# Add Identifier ------------------------------------------------------------------------------- # Add Identifier -------------------------------------------------------------------------------
def add_identifier(self, name="identifier", identifier="LiteX SoC", with_build_time=True): def add_identifier(self, name="identifier", identifier="LiteX SoC", with_build_time=True):
from litex.soc.cores.identifier import Identifier
self.check_if_exists(name) self.check_if_exists(name)
if with_build_time: if with_build_time:
identifier += " " + build_time() identifier += " " + build_time()