summaryrefslogtreecommitdiff
path: root/FPGA/pwm/lpm_counter1.vhd
diff options
context:
space:
mode:
Diffstat (limited to 'FPGA/pwm/lpm_counter1.vhd')
-rw-r--r--FPGA/pwm/lpm_counter1.vhd133
1 files changed, 133 insertions, 0 deletions
diff --git a/FPGA/pwm/lpm_counter1.vhd b/FPGA/pwm/lpm_counter1.vhd
new file mode 100644
index 0000000..3d48255
--- /dev/null
+++ b/FPGA/pwm/lpm_counter1.vhd
@@ -0,0 +1,133 @@
1-- megafunction wizard: %LPM_COUNTER%
2-- GENERATION: STANDARD
3-- VERSION: WM1.0
4-- MODULE: LPM_COUNTER
5
6-- ============================================================
7-- File Name: lpm_counter1.vhd
8-- Megafunction Name(s):
9-- LPM_COUNTER
10--
11-- Simulation Library Files(s):
12-- lpm
13-- ============================================================
14-- ************************************************************
15-- THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE!
16--
17-- 13.0.1 Build 232 06/12/2013 SP 1 SJ Web Edition
18-- ************************************************************
19
20
21--Copyright (C) 1991-2013 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
36LIBRARY ieee;
37USE ieee.std_logic_1164.all;
38
39LIBRARY lpm;
40USE lpm.all;
41
42ENTITY lpm_counter1 IS
43 PORT
44 (
45 aclr : IN STD_LOGIC ;
46 clock : IN STD_LOGIC ;
47 q : OUT STD_LOGIC_VECTOR (22 DOWNTO 0)
48 );
49END lpm_counter1;
50
51
52ARCHITECTURE SYN OF lpm_counter1 IS
53
54 SIGNAL sub_wire0 : STD_LOGIC_VECTOR (22 DOWNTO 0);
55
56
57
58 COMPONENT lpm_counter
59 GENERIC (
60 lpm_direction : STRING;
61 lpm_modulus : NATURAL;
62 lpm_port_updown : STRING;
63 lpm_type : STRING;
64 lpm_width : NATURAL
65 );
66 PORT (
67 aclr : IN STD_LOGIC ;
68 clock : IN STD_LOGIC ;
69 q : OUT STD_LOGIC_VECTOR (22 DOWNTO 0)
70 );
71 END COMPONENT;
72
73BEGIN
74 q <= sub_wire0(22 DOWNTO 0);
75
76 LPM_COUNTER_component : LPM_COUNTER
77 GENERIC MAP (
78 lpm_direction => "UP",
79 lpm_modulus => 5000000,
80 lpm_port_updown => "PORT_UNUSED",
81 lpm_type => "LPM_COUNTER",
82 lpm_width => 23
83 )
84 PORT MAP (
85 aclr => aclr,
86 clock => clock,
87 q => sub_wire0
88 );
89
90
91
92END SYN;
93
94-- ============================================================
95-- CNX file retrieval info
96-- ============================================================
97-- Retrieval info: PRIVATE: ACLR NUMERIC "1"
98-- Retrieval info: PRIVATE: ALOAD NUMERIC "0"
99-- Retrieval info: PRIVATE: ASET NUMERIC "0"
100-- Retrieval info: PRIVATE: ASET_ALL1 NUMERIC "1"
101-- Retrieval info: PRIVATE: CLK_EN NUMERIC "0"
102-- Retrieval info: PRIVATE: CNT_EN NUMERIC "0"
103-- Retrieval info: PRIVATE: CarryIn NUMERIC "0"
104-- Retrieval info: PRIVATE: CarryOut NUMERIC "0"
105-- Retrieval info: PRIVATE: Direction NUMERIC "0"
106-- Retrieval info: PRIVATE: INTENDED_DEVICE_FAMILY STRING "Cyclone II"
107-- Retrieval info: PRIVATE: ModulusCounter NUMERIC "1"
108-- Retrieval info: PRIVATE: ModulusValue NUMERIC "5000000"
109-- Retrieval info: PRIVATE: SCLR NUMERIC "0"
110-- Retrieval info: PRIVATE: SLOAD NUMERIC "0"
111-- Retrieval info: PRIVATE: SSET NUMERIC "0"
112-- Retrieval info: PRIVATE: SSET_ALL1 NUMERIC "1"
113-- Retrieval info: PRIVATE: SYNTH_WRAPPER_GEN_POSTFIX STRING "0"
114-- Retrieval info: PRIVATE: nBit NUMERIC "23"
115-- Retrieval info: PRIVATE: new_diagram STRING "1"
116-- Retrieval info: LIBRARY: lpm lpm.lpm_components.all
117-- Retrieval info: CONSTANT: LPM_DIRECTION STRING "UP"
118-- Retrieval info: CONSTANT: LPM_MODULUS NUMERIC "5000000"
119-- Retrieval info: CONSTANT: LPM_PORT_UPDOWN STRING "PORT_UNUSED"
120-- Retrieval info: CONSTANT: LPM_TYPE STRING "LPM_COUNTER"
121-- Retrieval info: CONSTANT: LPM_WIDTH NUMERIC "23"
122-- Retrieval info: USED_PORT: aclr 0 0 0 0 INPUT NODEFVAL "aclr"
123-- Retrieval info: USED_PORT: clock 0 0 0 0 INPUT NODEFVAL "clock"
124-- Retrieval info: USED_PORT: q 0 0 23 0 OUTPUT NODEFVAL "q[22..0]"
125-- Retrieval info: CONNECT: @aclr 0 0 0 0 aclr 0 0 0 0
126-- Retrieval info: CONNECT: @clock 0 0 0 0 clock 0 0 0 0
127-- Retrieval info: CONNECT: q 0 0 23 0 @q 0 0 23 0
128-- Retrieval info: GEN_FILE: TYPE_NORMAL lpm_counter1.vhd TRUE
129-- Retrieval info: GEN_FILE: TYPE_NORMAL lpm_counter1.inc FALSE
130-- Retrieval info: GEN_FILE: TYPE_NORMAL lpm_counter1.cmp TRUE
131-- Retrieval info: GEN_FILE: TYPE_NORMAL lpm_counter1.bsf TRUE
132-- Retrieval info: GEN_FILE: TYPE_NORMAL lpm_counter1_inst.vhd FALSE
133-- Retrieval info: LIB_FILE: lpm