Skip to content

Commit 8a89d51

Browse files
committed
如果採用,此提交將新增按鈕防彈跳電路
修改項目: 模組: 議題57
1 parent 7968991 commit 8a89d51

2 files changed

Lines changed: 540 additions & 0 deletions

File tree

Lines changed: 392 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,392 @@
1+
/*
2+
WARNING: Do NOT edit the input and output ports in this file in a text
3+
editor if you plan to continue editing the block that represents it in
4+
the Block Editor! File corruption is VERY likely to occur.
5+
*/
6+
/*
7+
Copyright (C) 1991-2015 Altera Corporation. All rights reserved.
8+
Your use of Altera Corporation's design tools, logic functions
9+
and other software and tools, and its AMPP partner logic
10+
functions, and any output files from any of the foregoing
11+
(including device programming or simulation files), and any
12+
associated documentation or information are expressly subject
13+
to the terms and conditions of the Altera Program License
14+
Subscription Agreement, the Altera Quartus II License Agreement,
15+
the Altera MegaCore Function License Agreement, or other
16+
applicable license agreement, including, without limitation,
17+
that your use is for the sole purpose of programming logic
18+
devices manufactured by Altera and sold by Altera or its
19+
authorized distributors. Please refer to the applicable
20+
agreement for further details.
21+
*/
22+
(header "graphic" (version "1.4"))
23+
(pin
24+
(input)
25+
(rect 48 168 216 184)
26+
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
27+
(text "SW_in" (rect 5 0 39 11)(font "Arial" ))
28+
(pt 168 8)
29+
(drawing
30+
(line (pt 84 12)(pt 109 12))
31+
(line (pt 84 4)(pt 109 4))
32+
(line (pt 113 8)(pt 168 8))
33+
(line (pt 84 12)(pt 84 4))
34+
(line (pt 109 4)(pt 113 8))
35+
(line (pt 109 12)(pt 113 8))
36+
)
37+
(text "VCC" (rect 128 7 149 17)(font "Arial" (font_size 6)))
38+
)
39+
(pin
40+
(input)
41+
(rect 40 256 208 272)
42+
(text "INPUT" (rect 125 0 154 10)(font "Arial" (font_size 6)))
43+
(text "CLK" (rect 5 0 30 11)(font "Arial" ))
44+
(pt 168 8)
45+
(drawing
46+
(line (pt 84 12)(pt 109 12))
47+
(line (pt 84 4)(pt 109 4))
48+
(line (pt 113 8)(pt 168 8))
49+
(line (pt 84 12)(pt 84 4))
50+
(line (pt 109 4)(pt 113 8))
51+
(line (pt 109 12)(pt 113 8))
52+
)
53+
(text "VCC" (rect 128 7 149 17)(font "Arial" (font_size 6)))
54+
)
55+
(pin
56+
(output)
57+
(rect 776 152 952 168)
58+
(text "OUTPUT" (rect 1 0 41 10)(font "Arial" (font_size 6)))
59+
(text "SW_out" (rect 90 0 131 11)(font "Arial" ))
60+
(pt 0 8)
61+
(drawing
62+
(line (pt 0 8)(pt 52 8))
63+
(line (pt 52 4)(pt 78 4))
64+
(line (pt 52 12)(pt 78 12))
65+
(line (pt 52 12)(pt 52 4))
66+
(line (pt 78 4)(pt 82 8))
67+
(line (pt 82 8)(pt 78 12))
68+
(line (pt 78 12)(pt 82 8))
69+
)
70+
)
71+
(symbol
72+
(rect 256 152 320 232)
73+
(text "DFF" (rect 1 0 21 10)(font "Arial" (font_size 6)))
74+
(text "inst" (rect 3 68 21 79)(font "Arial" ))
75+
(port
76+
(pt 32 80)
77+
(input)
78+
(text "CLRN" (rect 21 59 48 70)(font "Courier New" (bold)))
79+
(text "CLRN" (rect 21 58 48 69)(font "Courier New" (bold)))
80+
(line (pt 32 80)(pt 32 76))
81+
)
82+
(port
83+
(pt 0 40)
84+
(input)
85+
(text "CLK" (rect 3 29 24 40)(font "Courier New" (bold))(invisible))
86+
(text "CLK" (rect 3 29 24 40)(font "Courier New" (bold))(invisible))
87+
(line (pt 0 40)(pt 12 40))
88+
)
89+
(port
90+
(pt 0 24)
91+
(input)
92+
(text "D" (rect 14 20 22 31)(font "Courier New" (bold)))
93+
(text "D" (rect 14 20 22 31)(font "Courier New" (bold)))
94+
(line (pt 0 24)(pt 12 24))
95+
)
96+
(port
97+
(pt 32 0)
98+
(input)
99+
(text "PRN" (rect 24 13 44 24)(font "Courier New" (bold)))
100+
(text "PRN" (rect 24 11 44 22)(font "Courier New" (bold)))
101+
(line (pt 32 4)(pt 32 0))
102+
)
103+
(port
104+
(pt 64 24)
105+
(output)
106+
(text "Q" (rect 45 20 53 31)(font "Courier New" (bold)))
107+
(text "Q" (rect 41 20 49 31)(font "Courier New" (bold)))
108+
(line (pt 52 24)(pt 64 24))
109+
)
110+
(drawing
111+
(line (pt 12 12)(pt 52 12))
112+
(line (pt 12 68)(pt 52 68))
113+
(line (pt 52 68)(pt 52 12))
114+
(line (pt 12 68)(pt 12 12))
115+
(line (pt 19 40)(pt 12 47))
116+
(line (pt 12 32)(pt 20 40))
117+
(circle (rect 28 4 36 12))
118+
(circle (rect 28 68 36 76))
119+
)
120+
)
121+
(symbol
122+
(rect 360 152 424 232)
123+
(text "DFF" (rect 1 0 21 10)(font "Arial" (font_size 6)))
124+
(text "inst1" (rect 3 68 27 79)(font "Arial" ))
125+
(port
126+
(pt 32 80)
127+
(input)
128+
(text "CLRN" (rect 21 59 48 70)(font "Courier New" (bold)))
129+
(text "CLRN" (rect 21 58 48 69)(font "Courier New" (bold)))
130+
(line (pt 32 80)(pt 32 76))
131+
)
132+
(port
133+
(pt 0 40)
134+
(input)
135+
(text "CLK" (rect 3 29 24 40)(font "Courier New" (bold))(invisible))
136+
(text "CLK" (rect 3 29 24 40)(font "Courier New" (bold))(invisible))
137+
(line (pt 0 40)(pt 12 40))
138+
)
139+
(port
140+
(pt 0 24)
141+
(input)
142+
(text "D" (rect 14 20 22 31)(font "Courier New" (bold)))
143+
(text "D" (rect 14 20 22 31)(font "Courier New" (bold)))
144+
(line (pt 0 24)(pt 12 24))
145+
)
146+
(port
147+
(pt 32 0)
148+
(input)
149+
(text "PRN" (rect 24 13 44 24)(font "Courier New" (bold)))
150+
(text "PRN" (rect 24 11 44 22)(font "Courier New" (bold)))
151+
(line (pt 32 4)(pt 32 0))
152+
)
153+
(port
154+
(pt 64 24)
155+
(output)
156+
(text "Q" (rect 45 20 53 31)(font "Courier New" (bold)))
157+
(text "Q" (rect 41 20 49 31)(font "Courier New" (bold)))
158+
(line (pt 52 24)(pt 64 24))
159+
)
160+
(drawing
161+
(line (pt 12 12)(pt 52 12))
162+
(line (pt 12 68)(pt 52 68))
163+
(line (pt 52 68)(pt 52 12))
164+
(line (pt 12 68)(pt 12 12))
165+
(line (pt 19 40)(pt 12 47))
166+
(line (pt 12 32)(pt 20 40))
167+
(circle (rect 28 4 36 12))
168+
(circle (rect 28 68 36 76))
169+
)
170+
)
171+
(symbol
172+
(rect 544 120 608 168)
173+
(text "AND2" (rect 1 0 29 10)(font "Arial" (font_size 6)))
174+
(text "inst2" (rect 3 37 27 48)(font "Arial" ))
175+
(port
176+
(pt 0 16)
177+
(input)
178+
(text "IN1" (rect 2 7 23 18)(font "Courier New" (bold))(invisible))
179+
(text "IN1" (rect 2 7 23 18)(font "Courier New" (bold))(invisible))
180+
(line (pt 0 16)(pt 14 16))
181+
)
182+
(port
183+
(pt 0 32)
184+
(input)
185+
(text "IN2" (rect 2 23 23 34)(font "Courier New" (bold))(invisible))
186+
(text "IN2" (rect 2 23 23 34)(font "Courier New" (bold))(invisible))
187+
(line (pt 0 32)(pt 14 32))
188+
)
189+
(port
190+
(pt 64 24)
191+
(output)
192+
(text "OUT" (rect 48 15 69 26)(font "Courier New" (bold))(invisible))
193+
(text "OUT" (rect 48 15 69 26)(font "Courier New" (bold))(invisible))
194+
(line (pt 42 24)(pt 64 24))
195+
)
196+
(drawing
197+
(line (pt 14 12)(pt 30 12))
198+
(line (pt 14 37)(pt 31 37))
199+
(line (pt 14 12)(pt 14 37))
200+
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37))
201+
)
202+
)
203+
(symbol
204+
(rect 544 184 608 232)
205+
(text "NOR2" (rect 1 0 30 10)(font "Arial" (font_size 6)))
206+
(text "inst3" (rect 3 37 27 48)(font "Arial" ))
207+
(port
208+
(pt 0 32)
209+
(input)
210+
(text "IN2" (rect 2 23 23 34)(font "Courier New" (bold))(invisible))
211+
(text "IN2" (rect 2 23 23 34)(font "Courier New" (bold))(invisible))
212+
(line (pt 0 32)(pt 14 32))
213+
)
214+
(port
215+
(pt 0 16)
216+
(input)
217+
(text "IN1" (rect 2 7 23 18)(font "Courier New" (bold))(invisible))
218+
(text "IN1" (rect 2 7 23 18)(font "Courier New" (bold))(invisible))
219+
(line (pt 0 16)(pt 14 16))
220+
)
221+
(port
222+
(pt 64 24)
223+
(output)
224+
(text "OUT" (rect 48 15 69 26)(font "Courier New" (bold))(invisible))
225+
(text "OUT" (rect 48 15 69 26)(font "Courier New" (bold))(invisible))
226+
(line (pt 54 24)(pt 64 24))
227+
)
228+
(drawing
229+
(line (pt 12 36)(pt 23 36))
230+
(line (pt 12 13)(pt 23 13))
231+
(arc (pt 46 24)(pt 23 13)(rect -6 13 53 72))
232+
(arc (pt 5 29)(pt 5 19)(rect -16 8 17 41))
233+
(arc (pt 23 35)(pt 46 24)(rect -6 -23 53 36))
234+
(circle (rect 46 20 54 28))
235+
)
236+
)
237+
(symbol
238+
(rect 672 136 736 216)
239+
(text "JKFF" (rect 1 0 25 10)(font "Arial" (font_size 6)))
240+
(text "inst4" (rect 3 68 27 79)(font "Arial" ))
241+
(port
242+
(pt 32 0)
243+
(input)
244+
(text "PRN" (rect 24 13 44 24)(font "Courier New" (bold)))
245+
(text "PRN" (rect 24 11 44 22)(font "Courier New" (bold)))
246+
(line (pt 32 4)(pt 32 0))
247+
)
248+
(port
249+
(pt 32 80)
250+
(input)
251+
(text "CLRN" (rect 21 59 48 70)(font "Courier New" (bold)))
252+
(text "CLRN" (rect 21 58 48 69)(font "Courier New" (bold)))
253+
(line (pt 32 80)(pt 32 76))
254+
)
255+
(port
256+
(pt 0 56)
257+
(input)
258+
(text "K" (rect 15 51 23 62)(font "Courier New" (bold)))
259+
(text "K" (rect 15 51 23 62)(font "Courier New" (bold)))
260+
(line (pt 0 56)(pt 12 56))
261+
)
262+
(port
263+
(pt 0 24)
264+
(input)
265+
(text "J" (rect 15 20 22 31)(font "Courier New" (bold)))
266+
(text "J" (rect 15 20 22 31)(font "Courier New" (bold)))
267+
(line (pt 0 24)(pt 12 24))
268+
)
269+
(port
270+
(pt 0 40)
271+
(input)
272+
(text "CLK" (rect 2 31 23 42)(font "Courier New" (bold))(invisible))
273+
(text "CLK" (rect 2 31 23 42)(font "Courier New" (bold))(invisible))
274+
(line (pt 0 40)(pt 12 40))
275+
)
276+
(port
277+
(pt 64 24)
278+
(output)
279+
(text "Q" (rect 45 20 53 31)(font "Courier New" (bold)))
280+
(text "Q" (rect 41 20 49 31)(font "Courier New" (bold)))
281+
(line (pt 52 24)(pt 64 24))
282+
)
283+
(drawing
284+
(line (pt 12 12)(pt 52 12))
285+
(line (pt 12 68)(pt 52 68))
286+
(line (pt 52 68)(pt 52 12))
287+
(line (pt 12 68)(pt 12 12))
288+
(line (pt 12 34)(pt 12 33))
289+
(line (pt 19 40)(pt 12 47))
290+
(line (pt 12 32)(pt 20 40))
291+
(circle (rect 28 4 36 12))
292+
(circle (rect 28 68 36 76))
293+
)
294+
)
295+
(connector
296+
(pt 256 176)
297+
(pt 216 176)
298+
)
299+
(connector
300+
(pt 344 136)
301+
(pt 344 176)
302+
)
303+
(connector
304+
(pt 320 176)
305+
(pt 344 176)
306+
)
307+
(connector
308+
(pt 344 176)
309+
(pt 360 176)
310+
)
311+
(connector
312+
(pt 424 176)
313+
(pt 472 176)
314+
)
315+
(connector
316+
(pt 472 152)
317+
(pt 544 152)
318+
)
319+
(connector
320+
(pt 504 200)
321+
(pt 544 200)
322+
)
323+
(connector
324+
(pt 504 136)
325+
(pt 504 200)
326+
)
327+
(connector
328+
(pt 472 216)
329+
(pt 544 216)
330+
)
331+
(connector
332+
(pt 344 136)
333+
(pt 504 136)
334+
)
335+
(connector
336+
(pt 504 136)
337+
(pt 544 136)
338+
)
339+
(connector
340+
(pt 472 152)
341+
(pt 472 176)
342+
)
343+
(connector
344+
(pt 472 176)
345+
(pt 472 216)
346+
)
347+
(connector
348+
(pt 608 208)
349+
(pt 648 208)
350+
)
351+
(connector
352+
(pt 648 208)
353+
(pt 648 192)
354+
)
355+
(connector
356+
(pt 648 192)
357+
(pt 672 192)
358+
)
359+
(connector
360+
(pt 608 144)
361+
(pt 648 144)
362+
)
363+
(connector
364+
(pt 648 144)
365+
(pt 648 160)
366+
)
367+
(connector
368+
(pt 648 160)
369+
(pt 672 160)
370+
)
371+
(connector
372+
(pt 736 160)
373+
(pt 776 160)
374+
)
375+
(connector
376+
(text "CLK" (rect 205 192 229 203)(font "Arial" ))
377+
(pt 256 192)
378+
(pt 240 192)
379+
)
380+
(connector
381+
(text "CLK" (rect 325 200 349 211)(font "Arial" ))
382+
(pt 360 192)
383+
(pt 336 192)
384+
)
385+
(connector
386+
(text "CLK" (rect 624 176 648 187)(font "Arial" ))
387+
(pt 672 176)
388+
(pt 640 176)
389+
)
390+
(junction (pt 344 176))
391+
(junction (pt 504 136))
392+
(junction (pt 472 176))

0 commit comments

Comments
 (0)