OpenCores
URL https://opencores.org/ocsvn/leros/leros/trunk

Subversion Repositories leros

[/] [leros/] [trunk/] [vhdl/] [altera/] [cyc3_pll.vhd] - Blame information for rev 4

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 martin
-- megafunction wizard: %ALTPLL%
2
-- GENERATION: STANDARD
3
-- VERSION: WM1.0
4
-- MODULE: altpll 
5
 
6
-- ============================================================
7
-- File Name: cyc3_pll.vhd
8
-- Megafunction Name(s):
9
--                      altpll
10
--
11
-- Simulation Library Files(s):
12
--                      altera_mf
13
-- ============================================================
14
-- ************************************************************
15
-- THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE!
16
--
17
-- 10.1 Build 153 11/29/2010 SJ Web Edition
18
-- ************************************************************
19
 
20
 
21
--Copyright (C) 1991-2010 Altera Corporation
22
--Your use of Altera Corporation's design tools, logic functions 
23
--and other software and tools, and its AMPP partner logic 
24
--functions, and any output files from any of the foregoing 
25
--(including device programming or simulation files), and any 
26
--associated documentation or information are expressly subject 
27
--to the terms and conditions of the Altera Program License 
28
--Subscription Agreement, Altera MegaCore Function License 
29
--Agreement, or other applicable license agreement, including, 
30
--without limitation, that your use is for the sole purpose of 
31
--programming logic devices manufactured by Altera and sold by 
32
--Altera or its authorized distributors.  Please refer to the 
33
--applicable agreement for further details.
34
 
35
 
36
LIBRARY ieee;
37
USE ieee.std_logic_1164.all;
38
 
39
LIBRARY altera_mf;
40
USE altera_mf.all;
41
 
42
ENTITY pll IS
43
        generic (multiply_by : natural; divide_by : natural);
44
        PORT
45
        (
46
                inclk0          : IN STD_LOGIC  := '0';
47
                c0              : OUT STD_LOGIC
48
        );
49
END pll;
50
 
51
 
52
ARCHITECTURE SYN OF pll IS
53
 
54
        SIGNAL sub_wire0        : STD_LOGIC_VECTOR (4 DOWNTO 0);
55
        SIGNAL sub_wire1        : STD_LOGIC ;
56
        SIGNAL sub_wire2        : STD_LOGIC ;
57
        SIGNAL sub_wire3        : STD_LOGIC_VECTOR (1 DOWNTO 0);
58
        SIGNAL sub_wire4_bv     : BIT_VECTOR (0 DOWNTO 0);
59
        SIGNAL sub_wire4        : STD_LOGIC_VECTOR (0 DOWNTO 0);
60
 
61
 
62
 
63
        COMPONENT altpll
64
        GENERIC (
65
                bandwidth_type          : STRING;
66
                clk0_divide_by          : NATURAL;
67
                clk0_duty_cycle         : NATURAL;
68
                clk0_multiply_by                : NATURAL;
69
                clk0_phase_shift                : STRING;
70
                compensate_clock                : STRING;
71
                inclk0_input_frequency          : NATURAL;
72
                intended_device_family          : STRING;
73
                lpm_hint                : STRING;
74
                lpm_type                : STRING;
75
                operation_mode          : STRING;
76
                pll_type                : STRING;
77
                port_activeclock                : STRING;
78
                port_areset             : STRING;
79
                port_clkbad0            : STRING;
80
                port_clkbad1            : STRING;
81
                port_clkloss            : STRING;
82
                port_clkswitch          : STRING;
83
                port_configupdate               : STRING;
84
                port_fbin               : STRING;
85
                port_inclk0             : STRING;
86
                port_inclk1             : STRING;
87
                port_locked             : STRING;
88
                port_pfdena             : STRING;
89
                port_phasecounterselect         : STRING;
90
                port_phasedone          : STRING;
91
                port_phasestep          : STRING;
92
                port_phaseupdown                : STRING;
93
                port_pllena             : STRING;
94
                port_scanaclr           : STRING;
95
                port_scanclk            : STRING;
96
                port_scanclkena         : STRING;
97
                port_scandata           : STRING;
98
                port_scandataout                : STRING;
99
                port_scandone           : STRING;
100
                port_scanread           : STRING;
101
                port_scanwrite          : STRING;
102
                port_clk0               : STRING;
103
                port_clk1               : STRING;
104
                port_clk2               : STRING;
105
                port_clk3               : STRING;
106
                port_clk4               : STRING;
107
                port_clk5               : STRING;
108
                port_clkena0            : STRING;
109
                port_clkena1            : STRING;
110
                port_clkena2            : STRING;
111
                port_clkena3            : STRING;
112
                port_clkena4            : STRING;
113
                port_clkena5            : STRING;
114
                port_extclk0            : STRING;
115
                port_extclk1            : STRING;
116
                port_extclk2            : STRING;
117
                port_extclk3            : STRING;
118
                width_clock             : NATURAL
119
        );
120
        PORT (
121
                        clk     : OUT STD_LOGIC_VECTOR (4 DOWNTO 0);
122
                        inclk   : IN STD_LOGIC_VECTOR (1 DOWNTO 0)
123
        );
124
        END COMPONENT;
125
 
126
BEGIN
127
        sub_wire4_bv(0 DOWNTO 0) <= "0";
128
        sub_wire4    <= To_stdlogicvector(sub_wire4_bv);
129
        sub_wire1    <= sub_wire0(0);
130
        c0    <= sub_wire1;
131
        sub_wire2    <= inclk0;
132
        sub_wire3    <= sub_wire4(0 DOWNTO 0) & sub_wire2;
133
 
134
        altpll_component : altpll
135
        GENERIC MAP (
136
                bandwidth_type => "AUTO",
137
                clk0_divide_by => divide_by,
138
                clk0_duty_cycle => 50,
139
                clk0_multiply_by => multiply_by,
140
                clk0_phase_shift => "0",
141
                compensate_clock => "CLK0",
142
                inclk0_input_frequency => 50000,
143
                intended_device_family => "Cyclone III",
144
                lpm_hint => "CBX_MODULE_PREFIX=pll",
145
                lpm_type => "altpll",
146
                operation_mode => "NORMAL",
147
                pll_type => "AUTO",
148
                port_activeclock => "PORT_UNUSED",
149
                port_areset => "PORT_UNUSED",
150
                port_clkbad0 => "PORT_UNUSED",
151
                port_clkbad1 => "PORT_UNUSED",
152
                port_clkloss => "PORT_UNUSED",
153
                port_clkswitch => "PORT_UNUSED",
154
                port_configupdate => "PORT_UNUSED",
155
                port_fbin => "PORT_UNUSED",
156
                port_inclk0 => "PORT_USED",
157
                port_inclk1 => "PORT_UNUSED",
158
                port_locked => "PORT_UNUSED",
159
                port_pfdena => "PORT_UNUSED",
160
                port_phasecounterselect => "PORT_UNUSED",
161
                port_phasedone => "PORT_UNUSED",
162
                port_phasestep => "PORT_UNUSED",
163
                port_phaseupdown => "PORT_UNUSED",
164
                port_pllena => "PORT_UNUSED",
165
                port_scanaclr => "PORT_UNUSED",
166
                port_scanclk => "PORT_UNUSED",
167
                port_scanclkena => "PORT_UNUSED",
168
                port_scandata => "PORT_UNUSED",
169
                port_scandataout => "PORT_UNUSED",
170
                port_scandone => "PORT_UNUSED",
171
                port_scanread => "PORT_UNUSED",
172
                port_scanwrite => "PORT_UNUSED",
173
                port_clk0 => "PORT_USED",
174
                port_clk1 => "PORT_UNUSED",
175
                port_clk2 => "PORT_UNUSED",
176
                port_clk3 => "PORT_UNUSED",
177
                port_clk4 => "PORT_UNUSED",
178
                port_clk5 => "PORT_UNUSED",
179
                port_clkena0 => "PORT_UNUSED",
180
                port_clkena1 => "PORT_UNUSED",
181
                port_clkena2 => "PORT_UNUSED",
182
                port_clkena3 => "PORT_UNUSED",
183
                port_clkena4 => "PORT_UNUSED",
184
                port_clkena5 => "PORT_UNUSED",
185
                port_extclk0 => "PORT_UNUSED",
186
                port_extclk1 => "PORT_UNUSED",
187
                port_extclk2 => "PORT_UNUSED",
188
                port_extclk3 => "PORT_UNUSED",
189
                width_clock => 5
190
        )
191
        PORT MAP (
192
                inclk => sub_wire3,
193
                clk => sub_wire0
194
        );
195
 
196
 
197
 
198
END SYN;
199
 

powered by: WebSVN 2.1.0

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