projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77732fc
)
soc/cores/identifier: remove additionnal first character
author
Florent Kermarrec
<florent@enjoy-digital.fr>
Thu, 8 Jun 2017 12:15:27 +0000
(14:15 +0200)
committer
Florent Kermarrec
<florent@enjoy-digital.fr>
Thu, 8 Jun 2017 12:15:27 +0000
(14:15 +0200)
litex/soc/cores/identifier.py
patch
|
blob
|
history
diff --git
a/litex/soc/cores/identifier.py
b/litex/soc/cores/identifier.py
index 5baedca15e02e4f6e246be2652433c035da2afbd..ca9fec9b257657deef9b75d0997e93b9c059b03c 100644
(file)
--- 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 > 25
5
:
+ if l > 25
6
:
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):