Output ASrf from FSB unit

This commit is contained in:
Zane Kaminski 2024-10-09 07:59:55 -04:00
parent 6419beb4cf
commit bc75f67fb2
2 changed files with 3 additions and 4 deletions

View File

@ -2,7 +2,7 @@ module FSB(
/* MC68HC000 interface */
input FCLK, input nAS, output reg nDTACK, output reg nVPA,
/* AS cycle detection */
output BACT, output reg BACTr,
output reg ASrf, output BACT, output reg BACTr,
/* Ready inputs */
input ROMCS,
input RAMCS, input RAMReady,
@ -12,7 +12,6 @@ module FSB(
input IACS);
/* AS cycle detection */
reg ASrf = 0;
always @(negedge FCLK) begin ASrf <= !nAS; end
assign BACT = !nAS || ASrf; // BACT - bus active
always @(posedge FCLK) BACTr <= BACT;

View File

@ -60,8 +60,7 @@ module WarpSE(
assign nRES = !nRESout ? 1'b0 : 1'bZ;
/* AS cycle detection */
wire BACT;
wire BACTr;
wire ASrf, BACT, BACTr;
/* Refresh request/ack signals */
wire RefReq, RefUrg;
@ -233,6 +232,7 @@ module WarpSE(
.nDTACK(nDTACK_FSB),
.nVPA(nVPA_FSB),
/* FSB cycle detection */
.ASrf(ASrf),
.BACT(BACT),
.BACTr(BACTr),
/* Ready inputs */