226 行
7.1 KiB
Plaintext
226 行
7.1 KiB
Plaintext
/*
|
|
WARNING: Do NOT edit the input and output ports in this file in a text
|
|
editor if you plan to continue editing the block that represents it in
|
|
the Block Editor! File corruption is VERY likely to occur.
|
|
*/
|
|
/*
|
|
Copyright (C) 1991-2009 Altera Corporation
|
|
Your use of Altera Corporation's design tools, logic functions
|
|
and other software and tools, and its AMPP partner logic
|
|
functions, and any output files from any of the foregoing
|
|
(including device programming or simulation files), and any
|
|
associated documentation or information are expressly subject
|
|
to the terms and conditions of the Altera Program License
|
|
Subscription Agreement, Altera MegaCore Function License
|
|
Agreement, or other applicable license agreement, including,
|
|
without limitation, that your use is for the sole purpose of
|
|
programming logic devices manufactured by Altera and sold by
|
|
Altera or its authorized distributors. Please refer to the
|
|
applicable agreement for further details.
|
|
*/
|
|
(header "symbol" (version "1.1"))
|
|
(symbol
|
|
(rect 64 64 416 160)
|
|
(text "ALU_3_in_1" (rect 5 0 74 14)(font "Arial" (font_size 8)))
|
|
(text "inst" (rect 8 80 25 92)(font "Arial" ))
|
|
(port
|
|
(pt 144 96)
|
|
(input)
|
|
(text "A0" (rect 0 -288 16 -274)(font "Arial" (font_size 8)))
|
|
(text "A0" (rect 136 56 150 72)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 144 96)(pt 144 80)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 128 96)
|
|
(input)
|
|
(text "A1" (rect 0 -288 16 -274)(font "Arial" (font_size 8)))
|
|
(text "A1" (rect 120 56 134 72)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 128 96)(pt 128 80)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 112 96)
|
|
(input)
|
|
(text "A2" (rect 0 -288 16 -274)(font "Arial" (font_size 8)))
|
|
(text "A2" (rect 104 56 118 72)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 112 96)(pt 112 80)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 96 96)
|
|
(input)
|
|
(text "A3" (rect 0 -288 16 -274)(font "Arial" (font_size 8)))
|
|
(text "A3" (rect 88 56 102 72)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 96 96)(pt 96 80)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 80 96)
|
|
(input)
|
|
(text "A4" (rect 0 -288 16 -274)(font "Arial" (font_size 8)))
|
|
(text "A4" (rect 72 56 86 72)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 80 96)(pt 80 80)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 64 96)
|
|
(input)
|
|
(text "A5" (rect 0 -288 16 -274)(font "Arial" (font_size 8)))
|
|
(text "A5" (rect 56 56 70 72)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 64 96)(pt 64 80)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 48 96)
|
|
(input)
|
|
(text "A6" (rect 0 -288 16 -274)(font "Arial" (font_size 8)))
|
|
(text "A6" (rect 40 56 54 72)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 48 96)(pt 48 80)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 32 96)
|
|
(input)
|
|
(text "A7" (rect 0 -288 16 -274)(font "Arial" (font_size 8)))
|
|
(text "A7" (rect 24 56 38 72)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 32 96)(pt 32 80)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 272 96)
|
|
(input)
|
|
(text "B0" (rect 0 -288 15 -274)(font "Arial" (font_size 8)))
|
|
(text "B0" (rect 264 57 278 72)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 272 96)(pt 272 80)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 256 96)
|
|
(input)
|
|
(text "B1" (rect 0 -288 15 -274)(font "Arial" (font_size 8)))
|
|
(text "B1" (rect 248 57 262 72)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 256 96)(pt 256 80)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 240 96)
|
|
(input)
|
|
(text "B2" (rect 0 -288 15 -274)(font "Arial" (font_size 8)))
|
|
(text "B2" (rect 232 57 246 72)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 240 96)(pt 240 80)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 224 96)
|
|
(input)
|
|
(text "B3" (rect 0 -288 15 -274)(font "Arial" (font_size 8)))
|
|
(text "B3" (rect 216 57 230 72)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 224 96)(pt 224 80)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 208 96)
|
|
(input)
|
|
(text "B4" (rect 0 -288 15 -274)(font "Arial" (font_size 8)))
|
|
(text "B4" (rect 200 57 214 72)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 208 96)(pt 208 80)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 192 96)
|
|
(input)
|
|
(text "B5" (rect 0 -288 15 -274)(font "Arial" (font_size 8)))
|
|
(text "B5" (rect 184 57 198 72)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 192 96)(pt 192 80)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 176 96)
|
|
(input)
|
|
(text "B6" (rect 0 -288 15 -274)(font "Arial" (font_size 8)))
|
|
(text "B6" (rect 168 57 182 72)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 176 96)(pt 176 80)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 160 96)
|
|
(input)
|
|
(text "B7" (rect 0 -288 15 -274)(font "Arial" (font_size 8)))
|
|
(text "B7" (rect 152 57 166 72)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 160 96)(pt 160 80)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 288 96)
|
|
(input)
|
|
(text "CPR0" (rect 0 -288 30 -274)(font "Arial" (font_size 8)))
|
|
(text "CPR0" (rect 280 42 294 72)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 288 96)(pt 288 80)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 304 96)
|
|
(input)
|
|
(text "CPR1" (rect 0 -288 30 -274)(font "Arial" (font_size 8)))
|
|
(text "CPR1" (rect 296 42 310 72)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 304 96)(pt 304 80)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 320 96)
|
|
(input)
|
|
(text "CPR2" (rect 0 -288 30 -274)(font "Arial" (font_size 8)))
|
|
(text "CPR2" (rect 312 42 326 72)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 320 96)(pt 320 80)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 336 96)
|
|
(input)
|
|
(text "CLR" (rect 0 -288 23 -274)(font "Arial" (font_size 8)))
|
|
(text "CLR" (rect 328 49 342 72)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 336 96)(pt 336 80)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 144 0)
|
|
(output)
|
|
(text "Q0" (rect 488 0 504 14)(font "Arial" (font_size 8)))
|
|
(text "Q0" (rect 136 24 150 40)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 144 0)(pt 144 16)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 128 0)
|
|
(output)
|
|
(text "Q1" (rect 488 0 504 14)(font "Arial" (font_size 8)))
|
|
(text "Q1" (rect 120 24 134 40)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 128 0)(pt 128 16)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 112 0)
|
|
(output)
|
|
(text "Q2" (rect 488 0 504 14)(font "Arial" (font_size 8)))
|
|
(text "Q2" (rect 104 24 118 40)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 112 0)(pt 112 16)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 96 0)
|
|
(output)
|
|
(text "Q3" (rect 488 0 504 14)(font "Arial" (font_size 8)))
|
|
(text "Q3" (rect 88 24 102 40)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 96 0)(pt 96 16)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 80 0)
|
|
(output)
|
|
(text "Q4" (rect 488 0 504 14)(font "Arial" (font_size 8)))
|
|
(text "Q4" (rect 72 24 86 40)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 80 0)(pt 80 16)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 64 0)
|
|
(output)
|
|
(text "Q5" (rect 488 0 504 14)(font "Arial" (font_size 8)))
|
|
(text "Q5" (rect 56 24 70 40)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 64 0)(pt 64 16)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 48 0)
|
|
(output)
|
|
(text "Q6" (rect 488 0 504 14)(font "Arial" (font_size 8)))
|
|
(text "Q6" (rect 40 24 54 40)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 48 0)(pt 48 16)(line_width 1))
|
|
)
|
|
(port
|
|
(pt 32 0)
|
|
(output)
|
|
(text "Q7" (rect 488 0 504 14)(font "Arial" (font_size 8)))
|
|
(text "Q7" (rect 24 24 38 40)(font "Arial" (font_size 8))(vertical))
|
|
(line (pt 32 0)(pt 32 16)(line_width 1))
|
|
)
|
|
(drawing
|
|
(rectangle (rect 16 16 352 80)(line_width 1))
|
|
)
|
|
)
|