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 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 09 09:13:38 2014"
18
 
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
output reg      clrpc;
36
output wire     nreset;
37
 
38
wire    nclk;
39
reg     x1;
40
wire    x2;
41
wire    x3;
42
wire    SYNTHESIZED_WIRE_8;
43
wire    SYNTHESIZED_WIRE_1;
44
wire    SYNTHESIZED_WIRE_9;
45
wire    SYNTHESIZED_WIRE_3;
46
reg     DFF_res;
47
wire    SYNTHESIZED_WIRE_6;
48
 
49
assign  nreset = SYNTHESIZED_WIRE_6;
50
 
51
 
52
 
53
 
54
always@(posedge nclk or negedge SYNTHESIZED_WIRE_8)
55
begin
56
if (!SYNTHESIZED_WIRE_8)
57
        begin
58
        x1 <= 1;
59
        end
60
else
61
        begin
62
        x1 <= ~x1 & reset_in | x1 & ~SYNTHESIZED_WIRE_1;
63
        end
64
end
65
 
66
assign  SYNTHESIZED_WIRE_1 =  ~reset_in;
67
 
68
assign  x2 = x1 & SYNTHESIZED_WIRE_9;
69
 
70
assign  SYNTHESIZED_WIRE_9 = M1 & T2;
71
 
72
assign  x3 = x1 & SYNTHESIZED_WIRE_3;
73
 
74
assign  SYNTHESIZED_WIRE_6 =  ~DFF_res;
75
 
76
assign  SYNTHESIZED_WIRE_3 =  ~SYNTHESIZED_WIRE_9;
77
 
78
assign  nclk =  ~clk;
79
 
80
assign  SYNTHESIZED_WIRE_8 =  ~fpga_reset;
81
 
82
 
83
always@(posedge clk or negedge SYNTHESIZED_WIRE_8)
84
begin
85
if (!SYNTHESIZED_WIRE_8)
86
        begin
87
        DFF_res <= 1;
88
        end
89
else
90
        begin
91
        DFF_res <= x3;
92
        end
93
end
94
 
95
 
96
always@(posedge nclk or negedge SYNTHESIZED_WIRE_6)
97
begin
98
if (!SYNTHESIZED_WIRE_6)
99
        begin
100
        clrpc <= 0;
101
        end
102
else
103
        begin
104
        clrpc <= ~clrpc & x2 | clrpc & ~SYNTHESIZED_WIRE_9;
105
        end
106
end
107
 
108
 
109
endmodule

powered by: WebSVN 2.1.0

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