mirror of
https://github.com/garrettsworkshop/Warp-SE.git
synced 2024-11-22 08:32:09 +00:00
Fixed cycle termination signal synchronization in IOBM
This commit is contained in:
parent
259895d09c
commit
34259dd51c
22
cpld/IOBM.v
22
cpld/IOBM.v
@ -15,22 +15,22 @@ module IOBM(
|
|||||||
|
|
||||||
/* DTACK, BERR, RESET synchronization */
|
/* DTACK, BERR, RESET synchronization */
|
||||||
reg DTACKrr, DTACKrf, VPArr, VPArf, BERRrr, BERRrf, RESrr, RESrf;
|
reg DTACKrr, DTACKrf, VPArr, VPArf, BERRrr, BERRrf, RESrr, RESrf;
|
||||||
always @(posedge C16M) begin
|
always @(negedge C8M) begin
|
||||||
DTACKrr <= ~nDTACK;
|
|
||||||
VPArr <= ~nVPA;
|
|
||||||
BERRrr <= ~nBERR;
|
|
||||||
RESrr <= ~nRES;
|
|
||||||
end
|
|
||||||
always @(negedge C16M) begin
|
|
||||||
DTACKrf <= ~nDTACK;
|
DTACKrf <= ~nDTACK;
|
||||||
VPArf <= ~nVPA;
|
VPArf <= ~nVPA;
|
||||||
BERRrf <= ~nBERR;
|
BERRrf <= ~nBERR;
|
||||||
RESrf <= ~nRES;
|
RESrf <= ~nRES;
|
||||||
end
|
end
|
||||||
wire DTACK = DTACKrr && DTACKrf;
|
always @(posedge C8M) begin
|
||||||
wire BERR = BERRrr && BERRrf;
|
DTACKrr <= ~nDTACK;
|
||||||
wire VPA = VPArr && VPArf;
|
VPArr <= ~nVPA;
|
||||||
wire RES = RESrr && RESrf;
|
BERRrr <= ~nBERR;
|
||||||
|
RESrr <= ~nRES;
|
||||||
|
end
|
||||||
|
wire DTACK = DTACKrf && DTACKrr;
|
||||||
|
wire BERR = BERRrf && BERRrr;
|
||||||
|
wire VPA = VPArf && VPArr;
|
||||||
|
wire RES = RESrf && RESrr;
|
||||||
|
|
||||||
/* E clock synchronization */
|
/* E clock synchronization */
|
||||||
reg Er; always @(negedge C8M) begin Er <= E; end
|
reg Er; always @(negedge C8M) begin Er <= E; end
|
||||||
|
Loading…
Reference in New Issue
Block a user