diff --git a/litex/soc/integration/export.py b/litex/soc/integration/export.py index 9e515796d..4eaf6fd9b 100644 --- a/litex/soc/integration/export.py +++ b/litex/soc/integration/export.py @@ -397,6 +397,12 @@ def get_csr_svd(soc, vendor="litex", name="soc", description=None): svd.append(' {}'.format(name.upper())) if description is not None: svd.append(' '.format(reflow(description))) + else: + import datetime + import time + fmt = "%Y-%m-%d %H:%M:%S" + build_time = datetime.datetime.fromtimestamp(time.time()).strftime(fmt) + svd.append(' '.format(reflow("Litex SoC " + build_time))) svd.append('') svd.append(' 8') svd.append(' 32')