1
0
mirror of https://github.com/antonblanchard/microwatt.git synced 2026-01-28 04:37:45 +00:00

Fix another reset issue in spi_rxtx

counter was X state after reset, initialize it.

Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
This commit is contained in:
Anton Blanchard
2021-01-04 06:04:02 +11:00
committed by Anton Blanchard
parent 39c826aa46
commit a0eb4eec17

View File

@@ -177,6 +177,7 @@ begin
sck_send <= '0';
sck_recv <= '0';
clk_div <= 0;
counter := 0;
elsif counter = clk_div then
counter := 0;