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

Subversion Repositories a-z80

[/] [a-z80/] [trunk/] [cpu/] [control/] [interrupts.v] - Blame information for rev 4

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 09 09:11:22 2014"
18
 
19
module interrupts(
20
        ctl_iff1_iff2,
21
        nmi,
22
        setM1,
23
        intr,
24
        ctl_iffx_we,
25
        ctl_iffx_bit,
26
        ctl_im_we,
27
        clk,
28
        ctl_no_ints,
29
        nreset,
30
        db,
31
        iff1,
32
        iff2,
33
        im1,
34
        im2,
35
        in_nmi,
36
        in_intr
37
);
38
 
39
 
40
input wire      ctl_iff1_iff2;
41
input wire      nmi;
42
input wire      setM1;
43
input wire      intr;
44
input wire      ctl_iffx_we;
45
input wire      ctl_iffx_bit;
46
input wire      ctl_im_we;
47
input wire      clk;
48
input wire      ctl_no_ints;
49
input wire      nreset;
50
input wire      [1:0] db;
51
output wire     iff1;
52
output wire     iff2;
53
output reg      im1;
54
output reg      im2;
55
output wire     in_nmi;
56
output wire     in_intr;
57
 
58
reg     iff_ALTERA_SYNTHESIZED1;
59
wire    in_intr_ALTERA_SYNTHESIZED;
60
reg     in_nmi_ALTERA_SYNTHESIZED;
61
reg     int_armed;
62
reg     nmi_armed;
63
wire    test1;
64
wire    SYNTHESIZED_WIRE_0;
65
reg     DFFE_instIFF2;
66
wire    SYNTHESIZED_WIRE_1;
67
wire    SYNTHESIZED_WIRE_2;
68
wire    SYNTHESIZED_WIRE_3;
69
wire    SYNTHESIZED_WIRE_4;
70
wire    SYNTHESIZED_WIRE_5;
71
reg     DFFE_inst44;
72
wire    SYNTHESIZED_WIRE_21;
73
wire    SYNTHESIZED_WIRE_7;
74
wire    SYNTHESIZED_WIRE_8;
75
wire    SYNTHESIZED_WIRE_9;
76
wire    SYNTHESIZED_WIRE_10;
77
wire    SYNTHESIZED_WIRE_11;
78
wire    SYNTHESIZED_WIRE_12;
79
wire    SYNTHESIZED_WIRE_13;
80
wire    SYNTHESIZED_WIRE_14;
81
wire    SYNTHESIZED_WIRE_15;
82
wire    SYNTHESIZED_WIRE_16;
83
wire    SYNTHESIZED_WIRE_17;
84
wire    SYNTHESIZED_WIRE_19;
85
wire    SYNTHESIZED_WIRE_20;
86
 
87
assign  iff2 = DFFE_instIFF2;
88
assign  SYNTHESIZED_WIRE_10 = 1;
89
 
90
 
91
 
92
assign  SYNTHESIZED_WIRE_2 = ctl_iffx_bit & SYNTHESIZED_WIRE_0;
93
 
94
assign  SYNTHESIZED_WIRE_1 = ctl_iff1_iff2 & DFFE_instIFF2;
95
 
96
assign  SYNTHESIZED_WIRE_16 = SYNTHESIZED_WIRE_1 | SYNTHESIZED_WIRE_2;
97
 
98
assign  SYNTHESIZED_WIRE_17 = ctl_iffx_we | ctl_iff1_iff2;
99
 
100
assign  SYNTHESIZED_WIRE_21 = SYNTHESIZED_WIRE_3 & nreset;
101
 
102
assign  SYNTHESIZED_WIRE_0 =  ~ctl_iff1_iff2;
103
 
104
assign  SYNTHESIZED_WIRE_4 =  ~db[0];
105
 
106
assign  SYNTHESIZED_WIRE_5 =  ~in_nmi_ALTERA_SYNTHESIZED;
107
 
108
assign  SYNTHESIZED_WIRE_20 = db[1] & db[0];
109
 
110
assign  SYNTHESIZED_WIRE_19 = db[1] & SYNTHESIZED_WIRE_4;
111
 
112
 
113
assign  in_intr_ALTERA_SYNTHESIZED = SYNTHESIZED_WIRE_5 & DFFE_inst44;
114
 
115
assign  SYNTHESIZED_WIRE_15 = SYNTHESIZED_WIRE_21 & SYNTHESIZED_WIRE_7;
116
 
117
assign  SYNTHESIZED_WIRE_13 = iff_ALTERA_SYNTHESIZED1 & intr;
118
 
119
assign  test1 = setM1 & SYNTHESIZED_WIRE_8;
120
 
121
 
122
always@(posedge nmi or negedge SYNTHESIZED_WIRE_9)
123
begin
124
if (!SYNTHESIZED_WIRE_9)
125
        begin
126
        nmi_armed <= 0;
127
        end
128
else
129
        begin
130
        nmi_armed <= SYNTHESIZED_WIRE_10;
131
        end
132
end
133
 
134
assign  SYNTHESIZED_WIRE_12 = SYNTHESIZED_WIRE_11 & nreset;
135
 
136
 
137
always@(posedge clk or negedge nreset)
138
begin
139
if (!nreset)
140
        begin
141
        in_nmi_ALTERA_SYNTHESIZED <= 0;
142
        end
143
else
144
if (test1)
145
        begin
146
        in_nmi_ALTERA_SYNTHESIZED <= nmi_armed;
147
        end
148
end
149
 
150
 
151
always@(posedge clk or negedge nreset)
152
begin
153
if (!nreset)
154
        begin
155
        DFFE_inst44 <= 0;
156
        end
157
else
158
if (test1)
159
        begin
160
        DFFE_inst44 <= int_armed;
161
        end
162
end
163
 
164
 
165
always@(posedge clk or negedge SYNTHESIZED_WIRE_12)
166
begin
167
if (!SYNTHESIZED_WIRE_12)
168
        begin
169
        int_armed <= 0;
170
        end
171
else
172
        begin
173
        int_armed <= SYNTHESIZED_WIRE_13;
174
        end
175
end
176
 
177
assign  SYNTHESIZED_WIRE_9 = SYNTHESIZED_WIRE_14 & nreset;
178
 
179
assign  SYNTHESIZED_WIRE_8 =  ~ctl_no_ints;
180
 
181
 
182
always@(posedge clk or negedge SYNTHESIZED_WIRE_15)
183
begin
184
if (!SYNTHESIZED_WIRE_15)
185
        begin
186
        iff_ALTERA_SYNTHESIZED1 <= 0;
187
        end
188
else
189
if (SYNTHESIZED_WIRE_17)
190
        begin
191
        iff_ALTERA_SYNTHESIZED1 <= SYNTHESIZED_WIRE_16;
192
        end
193
end
194
 
195
 
196
always@(posedge clk or negedge SYNTHESIZED_WIRE_21)
197
begin
198
if (!SYNTHESIZED_WIRE_21)
199
        begin
200
        DFFE_instIFF2 <= 0;
201
        end
202
else
203
if (ctl_iffx_we)
204
        begin
205
        DFFE_instIFF2 <= ctl_iffx_bit;
206
        end
207
end
208
 
209
 
210
always@(posedge clk or negedge nreset)
211
begin
212
if (!nreset)
213
        begin
214
        im1 <= 0;
215
        end
216
else
217
if (ctl_im_we)
218
        begin
219
        im1 <= SYNTHESIZED_WIRE_19;
220
        end
221
end
222
 
223
 
224
always@(posedge clk or negedge nreset)
225
begin
226
if (!nreset)
227
        begin
228
        im2 <= 0;
229
        end
230
else
231
if (ctl_im_we)
232
        begin
233
        im2 <= SYNTHESIZED_WIRE_20;
234
        end
235
end
236
 
237
assign  SYNTHESIZED_WIRE_3 =  ~in_intr_ALTERA_SYNTHESIZED;
238
 
239
assign  SYNTHESIZED_WIRE_11 =  ~in_intr_ALTERA_SYNTHESIZED;
240
 
241
assign  SYNTHESIZED_WIRE_7 =  ~in_nmi_ALTERA_SYNTHESIZED;
242
 
243
assign  SYNTHESIZED_WIRE_14 =  ~in_nmi_ALTERA_SYNTHESIZED;
244
 
245
assign  iff1 = iff_ALTERA_SYNTHESIZED1;
246
assign  in_nmi = in_nmi_ALTERA_SYNTHESIZED;
247
assign  in_intr = in_intr_ALTERA_SYNTHESIZED;
248
 
249
endmodule

powered by: WebSVN 2.1.0

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