From f6dae13200acc0e0d6a02d26538a9142c17c444d Mon Sep 17 00:00:00 2001
From: Kia <kia@special-circumstanc.es>
Date: Sat, 30 May 2020 16:31:37 -0600
Subject: [PATCH] CHECKPOINT for what needs to be changed for change in
 SERIALIZATION MEMORY SIZE

---
 combinatorial_LR_parser.py | 2 +-
 python_arborist.py         | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/combinatorial_LR_parser.py b/combinatorial_LR_parser.py
index fe32066..198351e 100644
--- a/combinatorial_LR_parser.py
+++ b/combinatorial_LR_parser.py
@@ -554,7 +554,7 @@ class TreeSerializer(Elaboratable):
         self.memory_address_port         = Signal(self.mem_address_width)
         self.memory_write_enable         = Signal(1)
 
-        self.mem = Memory(width=(self.item_width + 1), depth=64)
+        self.mem = Memory(width=(self.item_width + 1), depth=128)
 
     def elaborate(self, platform):
         m = Module()
diff --git a/python_arborist.py b/python_arborist.py
index 4b2080d..54af5fb 100644
--- a/python_arborist.py
+++ b/python_arborist.py
@@ -271,7 +271,7 @@ if __name__ == '__main__':
                 print(z)
 
                 array = []
-                for idx in range(64):
+                for idx in range(128):
                     #print(idx)
                     x = yield nine.tapir[idx]
                     array.append(x)
@@ -280,7 +280,7 @@ if __name__ == '__main__':
                 break
 
 
-    init_data = [OPENPAREN, OPENPAREN, 0XE102, CLOSEPAREN, ADDOP, 0XE103, CLOSEPAREN, ADDOP, 0XE101, ENDOFPARSE]
+    init_data = [OPENPAREN, 0xE101, ADDOP, OPENPAREN, OPENPAREN, 0XE102,CLOSEPAREN, CLOSEPAREN, ADDOP, 0XE103, CLOSEPAREN, MULTOP, 0XE104, ENDOFPARSE]
     
     with m.Switch(nine.input_memory_addr):
         for addr,data in enumerate(init_data):
@@ -315,7 +315,7 @@ def deserializer(serialized_array):
     physical_to_logical = {}
     physical_idx = 0
     logical_idx  = 0
-    while (physical_idx < 53): #len(serialized_array)):
+    while (True): #len(serialized_array)):
         new_element     = serialized_array[physical_idx]
         print("NEW ELEMENT IS:", new_element)
         number_subnodes = serialized_array[physical_idx + 1]
-- 
GitLab