From 90d384d9e9902f0993e766a4893d010e9399a620 Mon Sep 17 00:00:00 2001
From: Kia <kia@special-circumstanc.es>
Date: Thu, 14 Jan 2021 14:37:02 -0700
Subject: [PATCH] continue work on table

---
 unoptimized_lr/simple_lr_table.py | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)

diff --git a/unoptimized_lr/simple_lr_table.py b/unoptimized_lr/simple_lr_table.py
index a14a227..ed2f1db 100644
--- a/unoptimized_lr/simple_lr_table.py
+++ b/unoptimized_lr/simple_lr_table.py
@@ -40,16 +40,30 @@ class LRTable(Elaboratable):
 
         reduce_rule_signal = Signal(range(number_of_reduce_rules))
         reduce_rule_bits = len(reduce_rule_signal)
-
         table_entry_width = (reduce_rule_bits + 2)
-
         table_width = number_of_terminals * table_entry_width
-
         table_depth = number_of_states
 
 
+        # Interfaces
+
+        # Input data:
+        self.state_in    = Signal(range(number_of_states))
+        self.terminal_in = Signal(range(number_of_terminals))
+
+        # Control
+        self.in_valid      = Signal(1)
+
+        # Output data:
+
+        self.table_entry_out = Signal(table_entry_width)
+
+
+        # Output control
+        self.table_entry_out_validy = Signal(1)
 
 
+        # Memory
         self.mem = Memory(width=table_width, depth=table_depth)
 
 
-- 
GitLab