soc/cores/identifier: remove additionnal first character

This commit is contained in:
Florent Kermarrec 2017-06-08 14:15:27 +02:00
parent 77732fca95
commit c19c4b711b
1 changed files with 1 additions and 2 deletions

View File

@ -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):