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-2013 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 "graphic" (version "1.4"))
|
22 |
|
|
(pin
|
23 |
|
|
(input)
|
24 |
|
|
(rect 24 144 200 160)
|
25 |
|
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
26 |
|
|
(text "we" (rect 9 0 21 12)(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 156 17)(font "Arial" (font_size 6)))
|
37 |
|
|
)
|
38 |
|
|
(pin
|
39 |
|
|
(input)
|
40 |
|
|
(rect 24 32 200 48)
|
41 |
|
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
42 |
|
|
(text "oe" (rect 9 0 20 12)(font "Arial" ))
|
43 |
|
|
(pt 176 8)
|
44 |
|
|
(drawing
|
45 |
|
|
(line (pt 92 12)(pt 117 12))
|
46 |
|
|
(line (pt 92 4)(pt 117 4))
|
47 |
|
|
(line (pt 121 8)(pt 176 8))
|
48 |
|
|
(line (pt 92 12)(pt 92 4))
|
49 |
|
|
(line (pt 117 4)(pt 121 8))
|
50 |
|
|
(line (pt 117 12)(pt 121 8))
|
51 |
|
|
)
|
52 |
|
|
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
|
53 |
|
|
)
|
54 |
|
|
(pin
|
55 |
|
|
(input)
|
56 |
|
|
(rect 24 128 200 144)
|
57 |
|
|
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
|
58 |
|
|
(text "clk" (rect 9 0 23 12)(font "Arial" ))
|
59 |
|
|
(pt 176 8)
|
60 |
|
|
(drawing
|
61 |
|
|
(line (pt 92 12)(pt 117 12))
|
62 |
|
|
(line (pt 92 4)(pt 117 4))
|
63 |
|
|
(line (pt 121 8)(pt 176 8))
|
64 |
|
|
(line (pt 92 12)(pt 92 4))
|
65 |
|
|
(line (pt 117 4)(pt 121 8))
|
66 |
|
|
(line (pt 117 12)(pt 121 8))
|
67 |
|
|
)
|
68 |
|
|
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
|
69 |
|
|
)
|
70 |
|
|
(pin
|
71 |
|
|
(bidir)
|
72 |
|
|
(rect 560 112 736 128)
|
73 |
|
|
(text "BIDIR" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
74 |
|
|
(text "db[7..0]" (rect 90 0 127 12)(font "Arial" ))
|
75 |
|
|
(pt 0 8)
|
76 |
|
|
(drawing
|
77 |
|
|
(line (pt 56 4)(pt 78 4))
|
78 |
|
|
(line (pt 0 8)(pt 52 8))
|
79 |
|
|
(line (pt 56 12)(pt 78 12))
|
80 |
|
|
(line (pt 78 4)(pt 82 8))
|
81 |
|
|
(line (pt 78 12)(pt 82 8))
|
82 |
|
|
(line (pt 56 4)(pt 52 8))
|
83 |
|
|
(line (pt 52 8)(pt 56 12))
|
84 |
|
|
)
|
85 |
|
|
(text "VCC" (rect 4 7 24 17)(font "Arial" (font_size 6)))
|
86 |
|
|
)
|
87 |
|
|
(symbol
|
88 |
|
|
(rect 472 104 520 136)
|
89 |
|
|
(text "TRI" (rect 1 0 16 10)(font "Arial" (font_size 6)))
|
90 |
|
|
(text "inst" (rect 3 21 20 33)(font "Arial" ))
|
91 |
|
|
(port
|
92 |
|
|
(pt 0 16)
|
93 |
|
|
(input)
|
94 |
|
|
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
|
95 |
|
|
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
|
96 |
|
|
(line (pt 0 16)(pt 14 16))
|
97 |
|
|
)
|
98 |
|
|
(port
|
99 |
|
|
(pt 24 0)
|
100 |
|
|
(input)
|
101 |
|
|
(text "OE" (rect 26 0 37 12)(font "Courier New" (bold))(invisible))
|
102 |
|
|
(text "OE" (rect 26 0 37 12)(font "Courier New" (bold))(invisible))
|
103 |
|
|
(line (pt 24 12)(pt 24 0))
|
104 |
|
|
)
|
105 |
|
|
(port
|
106 |
|
|
(pt 48 16)
|
107 |
|
|
(output)
|
108 |
|
|
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
|
109 |
|
|
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
|
110 |
|
|
(line (pt 32 16)(pt 48 16))
|
111 |
|
|
)
|
112 |
|
|
(drawing
|
113 |
|
|
(line (pt 14 25)(pt 14 7))
|
114 |
|
|
(line (pt 14 25)(pt 32 16))
|
115 |
|
|
(line (pt 14 7)(pt 32 16))
|
116 |
|
|
)
|
117 |
|
|
)
|
118 |
|
|
(symbol
|
119 |
|
|
(rect 320 96 384 176)
|
120 |
|
|
(text "DFFE" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
121 |
|
|
(text "reg" (rect 3 68 18 80)(font "Arial" ))
|
122 |
|
|
(port
|
123 |
|
|
(pt 32 0)
|
124 |
|
|
(input)
|
125 |
|
|
(text "PRN" (rect 24 13 41 25)(font "Courier New" (bold)))
|
126 |
|
|
(text "PRN" (rect 24 11 41 23)(font "Courier New" (bold)))
|
127 |
|
|
(line (pt 32 4)(pt 32 0))
|
128 |
|
|
)
|
129 |
|
|
(port
|
130 |
|
|
(pt 32 80)
|
131 |
|
|
(input)
|
132 |
|
|
(text "CLRN" (rect 21 59 44 71)(font "Courier New" (bold)))
|
133 |
|
|
(text "CLRN" (rect 21 58 44 70)(font "Courier New" (bold)))
|
134 |
|
|
(line (pt 32 80)(pt 32 76))
|
135 |
|
|
)
|
136 |
|
|
(port
|
137 |
|
|
(pt 0 24)
|
138 |
|
|
(input)
|
139 |
|
|
(text "D" (rect 14 20 19 32)(font "Courier New" (bold)))
|
140 |
|
|
(text "D" (rect 14 20 19 32)(font "Courier New" (bold)))
|
141 |
|
|
(line (pt 0 24)(pt 12 24))
|
142 |
|
|
)
|
143 |
|
|
(port
|
144 |
|
|
(pt 0 40)
|
145 |
|
|
(input)
|
146 |
|
|
(text "CLK" (rect 2 28 19 40)(font "Courier New" (bold))(invisible))
|
147 |
|
|
(text "CLK" (rect 2 28 19 40)(font "Courier New" (bold))(invisible))
|
148 |
|
|
(line (pt 0 40)(pt 12 40))
|
149 |
|
|
)
|
150 |
|
|
(port
|
151 |
|
|
(pt 0 56)
|
152 |
|
|
(input)
|
153 |
|
|
(text "ENA" (rect 14 50 31 62)(font "Courier New" (bold)))
|
154 |
|
|
(text "ENA" (rect 14 50 31 62)(font "Courier New" (bold)))
|
155 |
|
|
(line (pt 0 56)(pt 12 56))
|
156 |
|
|
)
|
157 |
|
|
(port
|
158 |
|
|
(pt 64 24)
|
159 |
|
|
(output)
|
160 |
|
|
(text "Q" (rect 44 20 49 32)(font "Courier New" (bold)))
|
161 |
|
|
(text "Q" (rect 44 20 49 32)(font "Courier New" (bold)))
|
162 |
|
|
(line (pt 53 24)(pt 64 24))
|
163 |
|
|
)
|
164 |
|
|
(drawing
|
165 |
|
|
(line (pt 12 68)(pt 52 68))
|
166 |
|
|
(line (pt 12 12)(pt 52 12))
|
167 |
|
|
(line (pt 52 68)(pt 52 12))
|
168 |
|
|
(line (pt 12 68)(pt 12 12))
|
169 |
|
|
(line (pt 12 34)(pt 19 41))
|
170 |
|
|
(line (pt 18 41)(pt 12 47))
|
171 |
|
|
(circle (rect 28 4 36 12))
|
172 |
|
|
(circle (rect 28 68 36 76))
|
173 |
|
|
)
|
174 |
|
|
)
|
175 |
|
|
(connector
|
176 |
|
|
(pt 536 120)
|
177 |
|
|
(pt 536 72)
|
178 |
|
|
(bus)
|
179 |
|
|
)
|
180 |
|
|
(connector
|
181 |
|
|
(pt 496 104)
|
182 |
|
|
(pt 496 40)
|
183 |
|
|
)
|
184 |
|
|
(connector
|
185 |
|
|
(pt 200 40)
|
186 |
|
|
(pt 496 40)
|
187 |
|
|
)
|
188 |
|
|
(connector
|
189 |
|
|
(pt 520 120)
|
190 |
|
|
(pt 536 120)
|
191 |
|
|
(bus)
|
192 |
|
|
)
|
193 |
|
|
(connector
|
194 |
|
|
(pt 536 120)
|
195 |
|
|
(pt 560 120)
|
196 |
|
|
(bus)
|
197 |
|
|
)
|
198 |
|
|
(connector
|
199 |
|
|
(pt 248 72)
|
200 |
|
|
(pt 536 72)
|
201 |
|
|
(bus)
|
202 |
|
|
)
|
203 |
|
|
(connector
|
204 |
|
|
(pt 248 72)
|
205 |
|
|
(pt 248 120)
|
206 |
|
|
(bus)
|
207 |
|
|
)
|
208 |
|
|
(connector
|
209 |
|
|
(pt 248 120)
|
210 |
|
|
(pt 320 120)
|
211 |
|
|
(bus)
|
212 |
|
|
)
|
213 |
|
|
(connector
|
214 |
|
|
(pt 200 152)
|
215 |
|
|
(pt 320 152)
|
216 |
|
|
)
|
217 |
|
|
(connector
|
218 |
|
|
(text "latch[7..0]" (rect 402 104 451 116)(font "Arial" ))
|
219 |
|
|
(pt 384 120)
|
220 |
|
|
(pt 472 120)
|
221 |
|
|
(bus)
|
222 |
|
|
)
|
223 |
|
|
(connector
|
224 |
|
|
(pt 200 136)
|
225 |
|
|
(pt 320 136)
|
226 |
|
|
)
|
227 |
|
|
(junction (pt 536 120))
|
228 |
|
|
(text "Repeated 8 times to form a byte register" (rect 472 160 699 174)(font "Arial" (font_size 8)))
|
229 |
|
|
(title_block
|
230 |
|
|
(rect 24 208 281 260)
|
231 |
|
|
(name "title-custom-small")
|
232 |
|
|
(section (rect 0 0 256 17)(text "PROJECT" (rect 2 0 52 12)(font "Arial" ))(text "A-Z80" (rect 56 2 94 17)(font "Arial" (font_size 9)(bold)))(border))
|
233 |
|
|
(section (rect 104 0 256 17)(text "MODULE" (rect 2 1 48 13)(font "Arial" ))(text "reg_latch" (rect 43 2 106 17)(font "Arial" (font_size 9)(bold)))(border))
|
234 |
|
|
(section (rect 0 18 256 34)(text "DESIGNER" (rect 2 0 59 12)(font "Arial" ))(text "Goran Devic" (rect 56 2 135 17)(font "Arial" (font_size 9)))(border))
|
235 |
|
|
(section (rect 0 35 256 51)(text "DATE" (rect 2 0 30 12)(font "Arial" ))(text "May 17, 2014" (rect 56 3 132 17)(font "Arial" (font_size 8)))(border))
|
236 |
|
|
(section (rect 192 35 256 51)(text "REV" (rect 2 1 25 13)(font "Arial" ))(text "1.1" (rect 43 3 60 17)(font "Arial" (font_size 8)))(border))
|
237 |
|
|
(drawing
|
238 |
|
|
)
|
239 |
|
|
)
|