From c19c4b711b720781ab7c4eb2806d6519a1641721 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 8 Jun 2017 14:15:27 +0200 Subject: [PATCH] soc/cores/identifier: remove additionnal first character --- litex/soc/cores/identifier.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/litex/soc/cores/identifier.py b/litex/soc/cores/identifier.py index 5baedca15..ca9fec9b2 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):