projects
/
litex.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
soc/cores/identifier: append 0 to contents to indicate end of string
[litex.git]
/
litex
/
soc
/
cores
/
identifier.py
diff --git
a/litex/soc/cores/identifier.py
b/litex/soc/cores/identifier.py
index 5baedca15e02e4f6e246be2652433c035da2afbd..07fc08efd78fafbee49f54ca4b610b2949f88864 100644
(file)
--- a/
litex/soc/cores/identifier.py
+++ b/
litex/soc/cores/identifier.py
@@
-7,7
+7,7
@@
class Identifier(Module):
l = len(contents)
if l > 255:
raise ValueError("Identifier string must be 255 characters or less")
- contents.
insert(0, l
)
+ contents.
append(0
)
self.mem = Memory(8, len(contents), init=contents)
def get_memories(self):