summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Hovorka <[email protected]>2022-10-28 16:18:24 -0600
committerAlexis Hovorka <[email protected]>2022-10-28 16:18:24 -0600
commitbc31dd00337a1e15a9649f1a002e250876e3519f (patch)
tree80c3fb12deb4c54b4f54f0a6f252c2a62feae360
parent916c766dab5d169b8327aeb03fbcfc76e194f52e (diff)
[fix] Small optimizationHEADmain
-rw-r--r--spi_controller.v2
1 files changed, 1 insertions, 1 deletions
diff --git a/spi_controller.v b/spi_controller.v
index 33ad80a..09ddb86 100644
--- a/spi_controller.v
+++ b/spi_controller.v
@@ -47,7 +47,7 @@ module spi_controller
o_data <= 8'h00;
state <= 4'h0;
- end else if (state) begin
+ end else if (busy) begin
state <= state - 4'h1;
if (~state[0]) shift_o <= shifted_o;
if ( state[0]) shift_i <= shifted_i;