one place for all my love
[hwmod.git] / demo / src / demo_top.bdf
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-2008 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 //#pragma file_not_in_maxplusii_format
22 (header "graphic" (version "1.3"))
23 (pin
24         (input)
25         (rect 416 296 584 312)
26         (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
27         (text "RESET" (rect 5 0 40 12)(font "Arial" ))
28         (pt 168 8)
29         (drawing
30                 (line (pt 92 12)(pt 117 12)(line_width 1))
31                 (line (pt 92 4)(pt 117 4)(line_width 1))
32                 (line (pt 121 8)(pt 168 8)(line_width 1))
33                 (line (pt 92 12)(pt 92 4)(line_width 1))
34                 (line (pt 117 4)(pt 121 8)(line_width 1))
35                 (line (pt 117 12)(pt 121 8)(line_width 1))
36         )
37         (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
38         (annotation_block (location)(rect 368 312 416 328))
39 )
40 (pin
41         (input)
42         (rect 136 56 304 72)
43         (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
44         (text "CLK" (rect 5 0 26 12)(font "Arial" ))
45         (pt 168 8)
46         (drawing
47                 (line (pt 92 12)(pt 117 12)(line_width 1))
48                 (line (pt 92 4)(pt 117 4)(line_width 1))
49                 (line (pt 121 8)(pt 168 8)(line_width 1))
50                 (line (pt 92 12)(pt 92 4)(line_width 1))
51                 (line (pt 117 4)(pt 121 8)(line_width 1))
52                 (line (pt 117 12)(pt 121 8)(line_width 1))
53         )
54         (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
55         (annotation_block (location)(rect 168 176 216 192))
56 )
57 (pin
58         (output)
59         (rect 896 144 1072 160)
60         (text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
61         (text "LEDS[7..0]" (rect 90 0 144 12)(font "Arial" ))
62         (pt 0 8)
63         (drawing
64                 (line (pt 0 8)(pt 52 8)(line_width 1))
65                 (line (pt 52 4)(pt 78 4)(line_width 1))
66                 (line (pt 52 12)(pt 78 12)(line_width 1))
67                 (line (pt 52 12)(pt 52 4)(line_width 1))
68                 (line (pt 78 4)(pt 82 8)(line_width 1))
69                 (line (pt 82 8)(pt 78 12)(line_width 1))
70                 (line (pt 78 12)(pt 82 8)(line_width 1))
71         )
72         (annotation_block (location)(rect 1072 160 1128 272))
73 )
74 (symbol
75         (rect 696 120 856 216)
76         (text "demo" (rect 5 0 32 12)(font "Arial" ))
77         (text "inst" (rect 8 80 25 92)(font "Arial" ))
78         (port
79                 (pt 0 32)
80                 (input)
81                 (text "clk" (rect 0 0 14 12)(font "Arial" ))
82                 (text "clk" (rect 21 27 35 39)(font "Arial" ))
83                 (line (pt 0 32)(pt 16 32)(line_width 1))
84         )
85         (port
86                 (pt 0 48)
87                 (input)
88                 (text "reset" (rect 0 0 24 12)(font "Arial" ))
89                 (text "reset" (rect 21 43 45 55)(font "Arial" ))
90                 (line (pt 0 48)(pt 16 48)(line_width 1))
91         )
92         (port
93                 (pt 160 32)
94                 (output)
95                 (text "leds[7..0]" (rect 0 0 46 12)(font "Arial" ))
96                 (text "leds[7..0]" (rect 69 27 115 39)(font "Arial" ))
97                 (line (pt 160 32)(pt 144 32)(line_width 3))
98         )
99         (drawing
100                 (rectangle (rect 16 16 144 80)(line_width 1))
101         )
102 )
103 (symbol
104         (rect 352 56 592 216)
105         (text "pll" (rect 114 0 129 16)(font "Arial" (font_size 10)))
106         (text "inst1" (rect 8 144 31 156)(font "Arial" ))
107         (port
108                 (pt 0 64)
109                 (input)
110                 (text "inclk0" (rect 0 0 31 14)(font "Arial" (font_size 8)))
111                 (text "inclk0" (rect 4 51 35 65)(font "Arial" (font_size 8)))
112                 (line (pt 0 64)(pt 40 64)(line_width 1))
113         )
114         (port
115                 (pt 240 64)
116                 (output)
117                 (text "c0" (rect 0 0 14 14)(font "Arial" (font_size 8)))
118                 (text "c0" (rect 225 51 239 65)(font "Arial" (font_size 8)))
119                 (line (pt 240 64)(pt 208 64)(line_width 1))
120         )
121         (drawing
122                 (text "Cyclone II" (rect 183 145 234 157)(font "Arial" ))
123                 (text "inclk0 frequency: 25.000 MHz" (rect 50 59 197 71)(font "Arial" ))
124                 (text "Operation Mode: Normal" (rect 50 73 169 85)(font "Arial" ))
125                 (text "Clk " (rect 51 96 71 108)(font "Arial" ))
126                 (text "Ratio" (rect 73 96 98 108)(font "Arial" ))
127                 (text "Ph (dg)" (rect 100 96 135 108)(font "Arial" ))
128                 (text "DC (%)" (rect 135 96 171 108)(font "Arial" ))
129                 (text "c0" (rect 54 111 65 123)(font "Arial" ))
130                 (text "4/1" (rect 78 111 93 123)(font "Arial" ))
131                 (text "0.00" (rect 106 111 127 123)(font "Arial" ))
132                 (text "50.00" (rect 139 111 166 123)(font "Arial" ))
133                 (line (pt 0 0)(pt 241 0)(line_width 1))
134                 (line (pt 241 0)(pt 241 161)(line_width 1))
135                 (line (pt 0 161)(pt 241 161)(line_width 1))
136                 (line (pt 0 0)(pt 0 161)(line_width 1))
137                 (line (pt 48 94)(pt 168 94)(line_width 1))
138                 (line (pt 48 108)(pt 168 108)(line_width 1))
139                 (line (pt 48 123)(pt 168 123)(line_width 1))
140                 (line (pt 48 94)(pt 48 123)(line_width 1))
141                 (line (pt 70 94)(pt 70 123)(line_width 3))
142                 (line (pt 97 94)(pt 97 123)(line_width 3))
143                 (line (pt 132 94)(pt 132 123)(line_width 3))
144                 (line (pt 167 94)(pt 167 123)(line_width 1))
145                 (line (pt 40 48)(pt 208 48)(line_width 1))
146                 (line (pt 208 48)(pt 208 144)(line_width 1))
147                 (line (pt 40 144)(pt 208 144)(line_width 1))
148                 (line (pt 40 48)(pt 40 144)(line_width 1))
149         )
150 )
151 (connector
152         (pt 304 64)
153         (pt 312 64)
154 )
155 (connector
156         (pt 312 64)
157         (pt 312 120)
158 )
159 (connector
160         (pt 312 120)
161         (pt 352 120)
162 )
163 (connector
164         (pt 592 120)
165         (pt 640 120)
166 )
167 (connector
168         (pt 640 120)
169         (pt 640 152)
170 )
171 (connector
172         (pt 640 152)
173         (pt 696 152)
174 )
175 (connector
176         (pt 856 152)
177         (pt 896 152)
178         (bus)
179 )
180 (connector
181         (pt 632 168)
182         (pt 696 168)
183 )
184 (connector
185         (pt 632 304)
186         (pt 584 304)
187 )
188 (connector
189         (pt 632 168)
190         (pt 632 304)
191 )