2024-10-11 16:41:31 -04:00
|
|
|
module SET(
|
|
|
|
input CLK,
|
2024-10-11 17:28:08 -04:00
|
|
|
input nPOR,
|
2024-10-11 16:41:31 -04:00
|
|
|
input BACT,
|
|
|
|
input [11:1] A,
|
|
|
|
input SetCSWR,
|
2024-10-14 00:53:32 -04:00
|
|
|
output SlowIACK,
|
|
|
|
output SlowVIA,
|
|
|
|
output SlowIWM,
|
|
|
|
output SlowSCC,
|
|
|
|
output SlowSCSI,
|
|
|
|
output SlowSnd,
|
|
|
|
output SlowClockGate,
|
|
|
|
output [3:0] SlowInterval);
|
2024-10-11 16:41:31 -04:00
|
|
|
|
2024-10-14 00:53:32 -04:00
|
|
|
//reg SetWRr; always @(posedge CLK) SetWRr <= BACT && SetCSWR;
|
|
|
|
|
|
|
|
|
|
|
|
assign SlowInterval[3:0] = 4'hF;
|
|
|
|
assign SlowIACK = 1;
|
|
|
|
assign SlowVIA = 1;
|
|
|
|
assign SlowIWM = 1;
|
|
|
|
assign SlowSCC = 1;
|
|
|
|
assign SlowSCSI = 1;
|
|
|
|
assign SlowSnd = 1;
|
|
|
|
assign SlowClockGate = 0;
|
2024-10-11 16:41:31 -04:00
|
|
|
|
2024-10-14 00:53:32 -04:00
|
|
|
/*always @(posedge CLK) begin
|
2024-10-11 17:28:08 -04:00
|
|
|
if (!nPOR) begin
|
2024-10-14 00:53:32 -04:00
|
|
|
SlowInterval[3:0] <= 4'hF;
|
2024-10-12 02:20:41 -04:00
|
|
|
SlowIACK <= 1;
|
2024-10-12 00:01:05 -04:00
|
|
|
SlowVIA <= 1;
|
|
|
|
SlowIWM <= 1;
|
2024-10-12 02:20:41 -04:00
|
|
|
SlowSCC <= 1;
|
2024-10-14 00:53:32 -04:00
|
|
|
SlowSCSI <= 1;
|
2024-10-12 00:01:05 -04:00
|
|
|
SlowSnd <= 1;
|
2024-10-13 17:53:43 -04:00
|
|
|
SlowClockGate <= 0;
|
2024-10-11 17:28:08 -04:00
|
|
|
end else if (SetWRr) begin
|
2024-10-14 00:53:32 -04:00
|
|
|
SlowInterval[3:0] <= A[11:8];
|
2024-10-11 16:41:31 -04:00
|
|
|
SlowIACK <= A[7];
|
|
|
|
SlowVIA <= A[6];
|
|
|
|
SlowIWM <= A[5];
|
|
|
|
SlowSCC <= A[4];
|
|
|
|
SlowSCSI <= A[3];
|
|
|
|
SlowSnd <= A[2];
|
|
|
|
SlowClockGate <= A[1];
|
|
|
|
end
|
2024-10-14 00:53:32 -04:00
|
|
|
end*/
|
2024-10-11 16:41:31 -04:00
|
|
|
|
|
|
|
endmodule
|