From 18c16062b11ff7cda0f01b37f122b76b6f983a83 Mon Sep 17 00:00:00 2001 From: morgan Date: Fri, 8 Nov 2024 16:25:13 +0800 Subject: [PATCH] sim: clean up --- sim_pipeline.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sim_pipeline.py b/sim_pipeline.py index ba16899..931dd3b 100644 --- a/sim_pipeline.py +++ b/sim_pipeline.py @@ -46,12 +46,12 @@ class Streams_Crossbar(Module): "WAIT_HEADER", NextValue(self.stream_id, mux.source.dchar), If(mux.source.stb, - NextState("STREAM"), + NextState("COPY"), ), ) fsm.act( - "STREAM", + "COPY", Case(self.stream_id, case), If(mux.source.eop, NextState("SWITCH_CONN"), @@ -223,9 +223,9 @@ class Stream_Parser(Module): fsm.act( "GET_PAK_TAG", + self.sink.ack.eq(1), If( self.sink.stb, - self.sink.ack.eq(1), NextValue(self.pak_tag, self.sink.dchar), NextState("GET_PAK_SIZE_0"), ),