Reformat DoutOE equation in IOBM

This commit is contained in:
Zane Kaminski 2024-10-08 07:20:23 -04:00
parent 42657b5167
commit 6e3d76ad80

View File

@ -105,8 +105,8 @@ module IOBM(
always @(negedge C16M) begin nDinLE = IOS==4 || IOS==5; end always @(negedge C16M) begin nDinLE = IOS==4 || IOS==5; end
reg DoutOE = 0; reg DoutOE = 0;
always @(posedge C16M) begin always @(posedge C16M) begin
DoutOE <= (IOS==0 && IOREQr && !IORW && !C8Mr) || DoutOE <= ((IOS==0 && IOREQr && !IORW && !C8Mr) ||
(DoutOE && (IOS==2 || IOS==3 || IOS==4 || IOS==5)); (DoutOE && (IOS==2 || IOS==3 || IOS==4 || IOS==5)));
end end
assign nDoutOE = !(AoutOE && (DoutOE || (IOS0 && !IOREQr))); assign nDoutOE = !(AoutOE && (DoutOE || (IOS0 && !IOREQr)));