From 6459fc5c2a87a997557d91e7e4c2538743f2e093 Mon Sep 17 00:00:00 2001 From: Peter McGoron Date: Sun, 23 Oct 2022 14:06:38 -0400 Subject: [PATCH] metastability comment --- spi_master.v | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/spi_master.v b/spi_master.v index 82e5ee8..0f07d8a 100644 --- a/spi_master.v +++ b/spi_master.v @@ -44,7 +44,13 @@ spi_master ); `ifndef SPI_MASTER_NO_READ -/* MISO is almost always an external wire, so buffer it. */ +/* MISO is almost always an external wire, so buffer it. + * This might not be necessary, since the master and slave do not respond + * immediately to changes in the wires, but this is just to be safe. + * It is trivial to change, just do + * wire read_miso = miso; + */ + reg miso_hot = 0; reg read_miso = 0;