diff options
author | Alexis Hovorka <[email protected]> | 2022-10-28 16:18:24 -0600 |
---|---|---|
committer | Alexis Hovorka <[email protected]> | 2022-10-28 16:18:24 -0600 |
commit | bc31dd00337a1e15a9649f1a002e250876e3519f (patch) | |
tree | 80c3fb12deb4c54b4f54f0a6f252c2a62feae360 | |
parent | 916c766dab5d169b8327aeb03fbcfc76e194f52e (diff) |
-rw-r--r-- | spi_controller.v | 2 |
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; |