command: remove returns to IDLE state (will be better to add a timeout for a transfer...
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 24 Dec 2014 14:08:06 +0000 (15:08 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 24 Dec 2014 14:08:06 +0000 (15:08 +0100)
lib/sata/command/__init__.py

index 9c7e35cf81c273cf87542c6e378cd471d90eca3e..925ef08f9b801ef7c91e0776a4c575917b55e7c4 100644 (file)
@@ -125,8 +125,6 @@ class SATACommandRX(Module):
                                If(test_type("DMA_ACTIVATE_D2H"),
                                        dma_activate.eq(1),
                                        NextState("WAIT_WRITE_REG_D2H")
-                               ).Else(
-                                       NextState("IDLE") # Generate an error
                                )
                        )
                )
@@ -135,8 +133,6 @@ class SATACommandRX(Module):
                        If(transport.source.stb,
                                If(test_type("REG_D2H"),
                                        NextState("PRESENT_WRITE_RESPONSE")
-                               ).Else(
-                                       NextState("IDLE") # Generate an error
                                )
                        )
                )
@@ -154,8 +150,6 @@ class SATACommandRX(Module):
                                transport.source.ack.eq(0),
                                If(test_type("DATA"),
                                        NextState("PRESENT_READ_DATA")
-                               ).Else(
-                                       NextState("IDLE") # Generate an error
                                )
                        )
                )
@@ -174,8 +168,6 @@ class SATACommandRX(Module):
                        If(transport.source.stb,
                                If(test_type("REG_D2H"),
                                        NextState("PRESENT_READ_RESPONSE")
-                               ).Else(
-                                       NextState("IDLE") # Generate an error
                                )
                        )
                )