From 52a2e1b693d48046c1c0251c83f754e2dd721a45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Str=C3=B6mbergson?= Date: Mon, 8 Jul 2024 14:46:19 +0200 Subject: [PATCH] fpga: Remove cpu_instr from SPI access control condition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Joachim Strömbergson --- hw/application_fpga/core/tk1/rtl/tk1.v | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/hw/application_fpga/core/tk1/rtl/tk1.v b/hw/application_fpga/core/tk1/rtl/tk1.v index 77d05d7..2d5fd68 100644 --- a/hw/application_fpga/core/tk1/rtl/tk1.v +++ b/hw/application_fpga/core/tk1/rtl/tk1.v @@ -385,13 +385,11 @@ module tk1( //---------------------------------------------------------------- always @* begin : spi_access_control - spi_access_ok = 1'h1; -// if ((cpu_valid & cpu_instr) & (cpu_addr[31 : 30] == ROM_PREFIX)) begin -// spi_access_ok = 1'h1; -// end -// else begin -// spi_access_ok = 1'h0; -// end + spi_access_ok = 1'h0; + + if (cpu_valid & (cpu_addr[31 : 30] == ROM_PREFIX)) begin + spi_access_ok = 1'h1; + end end