summaryrefslogtreecommitdiff
path: root/FPGA/pwm/pwm.bdf
diff options
context:
space:
mode:
Diffstat (limited to 'FPGA/pwm/pwm.bdf')
-rw-r--r--FPGA/pwm/pwm.bdf502
1 files changed, 502 insertions, 0 deletions
diff --git a/FPGA/pwm/pwm.bdf b/FPGA/pwm/pwm.bdf
new file mode 100644
index 0000000..8e22468
--- /dev/null
+++ b/FPGA/pwm/pwm.bdf
@@ -0,0 +1,502 @@
1/*
2WARNING: Do NOT edit the input and output ports in this file in a text
3editor if you plan to continue editing the block that represents it in
4the Block Editor! File corruption is VERY likely to occur.
5*/
6/*
7Copyright (C) 1991-2013 Altera Corporation
8Your use of Altera Corporation's design tools, logic functions
9and other software and tools, and its AMPP partner logic
10functions, and any output files from any of the foregoing
11(including device programming or simulation files), and any
12associated documentation or information are expressly subject
13to the terms and conditions of the Altera Program License
14Subscription Agreement, Altera MegaCore Function License
15Agreement, or other applicable license agreement, including,
16without limitation, that your use is for the sole purpose of
17programming logic devices manufactured by Altera and sold by
18Altera or its authorized distributors. Please refer to the
19applicable agreement for further details.
20*/
21(header "graphic" (version "1.4"))
22(pin
23 (input)
24 (rect 72 64 248 80)
25 (text "INPUT" (rect 133 0 162 10)(font "Arial" (font_size 6)))
26 (text "clk" (rect 9 0 24 11)(font "Arial" ))
27 (pt 176 8)
28 (drawing
29 (line (pt 92 12)(pt 117 12))
30 (line (pt 92 4)(pt 117 4))
31 (line (pt 121 8)(pt 176 8))
32 (line (pt 92 12)(pt 92 4))
33 (line (pt 117 4)(pt 121 8))
34 (line (pt 117 12)(pt 121 8))
35 )
36 (text "VCC" (rect 136 7 157 17)(font "Arial" (font_size 6)))
37 (annotation_block (location)(rect 16 80 72 96))
38)
39(pin
40 (input)
41 (rect 72 80 248 96)
42 (text "INPUT" (rect 133 0 162 10)(font "Arial" (font_size 6)))
43 (text "resetn" (rect 9 0 40 11)(font "Arial" ))
44 (pt 176 8)
45 (drawing
46 (line (pt 92 12)(pt 117 12))
47 (line (pt 92 4)(pt 117 4))
48 (line (pt 121 8)(pt 176 8))
49 (line (pt 92 12)(pt 92 4))
50 (line (pt 117 4)(pt 121 8))
51 (line (pt 117 12)(pt 121 8))
52 )
53 (text "VCC" (rect 136 7 157 17)(font "Arial" (font_size 6)))
54 (annotation_block (location)(rect 8 96 72 112))
55)
56(pin
57 (input)
58 (rect 72 96 248 112)
59 (text "INPUT" (rect 133 0 162 10)(font "Arial" (font_size 6)))
60 (text "speed[1..0]" (rect 9 0 64 11)(font "Arial" ))
61 (pt 176 8)
62 (drawing
63 (line (pt 92 12)(pt 117 12))
64 (line (pt 92 4)(pt 117 4))
65 (line (pt 121 8)(pt 176 8))
66 (line (pt 92 12)(pt 92 4))
67 (line (pt 117 4)(pt 121 8))
68 (line (pt 117 12)(pt 121 8))
69 )
70 (text "VCC" (rect 136 7 157 17)(font "Arial" (font_size 6)))
71 (annotation_block (location)(rect 8 112 72 128))
72)
73(pin
74 (output)
75 (rect 952 64 1128 80)
76 (text "OUTPUT" (rect 1 0 41 10)(font "Arial" (font_size 6)))
77 (text "fan" (rect 90 0 106 11)(font "Arial" ))
78 (pt 0 8)
79 (drawing
80 (line (pt 0 8)(pt 52 8))
81 (line (pt 52 4)(pt 78 4))
82 (line (pt 52 12)(pt 78 12))
83 (line (pt 52 12)(pt 52 4))
84 (line (pt 78 4)(pt 82 8))
85 (line (pt 82 8)(pt 78 12))
86 (line (pt 78 12)(pt 82 8))
87 )
88 (annotation_block (location)(rect 1128 80 1192 96))
89)
90(pin
91 (output)
92 (rect 952 80 1128 96)
93 (text "OUTPUT" (rect 1 0 41 10)(font "Arial" (font_size 6)))
94 (text "led_fan" (rect 90 0 127 11)(font "Arial" ))
95 (pt 0 8)
96 (drawing
97 (line (pt 0 8)(pt 52 8))
98 (line (pt 52 4)(pt 78 4))
99 (line (pt 52 12)(pt 78 12))
100 (line (pt 52 12)(pt 52 4))
101 (line (pt 78 4)(pt 82 8))
102 (line (pt 82 8)(pt 78 12))
103 (line (pt 78 12)(pt 82 8))
104 )
105 (annotation_block (location)(rect 1128 96 1192 112))
106)
107(symbol
108 (rect 352 160 496 272)
109 (text "lpm_mux0" (rect 43 0 117 16)(font "Arial" (font_size 10)))
110 (text "inst" (rect 8 97 26 108)(font "Arial" ))
111 (port
112 (pt 0 40)
113 (input)
114 (text "data3x[22..0]" (rect 0 0 74 13)(font "Arial" (font_size 8)))
115 (text "data3x[22..0]" (rect 4 27 78 40)(font "Arial" (font_size 8)))
116 (line (pt 0 40)(pt 64 40)(line_width 3))
117 )
118 (port
119 (pt 0 56)
120 (input)
121 (text "data2x[22..0]" (rect 0 0 74 13)(font "Arial" (font_size 8)))
122 (text "data2x[22..0]" (rect 4 43 78 56)(font "Arial" (font_size 8)))
123 (line (pt 0 56)(pt 64 56)(line_width 3))
124 )
125 (port
126 (pt 0 72)
127 (input)
128 (text "data1x[22..0]" (rect 0 0 74 13)(font "Arial" (font_size 8)))
129 (text "data1x[22..0]" (rect 4 59 78 72)(font "Arial" (font_size 8)))
130 (line (pt 0 72)(pt 64 72)(line_width 3))
131 )
132 (port
133 (pt 0 88)
134 (input)
135 (text "data0x[22..0]" (rect 0 0 74 13)(font "Arial" (font_size 8)))
136 (text "data0x[22..0]" (rect 4 75 78 88)(font "Arial" (font_size 8)))
137 (line (pt 0 88)(pt 64 88)(line_width 3))
138 )
139 (port
140 (pt 72 112)
141 (input)
142 (text "sel[1..0]" (rect 0 0 13 46)(font "Arial" (font_size 8))(vertical))
143 (text "sel[1..0]" (rect 66 57 79 103)(font "Arial" (font_size 8))(vertical))
144 (line (pt 72 112)(pt 72 100)(line_width 3))
145 )
146 (port
147 (pt 144 64)
148 (output)
149 (text "result[22..0]" (rect 0 0 67 13)(font "Arial" (font_size 8)))
150 (text "result[22..0]" (rect 85 51 152 64)(font "Arial" (font_size 8)))
151 (line (pt 144 64)(pt 80 64)(line_width 3))
152 )
153 (drawing
154 (line (pt 64 24)(pt 64 104))
155 (line (pt 64 24)(pt 80 32))
156 (line (pt 64 104)(pt 80 96))
157 (line (pt 80 32)(pt 80 96))
158 (line (pt 0 0)(pt 146 0))
159 (line (pt 146 0)(pt 146 114))
160 (line (pt 0 114)(pt 146 114))
161 (line (pt 0 0)(pt 0 114))
162 (line (pt 0 0)(pt 0 0))
163 (line (pt 0 0)(pt 0 0))
164 (line (pt 0 0)(pt 0 0))
165 (line (pt 0 0)(pt 0 0))
166 )
167)
168(symbol
169 (rect 328 544 440 592)
170 (text "lpm_constant0" (rect 14 0 117 16)(font "Arial" (font_size 10)))
171 (text "inst3" (rect 8 33 32 44)(font "Arial" ))
172 (port
173 (pt 112 24)
174 (output)
175 (text "result[22..0]" (rect 0 0 67 13)(font "Arial" (font_size 8)))
176 (text "0" (rect 87 18 95 31)(font "Arial" (font_size 8)))
177 (line (pt 112 24)(pt 96 24)(line_width 3))
178 )
179 (drawing
180 (text "23" (rect 94 27 108 38)(font "Arial" ))
181 (line (pt 106 20)(pt 98 28))
182 (line (pt 16 16)(pt 16 32))
183 (line (pt 16 16)(pt 96 16))
184 (line (pt 16 32)(pt 96 32))
185 (line (pt 96 16)(pt 96 32))
186 (line (pt 0 0)(pt 114 0))
187 (line (pt 114 0)(pt 114 50))
188 (line (pt 0 50)(pt 114 50))
189 (line (pt 0 0)(pt 0 50))
190 (line (pt 0 0)(pt 0 0))
191 (line (pt 0 0)(pt 0 0))
192 (line (pt 0 0)(pt 0 0))
193 (line (pt 0 0)(pt 0 0))
194 )
195)
196(symbol
197 (rect 328 488 440 536)
198 (text "lpm_constant1" (rect 14 0 116 16)(font "Arial" (font_size 10)))
199 (text "inst5" (rect 8 33 32 44)(font "Arial" ))
200 (port
201 (pt 112 24)
202 (output)
203 (text "result[22..0]" (rect 0 0 67 13)(font "Arial" (font_size 8)))
204 (text "2500000" (rect 52 18 102 31)(font "Arial" (font_size 8)))
205 (line (pt 112 24)(pt 96 24)(line_width 3))
206 )
207 (drawing
208 (text "23" (rect 94 27 108 38)(font "Arial" ))
209 (line (pt 106 20)(pt 98 28))
210 (line (pt 16 16)(pt 16 32))
211 (line (pt 16 16)(pt 96 16))
212 (line (pt 16 32)(pt 96 32))
213 (line (pt 96 16)(pt 96 32))
214 (line (pt 0 0)(pt 114 0))
215 (line (pt 114 0)(pt 114 50))
216 (line (pt 0 50)(pt 114 50))
217 (line (pt 0 0)(pt 0 50))
218 (line (pt 0 0)(pt 0 0))
219 (line (pt 0 0)(pt 0 0))
220 (line (pt 0 0)(pt 0 0))
221 (line (pt 0 0)(pt 0 0))
222 )
223)
224(symbol
225 (rect 328 432 440 480)
226 (text "lpm_constant2" (rect 14 0 117 16)(font "Arial" (font_size 10)))
227 (text "inst6" (rect 8 33 32 44)(font "Arial" ))
228 (port
229 (pt 112 24)
230 (output)
231 (text "result[22..0]" (rect 0 0 67 13)(font "Arial" (font_size 8)))
232 (text "3750000" (rect 52 18 102 31)(font "Arial" (font_size 8)))
233 (line (pt 112 24)(pt 96 24)(line_width 3))
234 )
235 (drawing
236 (text "23" (rect 94 27 108 38)(font "Arial" ))
237 (line (pt 106 20)(pt 9