diff --git a/combinatorial_LR_parser.py b/combinatorial_LR_parser.py
index 4cbf5d826d7d6e104a07b98311ba40abc08d452e..25ea3efbbefe3945a50377f7d0b2d40a2a64c307 100644
--- a/combinatorial_LR_parser.py
+++ b/combinatorial_LR_parser.py
@@ -555,13 +555,14 @@ class TreeSerializer(Elaboratable):
         self.memory_address_port         = Signal(self.mem_address_width)
         self.memory_write_enable         = Signal(1)
 
+
     def elaborate(self, platform):
         m = Module()
 
         start_of_record = Signal(self.mem_address_width) # start of next/yet-unwritten node record, advanced only
                                                          # after each reduce
 
-        mem = Memory(width=(self.item_width + 1), depth=64)
+        self.memory_introspection = mem = Memory(width=(self.item_width + 1), depth=64)
         m.submodules.parse_tree = wport = mem.write_port()