nVOE change

This commit is contained in:
Zane Kaminski 2024-01-27 17:27:22 -05:00
parent 4d22a0dae6
commit 0bc28d5c8a
1 changed files with 6 additions and 6 deletions

View File

@ -50,13 +50,13 @@ module RAM2E(C14M, PHI1, LED,
output [7:0] Dout; assign Dout[7:0] = RD[7:0];
/* Video Data Bus */
reg VOEEN;
always @(posedge C14M) begin
VOEEN <= S==4'h7 ||
S==4'h8 || S==4'h9 || S==4'hA || S==4'hB ||
S==4'hC || S==4'hD || S==4'hE || S==4'hF;
reg VOEENf, VOEENr;
always @(negedge C14M) VOEENf <= S==4'h7;
always @(negedge C14M) begin
VOEENr <= S==4'h7 || S==4'h8 || S==4'h9 ||
S==4'hA || S==4'hB || S==4'hC;
end
output nVOE; assign nVOE = !(!PHI1 && VOEEN);
output nVOE; assign nVOE = !(VOEENf && VOEENr);
output reg [7:0] Vout; // Video data bus
always @(negedge C14M) if (S==4'h6) Vout[7:0] <= RD[7:0];