mirror of
https://github.com/garrettsworkshop/Warp-SE.git
synced 2024-06-05 15:29:53 +00:00
Update IOBS.v
This commit is contained in:
parent
7b6f6f676f
commit
82fa392411
15
cpld/IOBS.v
15
cpld/IOBS.v
|
@ -27,18 +27,23 @@ module IOBS(
|
||||||
|
|
||||||
/* FIFO second level control */
|
/* FIFO second level control */
|
||||||
reg Load1;
|
reg Load1;
|
||||||
|
reg Clear1;
|
||||||
reg IORW1;
|
reg IORW1;
|
||||||
reg IOL1;
|
reg IOL1;
|
||||||
reg IOU1;
|
reg IOU1;
|
||||||
always @(posedge CLK) begin
|
always @(posedge CLK) begin
|
||||||
if (PS!=0 && BACT && IOCS && ~Once && ~ALE1) begin
|
if (PS!=0 && BACT && IOCS && ~Once && ~ALE1) begin
|
||||||
ALE1 <= 1;
|
|
||||||
IORW1 <= nWE;
|
IORW1 <= nWE;
|
||||||
Load1 <= 1;
|
Load1 <= 1;
|
||||||
end else begin
|
end else Load1 <= 0;
|
||||||
if (PS==3) ALE1 <= 0;
|
end
|
||||||
Load1 <= 0;
|
always @(posedge CLK) begin
|
||||||
end
|
if (PS==3 && ALE1) Clear1 <= 1;
|
||||||
|
else Clear1 <= 0;
|
||||||
|
end
|
||||||
|
always @(posedge CLK) begin
|
||||||
|
if (Load1) ALE1 <= 1;
|
||||||
|
else if (Clear1) ALE1 <= 0;
|
||||||
end
|
end
|
||||||
always @(posedge CLK) begin
|
always @(posedge CLK) begin
|
||||||
if (Load1) begin
|
if (Load1) begin
|
||||||
|
|
Loading…
Reference in New Issue
Block a user