From: Anton Blanchard Date: Sun, 3 Jan 2021 19:04:02 +0000 (+1100) Subject: Fix another reset issue in spi_rxtx X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a0eb4eec171171f40aea98b9d6e009258ab70d96;p=microwatt.git Fix another reset issue in spi_rxtx counter was X state after reset, initialize it. Signed-off-by: Anton Blanchard --- 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;