mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
soc/cores/identifier: remove additionnal first character
This commit is contained in:
parent
77732fca95
commit
c19c4b711b
1 changed files with 1 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue