soc/cores/identifier: remove additionnal first character
This commit is contained in:
parent
77732fca95
commit
c19c4b711b
|
@ -5,9 +5,8 @@ class Identifier(Module):
|
||||||
def __init__(self, ident):
|
def __init__(self, ident):
|
||||||
contents = list(ident.encode())
|
contents = list(ident.encode())
|
||||||
l = len(contents)
|
l = len(contents)
|
||||||
if l > 255:
|
if l > 256:
|
||||||
raise ValueError("Identifier string must be 255 characters or less")
|
raise ValueError("Identifier string must be 255 characters or less")
|
||||||
contents.insert(0, l)
|
|
||||||
self.mem = Memory(8, len(contents), init=contents)
|
self.mem = Memory(8, len(contents), init=contents)
|
||||||
|
|
||||||
def get_memories(self):
|
def get_memories(self):
|
||||||
|
|
Loading…
Reference in New Issue