From 097b4717bcd8a1d6f887288e0788208dbc18a58d Mon Sep 17 00:00:00 2001
From: Kia <kia@special-circumstanc.es>
Date: Thu, 7 May 2020 22:03:15 -0600
Subject: [PATCH] in-band signalling strikes again!

---
 combinatorial_LR_parser.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/combinatorial_LR_parser.py b/combinatorial_LR_parser.py
index 8decdca..ab38b8a 100644
--- a/combinatorial_LR_parser.py
+++ b/combinatorial_LR_parser.py
@@ -836,7 +836,7 @@ class MasterStateMachine(Elaboratable):
                 with m.If(number_to_pop == 0):
                     m.d.comb += doublestacks.command_in.eq(2)
                     m.d.comb += doublestacks.big_push_port.eq(execution_result)
-                    m.d.comb += doublestacks.side_push_port.eq(serializer.serialized_index)
+                    m.d.comb += doublestacks.side_push_port.eq(serializer.serialized_index | 0x1000)
                     m.d.comb += doublestacks.command_in_strobe.eq(1)
 
 #                    m.d.comb += fsm_ready.eq(1)
@@ -1039,7 +1039,7 @@ class DummyPlug(Elaboratable):
         (1, (lambda stackview: FACTOR + extractor(stackview[0])))
         ]
 
-        msm = MasterStateMachine(item_width=16, indices_width=8, stack_depth=10,
+        msm = MasterStateMachine(item_width=16, indices_width=16, stack_depth=10,
             validitem_ruleset = validitem_ruleset,
             pairwise_priority_ruleset = pairwise_priority_ruleset,
             forceshift_ruleset = forceshift_ruleset,
-- 
GitLab