// Copyright (C) 1991-2013 Altera Corporation
|
// Copyright (C) 1991-2013 Altera Corporation
|
// Your use of Altera Corporation's design tools, logic functions
|
// Your use of Altera Corporation's design tools, logic functions
|
// and other software and tools, and its AMPP partner logic
|
// and other software and tools, and its AMPP partner logic
|
// functions, and any output files from any of the foregoing
|
// functions, and any output files from any of the foregoing
|
// (including device programming or simulation files), and any
|
// (including device programming or simulation files), and any
|
// associated documentation or information are expressly subject
|
// associated documentation or information are expressly subject
|
// to the terms and conditions of the Altera Program License
|
// to the terms and conditions of the Altera Program License
|
// Subscription Agreement, Altera MegaCore Function License
|
// Subscription Agreement, Altera MegaCore Function License
|
// Agreement, or other applicable license agreement, including,
|
// Agreement, or other applicable license agreement, including,
|
// without limitation, that your use is for the sole purpose of
|
// without limitation, that your use is for the sole purpose of
|
// programming logic devices manufactured by Altera and sold by
|
// programming logic devices manufactured by Altera and sold by
|
// Altera or its authorized distributors. Please refer to the
|
// Altera or its authorized distributors. Please refer to the
|
// applicable agreement for further details.
|
// applicable agreement for further details.
|
|
|
// PROGRAM "Quartus II 64-Bit"
|
// PROGRAM "Quartus II 64-Bit"
|
// VERSION "Version 13.0.1 Build 232 06/12/2013 Service Pack 1 SJ Web Edition"
|
// VERSION "Version 13.0.1 Build 232 06/12/2013 Service Pack 1 SJ Web Edition"
|
// CREATED "Sun Nov 16 23:41:11 2014"
|
// CREATED "Sat Dec 10 08:59:31 2016"
|
|
|
module clk_delay(
|
module clk_delay(
|
clk,
|
clk,
|
in_intr,
|
in_intr,
|
nreset,
|
nreset,
|
T1,
|
T1,
|
latch_wait,
|
latch_wait,
|
mwait,
|
mwait,
|
M1,
|
M1,
|
busrq,
|
busrq,
|
setM1,
|
setM1,
|
hold_clk_iorq,
|
hold_clk_iorq,
|
hold_clk_wait,
|
hold_clk_wait,
|
iorq_Tw,
|
iorq_Tw,
|
busack,
|
busack,
|
pin_control_oe,
|
pin_control_oe,
|
hold_clk_busrq
|
hold_clk_busrq,
|
|
nhold_clk_wait
|
);
|
);
|
|
|
|
|
input wire clk;
|
input wire clk;
|
input wire in_intr;
|
input wire in_intr;
|
input wire nreset;
|
input wire nreset;
|
input wire T1;
|
input wire T1;
|
input wire latch_wait;
|
input wire latch_wait;
|
input wire mwait;
|
input wire mwait;
|
input wire M1;
|
input wire M1;
|
input wire busrq;
|
input wire busrq;
|
input wire setM1;
|
input wire setM1;
|
output wire hold_clk_iorq;
|
output wire hold_clk_iorq;
|
output wire hold_clk_wait;
|
output wire hold_clk_wait;
|
output wire iorq_Tw;
|
output wire iorq_Tw;
|
output wire busack;
|
output wire busack;
|
output wire pin_control_oe;
|
output wire pin_control_oe;
|
output wire hold_clk_busrq;
|
output wire hold_clk_busrq;
|
|
output wire nhold_clk_wait;
|
|
|
reg hold_clk_busrq_ALTERA_SYNTHESIZED;
|
reg hold_clk_busrq_ALTERA_SYNTHESIZED;
|
wire SYNTHESIZED_WIRE_6;
|
wire SYNTHESIZED_WIRE_6;
|
wire SYNTHESIZED_WIRE_1;
|
wire SYNTHESIZED_WIRE_1;
|
reg DFF_inst5;
|
reg DFF_inst5;
|
reg SYNTHESIZED_WIRE_7;
|
reg SYNTHESIZED_WIRE_7;
|
reg SYNTHESIZED_WIRE_8;
|
reg SYNTHESIZED_WIRE_8;
|
wire SYNTHESIZED_WIRE_3;
|
wire SYNTHESIZED_WIRE_3;
|
wire SYNTHESIZED_WIRE_4;
|
wire SYNTHESIZED_WIRE_4;
|
wire SYNTHESIZED_WIRE_5;
|
wire SYNTHESIZED_WIRE_5;
|
reg DFFE_inst;
|
reg SYNTHESIZED_WIRE_9;
|
|
|
assign hold_clk_wait = DFFE_inst;
|
assign hold_clk_wait = SYNTHESIZED_WIRE_9;
|
assign iorq_Tw = DFF_inst5;
|
assign iorq_Tw = DFF_inst5;
|
|
|
|
|
|
|
|
|
always@(posedge SYNTHESIZED_WIRE_6 or negedge nreset)
|
always@(posedge SYNTHESIZED_WIRE_6 or negedge nreset)
|
begin
|
begin
|
if (!nreset)
|
if (!nreset)
|
begin
|
begin
|
DFFE_inst <= 0;
|
SYNTHESIZED_WIRE_9 <= 0;
|
end
|
end
|
else
|
else
|
if (SYNTHESIZED_WIRE_1)
|
if (SYNTHESIZED_WIRE_1)
|
begin
|
begin
|
DFFE_inst <= mwait;
|
SYNTHESIZED_WIRE_9 <= mwait;
|
end
|
end
|
end
|
end
|
|
|
|
|
always@(posedge SYNTHESIZED_WIRE_6 or negedge nreset)
|
always@(posedge SYNTHESIZED_WIRE_6 or negedge nreset)
|
begin
|
begin
|
if (!nreset)
|
if (!nreset)
|
begin
|
begin
|
SYNTHESIZED_WIRE_8 <= 0;
|
SYNTHESIZED_WIRE_8 <= 0;
|
end
|
end
|
else
|
else
|
begin
|
begin
|
SYNTHESIZED_WIRE_8 <= busrq;
|
SYNTHESIZED_WIRE_8 <= busrq;
|
end
|
end
|
end
|
end
|
|
|
assign hold_clk_iorq = DFF_inst5 | SYNTHESIZED_WIRE_7;
|
assign hold_clk_iorq = DFF_inst5 | SYNTHESIZED_WIRE_7;
|
|
|
assign busack = SYNTHESIZED_WIRE_8 & hold_clk_busrq_ALTERA_SYNTHESIZED;
|
assign busack = SYNTHESIZED_WIRE_8 & hold_clk_busrq_ALTERA_SYNTHESIZED;
|
|
|
assign pin_control_oe = SYNTHESIZED_WIRE_3 & nreset;
|
assign pin_control_oe = SYNTHESIZED_WIRE_3 & nreset;
|
|
|
assign SYNTHESIZED_WIRE_5 = hold_clk_busrq_ALTERA_SYNTHESIZED | setM1;
|
assign SYNTHESIZED_WIRE_5 = hold_clk_busrq_ALTERA_SYNTHESIZED | setM1;
|
|
|
assign SYNTHESIZED_WIRE_3 = ~hold_clk_busrq_ALTERA_SYNTHESIZED;
|
assign SYNTHESIZED_WIRE_3 = ~hold_clk_busrq_ALTERA_SYNTHESIZED;
|
|
|
|
|
always@(posedge clk or negedge nreset)
|
always@(posedge clk or negedge nreset)
|
begin
|
begin
|
if (!nreset)
|
if (!nreset)
|
begin
|
begin
|
SYNTHESIZED_WIRE_7 <= 0;
|
SYNTHESIZED_WIRE_7 <= 0;
|
end
|
end
|
else
|
else
|
begin
|
begin
|
SYNTHESIZED_WIRE_7 <= SYNTHESIZED_WIRE_4;
|
SYNTHESIZED_WIRE_7 <= SYNTHESIZED_WIRE_4;
|
end
|
end
|
end
|
end
|
|
|
|
|
always@(posedge clk or negedge nreset)
|
always@(posedge clk or negedge nreset)
|
begin
|
begin
|
if (!nreset)
|
if (!nreset)
|
begin
|
begin
|
hold_clk_busrq_ALTERA_SYNTHESIZED <= 0;
|
hold_clk_busrq_ALTERA_SYNTHESIZED <= 0;
|
end
|
end
|
else
|
else
|
if (SYNTHESIZED_WIRE_5)
|
if (SYNTHESIZED_WIRE_5)
|
begin
|
begin
|
hold_clk_busrq_ALTERA_SYNTHESIZED <= SYNTHESIZED_WIRE_8;
|
hold_clk_busrq_ALTERA_SYNTHESIZED <= SYNTHESIZED_WIRE_8;
|
end
|
end
|
end
|
end
|
|
|
|
|
always@(posedge clk or negedge nreset)
|
always@(posedge clk or negedge nreset)
|
begin
|
begin
|
if (!nreset)
|
if (!nreset)
|
begin
|
begin
|
DFF_inst5 <= 0;
|
DFF_inst5 <= 0;
|
end
|
end
|
else
|
else
|
begin
|
begin
|
DFF_inst5 <= SYNTHESIZED_WIRE_7;
|
DFF_inst5 <= SYNTHESIZED_WIRE_7;
|
end
|
end
|
end
|
end
|
|
|
assign SYNTHESIZED_WIRE_4 = in_intr & M1 & T1;
|
assign SYNTHESIZED_WIRE_4 = in_intr & M1 & T1;
|
|
|
assign SYNTHESIZED_WIRE_1 = latch_wait | DFFE_inst;
|
assign SYNTHESIZED_WIRE_1 = latch_wait | SYNTHESIZED_WIRE_9;
|
|
|
|
assign nhold_clk_wait = ~SYNTHESIZED_WIRE_9;
|
|
|
assign SYNTHESIZED_WIRE_6 = ~clk;
|
assign SYNTHESIZED_WIRE_6 = ~clk;
|
|
|
assign hold_clk_busrq = hold_clk_busrq_ALTERA_SYNTHESIZED;
|
assign hold_clk_busrq = hold_clk_busrq_ALTERA_SYNTHESIZED;
|
|
|
endmodule
|
endmodule
|
|
|