1 |
3 |
gdevic |
/*
|
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-2011 Altera Corporation
|
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, Altera MegaCore Function License
|
15 |
|
|
Agreement, or other applicable license agreement, including,
|
16 |
|
|
without limitation, that your use is for the sole purpose of
|
17 |
|
|
programming logic devices manufactured by Altera and sold by
|
18 |
|
|
Altera or its authorized distributors. Please refer to the
|
19 |
|
|
applicable agreement for further details.
|
20 |
|
|
*/
|
21 |
|
|
(header "symbol" (version "1.2"))
|
22 |
|
|
(symbol
|
23 |
|
|
(rect 64 64 312 224)
|
24 |
|
|
(text "inc_dec_2bit" (rect 16 0 87 14)(font "Arial" (font_size 8)))
|
25 |
|
|
(text "inst" (rect 112 72 129 84)(font "Arial" ))
|
26 |
|
|
(port
|
27 |
|
|
(pt 0 24)
|
28 |
|
|
(input)
|
29 |
|
|
(text "carry_borrow_in" (rect 0 0 96 14)(font "Arial" (font_size 8)))
|
30 |
|
|
(text "carry_borrow_in" (rect 21 19 117 33)(font "Arial" (font_size 8)))
|
31 |
|
|
(line (pt 0 24)(pt 16 24))
|
32 |
|
|
)
|
33 |
|
|
(port
|
34 |
|
|
(pt 0 104)
|
35 |
|
|
(input)
|
36 |
|
|
(text "d1_in" (rect 0 0 30 14)(font "Arial" (font_size 8)))
|
37 |
|
|
(text "d1_in" (rect 21 99 51 113)(font "Arial" (font_size 8)))
|
38 |
|
|
(line (pt 0 104)(pt 16 104))
|
39 |
|
|
)
|
40 |
|
|
(port
|
41 |
|
|
(pt 0 40)
|
42 |
|
|
(input)
|
43 |
|
|
(text "d0_in" (rect 0 0 30 14)(font "Arial" (font_size 8)))
|
44 |
|
|
(text "d0_in" (rect 21 35 51 49)(font "Arial" (font_size 8)))
|
45 |
|
|
(line (pt 0 40)(pt 16 40))
|
46 |
|
|
)
|
47 |
|
|
(port
|
48 |
|
|
(pt 0 136)
|
49 |
|
|
(input)
|
50 |
|
|
(text "dec1_in" (rect 0 0 44 14)(font "Arial" (font_size 8)))
|
51 |
|
|
(text "dec1_in" (rect 21 131 65 145)(font "Arial" (font_size 8)))
|
52 |
|
|
(line (pt 0 136)(pt 16 136))
|
53 |
|
|
)
|
54 |
|
|
(port
|
55 |
|
|
(pt 0 72)
|
56 |
|
|
(input)
|
57 |
|
|
(text "dec0_in" (rect 0 0 44 14)(font "Arial" (font_size 8)))
|
58 |
|
|
(text "dec0_in" (rect 21 67 65 81)(font "Arial" (font_size 8)))
|
59 |
|
|
(line (pt 0 72)(pt 16 72))
|
60 |
|
|
)
|
61 |
|
|
(port
|
62 |
|
|
(pt 248 128)
|
63 |
|
|
(output)
|
64 |
|
|
(text "carry_borrow_out" (rect -8 0 97 14)(font "Arial" (font_size 8)))
|
65 |
|
|
(text "carry_borrow_out" (rect 122 123 227 137)(font "Arial" (font_size 8)))
|
66 |
|
|
(line (pt 248 128)(pt 232 128))
|
67 |
|
|
)
|
68 |
|
|
(port
|
69 |
|
|
(pt 248 80)
|
70 |
|
|
(output)
|
71 |
|
|
(text "d1_out" (rect -8 0 30 14)(font "Arial" (font_size 8)))
|
72 |
|
|
(text "d1_out" (rect 189 75 227 89)(font "Arial" (font_size 8)))
|
73 |
|
|
(line (pt 248 80)(pt 232 80))
|
74 |
|
|
)
|
75 |
|
|
(port
|
76 |
|
|
(pt 248 56)
|
77 |
|
|
(output)
|
78 |
|
|
(text "d0_out" (rect -8 0 30 14)(font "Arial" (font_size 8)))
|
79 |
|
|
(text "d0_out" (rect 189 51 227 65)(font "Arial" (font_size 8)))
|
80 |
|
|
(line (pt 248 56)(pt 232 56))
|
81 |
|
|
)
|
82 |
|
|
(drawing
|
83 |
|
|
(rectangle (rect 16 16 240 152))
|
84 |
|
|
)
|
85 |
|
|
(fill (color 253 211 206))
|
86 |
|
|
)
|