IACK now just based on A[23:20] instead of A[23:16]

This commit is contained in:
Zane Kaminski 2024-09-21 21:56:36 -04:00
parent 7911908788
commit fe6b430465

View File

@ -43,7 +43,6 @@ module CS(
((A[15:12]==4'hA) && (A[11:8]==4'h1 || A[11:8]==4'h2 || A[11:8]==4'h3))); ((A[15:12]==4'hA) && (A[11:8]==4'h1 || A[11:8]==4'h2 || A[11:8]==4'h3)));
/* Select signals - IOB domain */ /* Select signals - IOB domain */
assign IACS = A[23:16]==8'hFF; // IACK
assign IOCS = A[23:20]==4'hF || // IACK assign IOCS = A[23:20]==4'hF || // IACK
A[23:20]==4'hE || // VIA A[23:20]==4'hE || // VIA
A[23:20]==4'hD || // IWM A[23:20]==4'hD || // IWM
@ -58,4 +57,5 @@ module CS(
(A[23:20]==4'h4 && Overlay) || // ROM once (A[23:20]==4'h4 && Overlay) || // ROM once
VidRAMCSWR; // Write to video RAM VidRAMCSWR; // Write to video RAM
assign IOPWCS = VidRAMCSWR; assign IOPWCS = VidRAMCSWR;
assign IACS = A[23:20]==4'hF; // IACK
endmodule endmodule