soc/cores/identifier: append 0 to contents to indicate end of string
[litex.git] / litex / soc / cores / identifier.py
index 5baedca15e02e4f6e246be2652433c035da2afbd..07fc08efd78fafbee49f54ca4b610b2949f88864 100644 (file)
@@ -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):