From: Florent Kermarrec Date: Thu, 8 Jun 2017 12:15:27 +0000 (+0200) Subject: soc/cores/identifier: remove additionnal first character X-Git-Tag: 24jan2021_ls180~1846 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c19c4b711b720781ab7c4eb2806d6519a1641721;p=litex.git soc/cores/identifier: remove additionnal first character --- diff --git a/litex/soc/cores/identifier.py b/litex/soc/cores/identifier.py index 5baedca1..ca9fec9b 100644 --- a/litex/soc/cores/identifier.py +++ b/litex/soc/cores/identifier.py @@ -5,9 +5,8 @@ class Identifier(Module): def __init__(self, ident): contents = list(ident.encode()) l = len(contents) - if l > 255: + if l > 256: raise ValueError("Identifier string must be 255 characters or less") - contents.insert(0, l) self.mem = Memory(8, len(contents), init=contents) def get_memories(self):