summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2016-11-17 23:55:55 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2016-11-17 23:55:55 (GMT)
commit979b989d0043e88ba0e37bb7bf1e685df0c161d1 (patch)
treea90066d7ec9e5d1487062fa9ba91d35a0e2db80e
parentfd699638e0f472c8e34ea87313c96185b5ceafd5 (diff)
downloadabc80-979b989d0043e88ba0e37bb7bf1e685df0c161d1.zip
abc80-979b989d0043e88ba0e37bb7bf1e685df0c161d1.tar.gz
abc80-979b989d0043e88ba0e37bb7bf1e685df0c161d1.tar.bz2
abc80-979b989d0043e88ba0e37bb7bf1e685df0c161d1.tar.xz
abc80.v: fix pattern replace in assignment of io_sel
io_sel can't be computed from io_sel... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--abc80.v2
1 files changed, 1 insertions, 1 deletions
diff --git a/abc80.v b/abc80.v
index d7c51ff..b449dd1 100644
--- a/abc80.v
+++ b/abc80.v
@@ -1553,7 +1553,7 @@ module abc80 (
// The PIO wants to see IORQ# and M1# directly.
assign pio_sel = ~cpu_a[7] & cpu_a[4];
- assign io_sel = io_sel; // Actual I/O access (not INTAK)
+ assign io_sel = ~cpu_iorq_n & cpu_m1_n; // Actual I/O access (not INTAK)
assign abc_sel = io_sel & ~cpu_a[7] & ~cpu_a[4];
assign intio_sel = io_sel & cpu_a[7]; // Internal ports