soc_core: add back identifier
This commit is contained in:
parent
8f6114d0cd
commit
6576470179
|
@ -881,7 +881,7 @@ class LiteXSoC(SoC):
|
|||
self.check_if_exists(name)
|
||||
if with_build_time:
|
||||
identifier += " " + build_time()
|
||||
setattr(self.submodules, name, Identifier(ident))
|
||||
setattr(self.submodules, name, Identifier(identifier))
|
||||
self.csr.add(name + "_mem", use_loc_if_exists=True)
|
||||
|
||||
# Add UART -------------------------------------------------------------------------------------
|
||||
|
|
|
@ -169,6 +169,10 @@ class SoCCore(LiteXSoC):
|
|||
if integrated_main_ram_size:
|
||||
self.add_ram("main_ram", self.mem_map["main_ram"], integrated_main_ram_size)
|
||||
|
||||
# Add Identifier
|
||||
if ident != "":
|
||||
self.add_identifier("identifier", identifier=ident, with_build_time=ident_version)
|
||||
|
||||
# Add UART
|
||||
if with_uart:
|
||||
self.add_uart(name=uart_name, baudrate=uart_baudrate)
|
||||
|
|
Loading…
Reference in New Issue