From a0eb4eec171171f40aea98b9d6e009258ab70d96 Mon Sep 17 00:00:00 2001 From: Anton Blanchard Date: Mon, 4 Jan 2021 06:04:02 +1100 Subject: [PATCH] Fix another reset issue in spi_rxtx counter was X state after reset, initialize it. Signed-off-by: Anton Blanchard --- spi_rxtx.vhdl | 1 + 1 file changed, 1 insertion(+) diff --git a/spi_rxtx.vhdl b/spi_rxtx.vhdl index acb5bec..13acdf3 100644 --- a/spi_rxtx.vhdl +++ b/spi_rxtx.vhdl @@ -177,6 +177,7 @@ begin sck_send <= '0'; sck_recv <= '0'; clk_div <= 0; + counter := 0; elsif counter = clk_div then counter := 0;