fpga: Remove cpu_instr from SPI access control condition

Signed-off-by: Joachim Strömbergson <joachim@assured.se>
This commit is contained in:
Joachim Strömbergson 2024-07-08 14:46:19 +02:00 committed by Daniel Jobson
parent 78918732a0
commit 924e3af3f1
No known key found for this signature in database
GPG Key ID: 3707A9DBF4BB8F1A

View File

@ -396,13 +396,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