From 93a12f3ca1d740fc3063c10dcbb481ff528d6da0 Mon Sep 17 00:00:00 2001 From: ikari Date: Thu, 10 Nov 2011 23:41:33 +0100 Subject: [PATCH] FPGA: fix occasional erroneous write inhibit --- verilog/sd2snes/main.v | 4 ++-- verilog/sd2snes/sd2snes.xise | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/verilog/sd2snes/main.v b/verilog/sd2snes/main.v index 4199373..7d3fc6b 100644 --- a/verilog/sd2snes/main.v +++ b/verilog/sd2snes/main.v @@ -460,7 +460,7 @@ end reg snes_wr_cycle; always @(posedge CLK2) begin - if(SNES_cycle_start) begin + if(SNES_cycle_start & ~SNES_WR_start) begin STATE <= ST_SNES_RD_ADDR; end else if(SNES_WR_start) begin STATE <= ST_SNES_WR_ADDR; @@ -605,6 +605,6 @@ assign SNES_DATABUS_DIR = !SNES_READ ? 1'b1 : 1'b0; assign IRQ_DIR = 1'b0; assign SNES_IRQ = 1'bZ; -assign p113_out = ROM_WE; +assign p113_out = 1'b0; endmodule diff --git a/verilog/sd2snes/sd2snes.xise b/verilog/sd2snes/sd2snes.xise index 2923d2b..f432d1f 100644 --- a/verilog/sd2snes/sd2snes.xise +++ b/verilog/sd2snes/sd2snes.xise @@ -377,8 +377,8 @@ - - + +