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 16

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

powered by: WebSVN 2.1.0

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