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

Subversion Repositories a-z80

[/] [a-z80/] [trunk/] [cpu/] [control/] [resets.v] - Blame information for rev 13

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 13 gdevic
// CREATED              "Thu Dec 08 21:08:44 2016"
18 3 gdevic
 
19
module resets(
20
        reset_in,
21
        clk,
22
        M1,
23
        T2,
24
        fpga_reset,
25 13 gdevic
        hold_clk_wait,
26 3 gdevic
        clrpc,
27
        nreset
28
);
29
 
30
 
31
input wire      reset_in;
32
input wire      clk;
33
input wire      M1;
34
input wire      T2;
35
input wire      fpga_reset;
36 13 gdevic
input wire      hold_clk_wait;
37 8 gdevic
output wire     clrpc;
38 3 gdevic
output wire     nreset;
39
 
40 8 gdevic
reg     clrpc_int;
41 3 gdevic
wire    nclk;
42
reg     x1;
43
wire    x2;
44
wire    x3;
45 13 gdevic
wire    SYNTHESIZED_WIRE_11;
46 3 gdevic
wire    SYNTHESIZED_WIRE_1;
47 13 gdevic
reg     SYNTHESIZED_WIRE_12;
48
reg     DFFE_intr_ff3;
49
reg     SYNTHESIZED_WIRE_13;
50
wire    SYNTHESIZED_WIRE_14;
51 3 gdevic
wire    SYNTHESIZED_WIRE_3;
52 13 gdevic
reg     SYNTHESIZED_WIRE_15;
53
wire    SYNTHESIZED_WIRE_16;
54
wire    SYNTHESIZED_WIRE_9;
55 3 gdevic
 
56 13 gdevic
assign  nreset = SYNTHESIZED_WIRE_9;
57 3 gdevic
 
58
 
59
 
60
 
61 13 gdevic
always@(posedge nclk or negedge SYNTHESIZED_WIRE_11)
62 3 gdevic
begin
63 13 gdevic
if (!SYNTHESIZED_WIRE_11)
64 3 gdevic
        begin
65
        x1 <= 1;
66
        end
67
else
68
        begin
69
        x1 <= ~x1 & reset_in | x1 & ~SYNTHESIZED_WIRE_1;
70
        end
71
end
72
 
73 13 gdevic
assign  clrpc = clrpc_int | SYNTHESIZED_WIRE_12 | DFFE_intr_ff3 | SYNTHESIZED_WIRE_13;
74 8 gdevic
 
75 3 gdevic
assign  SYNTHESIZED_WIRE_1 =  ~reset_in;
76
 
77 13 gdevic
assign  x2 = x1 & SYNTHESIZED_WIRE_14;
78 3 gdevic
 
79 13 gdevic
assign  SYNTHESIZED_WIRE_14 = M1 & T2;
80 3 gdevic
 
81
assign  x3 = x1 & SYNTHESIZED_WIRE_3;
82
 
83 13 gdevic
assign  SYNTHESIZED_WIRE_9 =  ~SYNTHESIZED_WIRE_15;
84 3 gdevic
 
85 13 gdevic
assign  SYNTHESIZED_WIRE_16 =  ~hold_clk_wait;
86 3 gdevic
 
87 13 gdevic
assign  SYNTHESIZED_WIRE_3 =  ~SYNTHESIZED_WIRE_14;
88
 
89 3 gdevic
assign  nclk =  ~clk;
90
 
91 13 gdevic
assign  SYNTHESIZED_WIRE_11 =  ~fpga_reset;
92 3 gdevic
 
93
 
94 13 gdevic
always@(posedge nclk)
95 3 gdevic
begin
96 13 gdevic
if (SYNTHESIZED_WIRE_16)
97 3 gdevic
        begin
98 13 gdevic
        DFFE_intr_ff3 <= SYNTHESIZED_WIRE_12;
99 3 gdevic
        end
100
end
101
 
102
 
103 8 gdevic
always@(posedge nclk)
104
begin
105 13 gdevic
if (SYNTHESIZED_WIRE_16)
106 8 gdevic
        begin
107 13 gdevic
        SYNTHESIZED_WIRE_13 <= SYNTHESIZED_WIRE_15;
108 8 gdevic
        end
109
end
110
 
111
 
112
always@(posedge nclk)
113
begin
114 13 gdevic
if (SYNTHESIZED_WIRE_16)
115 8 gdevic
        begin
116 13 gdevic
        SYNTHESIZED_WIRE_12 <= SYNTHESIZED_WIRE_13;
117 8 gdevic
        end
118
end
119
 
120
 
121 13 gdevic
always@(posedge clk or negedge SYNTHESIZED_WIRE_11)
122 8 gdevic
begin
123 13 gdevic
if (!SYNTHESIZED_WIRE_11)
124 8 gdevic
        begin
125 13 gdevic
        SYNTHESIZED_WIRE_15 <= 1;
126 8 gdevic
        end
127 13 gdevic
else
128
        begin
129
        SYNTHESIZED_WIRE_15 <= x3;
130
        end
131 8 gdevic
end
132
 
133
 
134 13 gdevic
always@(posedge nclk or negedge SYNTHESIZED_WIRE_9)
135 3 gdevic
begin
136 13 gdevic
if (!SYNTHESIZED_WIRE_9)
137 3 gdevic
        begin
138 8 gdevic
        clrpc_int <= 0;
139 3 gdevic
        end
140
else
141
        begin
142 13 gdevic
        clrpc_int <= ~clrpc_int & x2 | clrpc_int & ~SYNTHESIZED_WIRE_14;
143 3 gdevic
        end
144
end
145
 
146
 
147
endmodule

powered by: WebSVN 2.1.0

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