OpenCores
URL https://opencores.org/ocsvn/a-z80/a-z80/trunk

Subversion Repositories a-z80

[/] [a-z80/] [trunk/] [cpu/] [control/] [clk_delay.v] - Blame information for rev 3

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 gdevic
// Copyright (C) 1991-2013 Altera Corporation
2
// Your use of Altera Corporation's design tools, logic functions 
3
// and other software and tools, and its AMPP partner logic 
4
// functions, and any output files from any of the foregoing 
5
// (including device programming or simulation files), and any 
6
// associated documentation or information are expressly subject 
7
// to the terms and conditions of the Altera Program License 
8
// Subscription Agreement, Altera MegaCore Function License 
9
// Agreement, or other applicable license agreement, including, 
10
// without limitation, that your use is for the sole purpose of 
11
// programming logic devices manufactured by Altera and sold by 
12
// Altera or its authorized distributors.  Please refer to the 
13
// applicable agreement for further details.
14
 
15
// PROGRAM              "Quartus II 64-Bit"
16
// VERSION              "Version 13.0.1 Build 232 06/12/2013 Service Pack 1 SJ Web Edition"
17
// CREATED              "Sun Nov 16 23:41:11 2014"
18
 
19
module clk_delay(
20
        clk,
21
        in_intr,
22
        nreset,
23
        T1,
24
        latch_wait,
25
        mwait,
26
        M1,
27
        busrq,
28
        setM1,
29
        hold_clk_iorq,
30
        hold_clk_wait,
31
        iorq_Tw,
32
        busack,
33
        pin_control_oe,
34
        hold_clk_busrq
35
);
36
 
37
 
38
input wire      clk;
39
input wire      in_intr;
40
input wire      nreset;
41
input wire      T1;
42
input wire      latch_wait;
43
input wire      mwait;
44
input wire      M1;
45
input wire      busrq;
46
input wire      setM1;
47
output wire     hold_clk_iorq;
48
output wire     hold_clk_wait;
49
output wire     iorq_Tw;
50
output wire     busack;
51
output wire     pin_control_oe;
52
output wire     hold_clk_busrq;
53
 
54
reg     hold_clk_busrq_ALTERA_SYNTHESIZED;
55
wire    SYNTHESIZED_WIRE_6;
56
wire    SYNTHESIZED_WIRE_1;
57
reg     DFF_inst5;
58
reg     SYNTHESIZED_WIRE_7;
59
reg     SYNTHESIZED_WIRE_8;
60
wire    SYNTHESIZED_WIRE_3;
61
wire    SYNTHESIZED_WIRE_4;
62
wire    SYNTHESIZED_WIRE_5;
63
reg     DFFE_inst;
64
 
65
assign  hold_clk_wait = DFFE_inst;
66
assign  iorq_Tw = DFF_inst5;
67
 
68
 
69
 
70
 
71
always@(posedge SYNTHESIZED_WIRE_6 or negedge nreset)
72
begin
73
if (!nreset)
74
        begin
75
        DFFE_inst <= 0;
76
        end
77
else
78
if (SYNTHESIZED_WIRE_1)
79
        begin
80
        DFFE_inst <= mwait;
81
        end
82
end
83
 
84
 
85
always@(posedge SYNTHESIZED_WIRE_6 or negedge nreset)
86
begin
87
if (!nreset)
88
        begin
89
        SYNTHESIZED_WIRE_8 <= 0;
90
        end
91
else
92
        begin
93
        SYNTHESIZED_WIRE_8 <= busrq;
94
        end
95
end
96
 
97
assign  hold_clk_iorq = DFF_inst5 | SYNTHESIZED_WIRE_7;
98
 
99
assign  busack = SYNTHESIZED_WIRE_8 & hold_clk_busrq_ALTERA_SYNTHESIZED;
100
 
101
assign  pin_control_oe = SYNTHESIZED_WIRE_3 & nreset;
102
 
103
assign  SYNTHESIZED_WIRE_5 = hold_clk_busrq_ALTERA_SYNTHESIZED | setM1;
104
 
105
assign  SYNTHESIZED_WIRE_3 =  ~hold_clk_busrq_ALTERA_SYNTHESIZED;
106
 
107
 
108
always@(posedge clk or negedge nreset)
109
begin
110
if (!nreset)
111
        begin
112
        SYNTHESIZED_WIRE_7 <= 0;
113
        end
114
else
115
        begin
116
        SYNTHESIZED_WIRE_7 <= SYNTHESIZED_WIRE_4;
117
        end
118
end
119
 
120
 
121
always@(posedge clk or negedge nreset)
122
begin
123
if (!nreset)
124
        begin
125
        hold_clk_busrq_ALTERA_SYNTHESIZED <= 0;
126
        end
127
else
128
if (SYNTHESIZED_WIRE_5)
129
        begin
130
        hold_clk_busrq_ALTERA_SYNTHESIZED <= SYNTHESIZED_WIRE_8;
131
        end
132
end
133
 
134
 
135
always@(posedge clk or negedge nreset)
136
begin
137
if (!nreset)
138
        begin
139
        DFF_inst5 <= 0;
140
        end
141
else
142
        begin
143
        DFF_inst5 <= SYNTHESIZED_WIRE_7;
144
        end
145
end
146
 
147
assign  SYNTHESIZED_WIRE_4 = in_intr & M1 & T1;
148
 
149
assign  SYNTHESIZED_WIRE_1 = latch_wait | DFFE_inst;
150
 
151
assign  SYNTHESIZED_WIRE_6 =  ~clk;
152
 
153
assign  hold_clk_busrq = hold_clk_busrq_ALTERA_SYNTHESIZED;
154
 
155
endmodule

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.