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 8

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

powered by: WebSVN 2.1.0

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