add test_ALU

This commit is contained in:
juzeon 2022-05-17 16:23:11 +08:00
父節點 a03243f73f
當前提交 c2af9395e3
共有 20 個檔案被更改,包括 15596 行新增0 行删除

886
test_ALU/38_decoder.bdf Normal file
查看文件

@ -0,0 +1,886 @@
/*
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.
*/
//#pragma file_not_in_maxplusii_format
(header "graphic" (version "1.3"))
(pin
(input)
(rect 32 328 200 344)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "I0" (rect 5 0 14 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 32 240 200 256)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "I1" (rect 5 0 14 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 32 144 200 160)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "I2" (rect 5 0 14 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(output)
(rect 664 40 840 56)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "Y7" (rect 90 0 104 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
)
(pin
(output)
(rect 664 376 840 392)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "Y0" (rect 90 0 104 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
)
(pin
(output)
(rect 664 328 840 344)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "Y1" (rect 90 0 104 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
)
(pin
(output)
(rect 664 280 840 296)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "Y2" (rect 90 0 104 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
)
(pin
(output)
(rect 664 232 840 248)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "Y3" (rect 90 0 104 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
)
(pin
(output)
(rect 664 184 840 200)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "Y4" (rect 90 0 104 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
)
(pin
(output)
(rect 664 136 840 152)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "Y5" (rect 90 0 104 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
)
(pin
(output)
(rect 664 88 840 104)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "Y6" (rect 90 0 104 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
)
(symbol
(rect 296 136 344 168)
(text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6)))
(text "inst" (rect 3 21 20 33)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 13 16)(line_width 1))
)
(port
(pt 48 16)
(output)
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
(line (pt 39 16)(pt 48 16)(line_width 1))
)
(drawing
(line (pt 13 25)(pt 13 7)(line_width 1))
(line (pt 13 7)(pt 31 16)(line_width 1))
(line (pt 13 25)(pt 31 16)(line_width 1))
(circle (rect 31 12 39 20)(line_width 1))
)
)
(symbol
(rect 296 232 344 264)
(text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6)))
(text "inst1" (rect 3 21 26 33)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 13 16)(line_width 1))
)
(port
(pt 48 16)
(output)
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
(line (pt 39 16)(pt 48 16)(line_width 1))
)
(drawing
(line (pt 13 25)(pt 13 7)(line_width 1))
(line (pt 13 7)(pt 31 16)(line_width 1))
(line (pt 13 25)(pt 31 16)(line_width 1))
(circle (rect 31 12 39 20)(line_width 1))
)
)
(symbol
(rect 296 320 344 352)
(text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6)))
(text "inst2" (rect 3 21 26 33)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 13 16)(line_width 1))
)
(port
(pt 48 16)
(output)
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
(line (pt 39 16)(pt 48 16)(line_width 1))
)
(drawing
(line (pt 13 25)(pt 13 7)(line_width 1))
(line (pt 13 7)(pt 31 16)(line_width 1))
(line (pt 13 25)(pt 31 16)(line_width 1))
(circle (rect 31 12 39 20)(line_width 1))
)
)
(symbol
(rect 544 24 608 72)
(text "AND3" (rect 1 0 25 10)(font "Arial" (font_size 6)))
(text "inst3" (rect 3 37 26 49)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 16 16)(line_width 1))
)
(port
(pt 0 24)
(input)
(text "IN2" (rect 2 15 19 27)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 2 15 19 27)(font "Courier New" (bold))(invisible))
(line (pt 0 24)(pt 16 24)(line_width 1))
)
(port
(pt 0 32)
(input)
(text "IN3" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(text "IN3" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 64 24)
(output)
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(line (pt 43 24)(pt 64 24)(line_width 1))
)
(drawing
(line (pt 16 12)(pt 31 12)(line_width 1))
(line (pt 16 37)(pt 31 37)(line_width 1))
(line (pt 16 12)(pt 16 37)(line_width 1))
(arc (pt 31 36)(pt 31 12)(rect 19 12 44 37)(line_width 1))
)
)
(symbol
(rect 544 72 608 120)
(text "AND3" (rect 1 0 25 10)(font "Arial" (font_size 6)))
(text "inst4" (rect 3 37 26 49)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 16 16)(line_width 1))
)
(port
(pt 0 24)
(input)
(text "IN2" (rect 2 15 19 27)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 2 15 19 27)(font "Courier New" (bold))(invisible))
(line (pt 0 24)(pt 16 24)(line_width 1))
)
(port
(pt 0 32)
(input)
(text "IN3" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(text "IN3" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 64 24)
(output)
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(line (pt 43 24)(pt 64 24)(line_width 1))
)
(drawing
(line (pt 16 12)(pt 31 12)(line_width 1))
(line (pt 16 37)(pt 31 37)(line_width 1))
(line (pt 16 12)(pt 16 37)(line_width 1))
(arc (pt 31 36)(pt 31 12)(rect 19 12 44 37)(line_width 1))
)
)
(symbol
(rect 544 120 608 168)
(text "AND3" (rect 1 0 25 10)(font "Arial" (font_size 6)))
(text "inst5" (rect 3 37 26 49)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 16 16)(line_width 1))
)
(port
(pt 0 24)
(input)
(text "IN2" (rect 2 15 19 27)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 2 15 19 27)(font "Courier New" (bold))(invisible))
(line (pt 0 24)(pt 16 24)(line_width 1))
)
(port
(pt 0 32)
(input)
(text "IN3" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(text "IN3" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 64 24)
(output)
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(line (pt 43 24)(pt 64 24)(line_width 1))
)
(drawing
(line (pt 16 12)(pt 31 12)(line_width 1))
(line (pt 16 37)(pt 31 37)(line_width 1))
(line (pt 16 12)(pt 16 37)(line_width 1))
(arc (pt 31 36)(pt 31 12)(rect 19 12 44 37)(line_width 1))
)
)
(symbol
(rect 544 168 608 216)
(text "AND3" (rect 1 0 25 10)(font "Arial" (font_size 6)))
(text "inst6" (rect 3 37 26 49)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 16 16)(line_width 1))
)
(port
(pt 0 24)
(input)
(text "IN2" (rect 2 15 19 27)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 2 15 19 27)(font "Courier New" (bold))(invisible))
(line (pt 0 24)(pt 16 24)(line_width 1))
)
(port
(pt 0 32)
(input)
(text "IN3" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(text "IN3" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 64 24)
(output)
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(line (pt 43 24)(pt 64 24)(line_width 1))
)
(drawing
(line (pt 16 12)(pt 31 12)(line_width 1))
(line (pt 16 37)(pt 31 37)(line_width 1))
(line (pt 16 12)(pt 16 37)(line_width 1))
(arc (pt 31 36)(pt 31 12)(rect 19 12 44 37)(line_width 1))
)
)
(symbol
(rect 544 216 608 264)
(text "AND3" (rect 1 0 25 10)(font "Arial" (font_size 6)))
(text "inst7" (rect 3 37 26 49)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 16 16)(line_width 1))
)
(port
(pt 0 24)
(input)
(text "IN2" (rect 2 15 19 27)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 2 15 19 27)(font "Courier New" (bold))(invisible))
(line (pt 0 24)(pt 16 24)(line_width 1))
)
(port
(pt 0 32)
(input)
(text "IN3" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(text "IN3" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 64 24)
(output)
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(line (pt 43 24)(pt 64 24)(line_width 1))
)
(drawing
(line (pt 16 12)(pt 31 12)(line_width 1))
(line (pt 16 37)(pt 31 37)(line_width 1))
(line (pt 16 12)(pt 16 37)(line_width 1))
(arc (pt 31 36)(pt 31 12)(rect 19 12 44 37)(line_width 1))
)
)
(symbol
(rect 544 264 608 312)
(text "AND3" (rect 1 0 25 10)(font "Arial" (font_size 6)))
(text "inst8" (rect 3 37 26 49)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 16 16)(line_width 1))
)
(port
(pt 0 24)
(input)
(text "IN2" (rect 2 15 19 27)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 2 15 19 27)(font "Courier New" (bold))(invisible))
(line (pt 0 24)(pt 16 24)(line_width 1))
)
(port
(pt 0 32)
(input)
(text "IN3" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(text "IN3" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 64 24)
(output)
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(line (pt 43 24)(pt 64 24)(line_width 1))
)
(drawing
(line (pt 16 12)(pt 31 12)(line_width 1))
(line (pt 16 37)(pt 31 37)(line_width 1))
(line (pt 16 12)(pt 16 37)(line_width 1))
(arc (pt 31 36)(pt 31 12)(rect 19 12 44 37)(line_width 1))
)
)
(symbol
(rect 544 312 608 360)
(text "AND3" (rect 1 0 25 10)(font "Arial" (font_size 6)))
(text "inst9" (rect 3 37 26 49)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 16 16)(line_width 1))
)
(port
(pt 0 24)
(input)
(text "IN2" (rect 2 15 19 27)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 2 15 19 27)(font "Courier New" (bold))(invisible))
(line (pt 0 24)(pt 16 24)(line_width 1))
)
(port
(pt 0 32)
(input)
(text "IN3" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(text "IN3" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 64 24)
(output)
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(line (pt 43 24)(pt 64 24)(line_width 1))
)
(drawing
(line (pt 16 12)(pt 31 12)(line_width 1))
(line (pt 16 37)(pt 31 37)(line_width 1))
(line (pt 16 12)(pt 16 37)(line_width 1))
(arc (pt 31 36)(pt 31 12)(rect 19 12 44 37)(line_width 1))
)
)
(symbol
(rect 544 360 608 408)
(text "AND3" (rect 1 0 25 10)(font "Arial" (font_size 6)))
(text "inst10" (rect 3 37 32 49)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 16 16)(line_width 1))
)
(port
(pt 0 24)
(input)
(text "IN2" (rect 2 15 19 27)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 2 15 19 27)(font "Courier New" (bold))(invisible))
(line (pt 0 24)(pt 16 24)(line_width 1))
)
(port
(pt 0 32)
(input)
(text "IN3" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(text "IN3" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 64 24)
(output)
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(line (pt 43 24)(pt 64 24)(line_width 1))
)
(drawing
(line (pt 16 12)(pt 31 12)(line_width 1))
(line (pt 16 37)(pt 31 37)(line_width 1))
(line (pt 16 12)(pt 16 37)(line_width 1))
(arc (pt 31 36)(pt 31 12)(rect 19 12 44 37)(line_width 1))
)
)
(connector
(pt 216 40)
(pt 216 152)
)
(connector
(pt 240 48)
(pt 240 248)
)
(connector
(pt 264 56)
(pt 264 336)
)
(connector
(pt 544 184)
(pt 360 184)
)
(connector
(pt 344 152)
(pt 376 152)
)
(connector
(pt 376 376)
(pt 544 376)
)
(connector
(pt 544 88)
(pt 360 88)
)
(connector
(pt 544 288)
(pt 416 288)
)
(connector
(pt 544 344)
(pt 464 344)
)
(connector
(pt 544 96)
(pt 416 96)
)
(connector
(pt 544 328)
(pt 376 328)
)
(connector
(pt 544 280)
(pt 376 280)
)
(connector
(pt 544 232)
(pt 376 232)
)
(connector
(pt 544 240)
(pt 416 240)
)
(connector
(pt 544 104)
(pt 520 104)
)
(connector
(pt 520 392)
(pt 544 392)
)
(connector
(pt 544 296)
(pt 520 296)
)
(connector
(pt 544 200)
(pt 520 200)
)
(connector
(pt 344 336)
(pt 520 336)
)
(connector
(pt 544 136)
(pt 360 136)
)
(connector
(pt 544 152)
(pt 464 152)
)
(connector
(pt 544 144)
(pt 400 144)
)
(connector
(pt 400 384)
(pt 544 384)
)
(connector
(pt 544 336)
(pt 528 336)
)
(connector
(pt 528 336)
(pt 528 352)
)
(connector
(pt 528 352)
(pt 400 352)
)
(connector
(pt 544 192)
(pt 400 192)
)
(connector
(pt 344 248)
(pt 400 248)
)
(connector
(pt 544 248)
(pt 464 248)
)
(connector
(pt 608 336)
(pt 664 336)
)
(connector
(pt 608 288)
(pt 664 288)
)
(connector
(pt 608 384)
(pt 664 384)
)
(connector
(pt 608 240)
(pt 664 240)
)
(connector
(pt 608 192)
(pt 664 192)
)
(connector
(pt 608 144)
(pt 664 144)
)
(connector
(pt 608 96)
(pt 664 96)
)
(connector
(pt 608 48)
(pt 664 48)
)
(connector
(pt 200 152)
(pt 216 152)
)
(connector
(pt 216 152)
(pt 296 152)
)
(connector
(pt 200 248)
(pt 240 248)
)
(connector
(pt 240 248)
(pt 296 248)
)
(connector
(pt 200 336)
(pt 264 336)
)
(connector
(pt 264 336)
(pt 296 336)
)
(connector
(pt 216 40)
(pt 360 40)
)
(connector
(pt 360 40)
(pt 544 40)
)
(connector
(pt 240 48)
(pt 416 48)
)
(connector
(pt 416 48)
(pt 544 48)
)
(connector
(pt 376 328)
(pt 376 376)
)
(connector
(pt 376 152)
(pt 376 232)
)
(connector
(pt 376 232)
(pt 376 280)
)
(connector
(pt 376 280)
(pt 376 328)
)
(connector
(pt 416 48)
(pt 416 96)
)
(connector
(pt 416 96)
(pt 416 240)
)
(connector
(pt 416 240)
(pt 416 288)
)
(connector
(pt 520 104)
(pt 520 200)
)
(connector
(pt 520 200)
(pt 520 296)
)
(connector
(pt 520 296)
(pt 520 336)
)
(connector
(pt 520 336)
(pt 520 392)
)
(connector
(pt 360 40)
(pt 360 88)
)
(connector
(pt 360 88)
(pt 360 136)
)
(connector
(pt 360 136)
(pt 360 184)
)
(connector
(pt 264 56)
(pt 464 56)
)
(connector
(pt 464 56)
(pt 544 56)
)
(connector
(pt 400 144)
(pt 400 192)
)
(connector
(pt 400 192)
(pt 400 248)
)
(connector
(pt 400 248)
(pt 400 352)
)
(connector
(pt 400 352)
(pt 400 384)
)
(connector
(pt 464 56)
(pt 464 152)
)
(connector
(pt 464 152)
(pt 464 248)
)
(connector
(pt 464 248)
(pt 464 344)
)
(junction (pt 216 152))
(junction (pt 240 248))
(junction (pt 264 336))
(junction (pt 360 88))
(junction (pt 360 40))
(junction (pt 416 96))
(junction (pt 416 48))
(junction (pt 376 328))
(junction (pt 376 280))
(junction (pt 376 232))
(junction (pt 416 240))
(junction (pt 520 200))
(junction (pt 520 296))
(junction (pt 520 336))
(junction (pt 360 136))
(junction (pt 464 152))
(junction (pt 464 56))
(junction (pt 400 352))
(junction (pt 400 192))
(junction (pt 400 248))
(junction (pt 464 248))

106
test_ALU/38_decoder.bsf Normal file
查看文件

@ -0,0 +1,106 @@
/*
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 16 16 112 208)
(text "38_decoder" (rect 5 0 73 14)(font "Arial" (font_size 8)))
(text "inst" (rect 8 176 25 188)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "I2" (rect 0 0 9 14)(font "Arial" (font_size 8)))
(text "I2" (rect 21 27 30 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "I1" (rect 0 0 9 14)(font "Arial" (font_size 8)))
(text "I1" (rect 21 43 30 57)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "I0" (rect 0 0 9 14)(font "Arial" (font_size 8)))
(text "I0" (rect 21 59 30 73)(font "Arial" (font_size 8)))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 96 32)
(output)
(text "Y7" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Y7" (rect 59 27 75 41)(font "Arial" (font_size 8)))
(line (pt 96 32)(pt 80 32)(line_width 1))
)
(port
(pt 96 48)
(output)
(text "Y6" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Y6" (rect 59 43 75 57)(font "Arial" (font_size 8)))
(line (pt 96 48)(pt 80 48)(line_width 1))
)
(port
(pt 96 64)
(output)
(text "Y5" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Y5" (rect 59 59 75 73)(font "Arial" (font_size 8)))
(line (pt 96 64)(pt 80 64)(line_width 1))
)
(port
(pt 96 80)
(output)
(text "Y4" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Y4" (rect 59 75 75 89)(font "Arial" (font_size 8)))
(line (pt 96 80)(pt 80 80)(line_width 1))
)
(port
(pt 96 96)
(output)
(text "Y3" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Y3" (rect 59 91 75 105)(font "Arial" (font_size 8)))
(line (pt 96 96)(pt 80 96)(line_width 1))
)
(port
(pt 96 112)
(output)
(text "Y2" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Y2" (rect 59 107 75 121)(font "Arial" (font_size 8)))
(line (pt 96 112)(pt 80 112)(line_width 1))
)
(port
(pt 96 128)
(output)
(text "Y1" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Y1" (rect 59 123 75 137)(font "Arial" (font_size 8)))
(line (pt 96 128)(pt 80 128)(line_width 1))
)
(port
(pt 96 144)
(output)
(text "Y0" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Y0" (rect 59 139 75 153)(font "Arial" (font_size 8)))
(line (pt 96 144)(pt 80 144)(line_width 1))
)
(drawing
(rectangle (rect 16 16 80 176)(line_width 1))
)
)

3658
test_ALU/ALU_3_in_1.bdf Normal file

檔案差異因為檔案過大而無法顯示 載入差異

274
test_ALU/ALU_3_in_1.bsf Normal file
查看文件

@ -0,0 +1,274 @@
/*
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 192 480)
(text "ALU_3_in_1" (rect 5 0 74 14)(font "Arial" (font_size 8)))
(text "inst" (rect 8 400 25 412)(font "Arial" ))
(port
(pt 0 144)
(input)
(text "A0" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "A0" (rect 21 139 37 153)(font "Arial" (font_size 8)))
(line (pt 0 144)(pt 16 144)(line_width 1))
)
(port
(pt 0 128)
(input)
(text "A1" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "A1" (rect 21 123 37 137)(font "Arial" (font_size 8)))
(line (pt 0 128)(pt 16 128)(line_width 1))
)
(port
(pt 0 112)
(input)
(text "A2" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "A2" (rect 21 107 37 121)(font "Arial" (font_size 8)))
(line (pt 0 112)(pt 16 112)(line_width 1))
)
(port
(pt 0 96)
(input)
(text "A3" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "A3" (rect 21 91 37 105)(font "Arial" (font_size 8)))
(line (pt 0 96)(pt 16 96)(line_width 1))
)
(port
(pt 0 80)
(input)
(text "A4" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "A4" (rect 21 75 37 89)(font "Arial" (font_size 8)))
(line (pt 0 80)(pt 16 80)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "A5" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "A5" (rect 21 59 37 73)(font "Arial" (font_size 8)))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "A6" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "A6" (rect 21 43 37 57)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 32)
(input)
(text "A7" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "A7" (rect 21 27 37 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 272)
(input)
(text "B0" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "B0" (rect 21 267 36 281)(font "Arial" (font_size 8)))
(line (pt 0 272)(pt 16 272)(line_width 1))
)
(port
(pt 0 256)
(input)
(text "B1" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "B1" (rect 21 251 36 265)(font "Arial" (font_size 8)))
(line (pt 0 256)(pt 16 256)(line_width 1))
)
(port
(pt 0 240)
(input)
(text "B2" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "B2" (rect 21 235 36 249)(font "Arial" (font_size 8)))
(line (pt 0 240)(pt 16 240)(line_width 1))
)
(port
(pt 0 224)
(input)
(text "B3" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "B3" (rect 21 219 36 233)(font "Arial" (font_size 8)))
(line (pt 0 224)(pt 16 224)(line_width 1))
)
(port
(pt 0 208)
(input)
(text "B4" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "B4" (rect 21 203 36 217)(font "Arial" (font_size 8)))
(line (pt 0 208)(pt 16 208)(line_width 1))
)
(port
(pt 0 192)
(input)
(text "B5" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "B5" (rect 21 187 36 201)(font "Arial" (font_size 8)))
(line (pt 0 192)(pt 16 192)(line_width 1))
)
(port
(pt 0 176)
(input)
(text "B6" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "B6" (rect 21 171 36 185)(font "Arial" (font_size 8)))
(line (pt 0 176)(pt 16 176)(line_width 1))
)
(port
(pt 0 160)
(input)
(text "B7" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "B7" (rect 21 155 36 169)(font "Arial" (font_size 8)))
(line (pt 0 160)(pt 16 160)(line_width 1))
)
(port
(pt 0 288)
(input)
(text "CLR" (rect 0 0 23 14)(font "Arial" (font_size 8)))
(text "CLR" (rect 21 283 44 297)(font "Arial" (font_size 8)))
(line (pt 0 288)(pt 16 288)(line_width 1))
)
(port
(pt 0 304)
(input)
(text "CP_A" (rect 0 0 31 14)(font "Arial" (font_size 8)))
(text "CP_A" (rect 21 299 52 313)(font "Arial" (font_size 8)))
(line (pt 0 304)(pt 16 304)(line_width 1))
)
(port
(pt 0 320)
(input)
(text "CP_B" (rect 0 0 30 14)(font "Arial" (font_size 8)))
(text "CP_B" (rect 21 315 51 329)(font "Arial" (font_size 8)))
(line (pt 0 320)(pt 16 320)(line_width 1))
)
(port
(pt 0 336)
(input)
(text "CP_Z" (rect 0 0 30 14)(font "Arial" (font_size 8)))
(text "CP_Z" (rect 21 331 51 345)(font "Arial" (font_size 8)))
(line (pt 0 336)(pt 16 336)(line_width 1))
)
(port
(pt 0 368)
(input)
(text "S1" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "S1" (rect 21 363 36 377)(font "Arial" (font_size 8)))
(line (pt 0 368)(pt 16 368)(line_width 1))
)
(port
(pt 0 384)
(input)
(text "S0" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "S0" (rect 21 379 36 393)(font "Arial" (font_size 8)))
(line (pt 0 384)(pt 16 384)(line_width 1))
)
(port
(pt 0 352)
(input)
(text "S2" (rect 24 344 39 358)(font "Arial" (font_size 8)))
(text "S2" (rect 24 344 39 358)(font "Arial" (font_size 8)))
(line (pt 0 352)(pt 16 352)(line_width 1))
)
(port
(pt 128 144)
(output)
(text "Q0" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Q0" (rect 91 139 107 153)(font "Arial" (font_size 8)))
(line (pt 128 144)(pt 112 144)(line_width 1))
)
(port
(pt 128 128)
(output)
(text "Q1" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Q1" (rect 91 123 107 137)(font "Arial" (font_size 8)))
(line (pt 128 128)(pt 112 128)(line_width 1))
)
(port
(pt 128 112)
(output)
(text "Q2" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Q2" (rect 91 107 107 121)(font "Arial" (font_size 8)))
(line (pt 128 112)(pt 112 112)(line_width 1))
)
(port
(pt 128 96)
(output)
(text "Q3" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Q3" (rect 91 91 107 105)(font "Arial" (font_size 8)))
(line (pt 128 96)(pt 112 96)(line_width 1))
)
(port
(pt 128 80)
(output)
(text "Q4" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Q4" (rect 91 75 107 89)(font "Arial" (font_size 8)))
(line (pt 128 80)(pt 112 80)(line_width 1))
)
(port
(pt 128 64)
(output)
(text "Q5" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Q5" (rect 91 59 107 73)(font "Arial" (font_size 8)))
(line (pt 128 64)(pt 112 64)(line_width 1))
)
(port
(pt 128 48)
(output)
(text "Q6" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Q6" (rect 91 43 107 57)(font "Arial" (font_size 8)))
(line (pt 128 48)(pt 112 48)(line_width 1))
)
(port
(pt 128 32)
(output)
(text "Q7" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Q7" (rect 91 27 107 41)(font "Arial" (font_size 8)))
(line (pt 128 32)(pt 112 32)(line_width 1))
)
(port
(pt 128 176)
(output)
(text "FLG_V" (rect 0 0 40 14)(font "Arial" (font_size 8)))
(text "FLG_V" (rect 67 171 107 185)(font "Arial" (font_size 8)))
(line (pt 128 176)(pt 112 176)(line_width 1))
)
(port
(pt 128 192)
(output)
(text "FLG_N" (rect 0 0 38 14)(font "Arial" (font_size 8)))
(text "FLG_N" (rect 69 187 107 201)(font "Arial" (font_size 8)))
(line (pt 128 192)(pt 112 192)(line_width 1))
)
(port
(pt 128 208)
(output)
(text "FLG_Z" (rect 0 0 38 14)(font "Arial" (font_size 8)))
(text "FLG_Z" (rect 69 203 107 217)(font "Arial" (font_size 8)))
(line (pt 128 208)(pt 112 208)(line_width 1))
)
(port
(pt 128 160)
(output)
(text "FLG_C" (rect 0 0 38 14)(font "Arial" (font_size 8)))
(text "FLG_C" (rect 69 155 107 169)(font "Arial" (font_size 8)))
(line (pt 128 160)(pt 112 160)(line_width 1))
)
(drawing
(rectangle (rect 16 16 112 400)(line_width 1))
)
)

2046
test_ALU/ALU_parallel_8b.bdf Normal file

檔案差異因為檔案過大而無法顯示 載入差異

查看文件

@ -0,0 +1,246 @@
/*
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 448 152)
(text "ALU_parallel_8b" (rect 5 0 98 14)(font "Arial" (font_size 8)))
(text "inst" (rect 8 72 25 84)(font "Arial" ))
(port
(pt 144 88)
(input)
(text "A0" (rect 0 -328 16 -314)(font "Arial" (font_size 8)))
(text "A0" (rect 136 48 150 64)(font "Arial" (font_size 8))(vertical))
(line (pt 144 88)(pt 144 72)(line_width 1))
)
(port
(pt 272 88)
(input)
(text "B0" (rect 0 -328 15 -314)(font "Arial" (font_size 8)))
(text "B0" (rect 264 49 278 64)(font "Arial" (font_size 8))(vertical))
(line (pt 272 88)(pt 272 72)(line_width 1))
)
(port
(pt 128 88)
(input)
(text "A1" (rect 0 -328 16 -314)(font "Arial" (font_size 8)))
(text "A1" (rect 120 48 134 64)(font "Arial" (font_size 8))(vertical))
(line (pt 128 88)(pt 128 72)(line_width 1))
)
(port
(pt 256 88)
(input)
(text "B1" (rect 0 -328 15 -314)(font "Arial" (font_size 8)))
(text "B1" (rect 248 49 262 64)(font "Arial" (font_size 8))(vertical))
(line (pt 256 88)(pt 256 72)(line_width 1))
)
(port
(pt 112 88)
(input)
(text "A2" (rect 0 -328 16 -314)(font "Arial" (font_size 8)))
(text "A2" (rect 104 48 118 64)(font "Arial" (font_size 8))(vertical))
(line (pt 112 88)(pt 112 72)(line_width 1))
)
(port
(pt 240 88)
(input)
(text "B2" (rect 0 -328 15 -314)(font "Arial" (font_size 8)))
(text "B2" (rect 232 49 246 64)(font "Arial" (font_size 8))(vertical))
(line (pt 240 88)(pt 240 72)(line_width 1))
)
(port
(pt 96 88)
(input)
(text "A3" (rect 0 -328 16 -314)(font "Arial" (font_size 8)))
(text "A3" (rect 88 48 102 64)(font "Arial" (font_size 8))(vertical))
(line (pt 96 88)(pt 96 72)(line_width 1))
)
(port
(pt 224 88)
(input)
(text "B3" (rect 0 -328 15 -314)(font "Arial" (font_size 8)))
(text "B3" (rect 216 49 230 64)(font "Arial" (font_size 8))(vertical))
(line (pt 224 88)(pt 224 72)(line_width 1))
)
(port
(pt 288 88)
(input)
(text "C0" (rect 0 -328 15 -314)(font "Arial" (font_size 8)))
(text "C0" (rect 280 49 294 64)(font "Arial" (font_size 8))(vertical))
(line (pt 288 88)(pt 288 72)(line_width 1))
)
(port
(pt 304 88)
(input)
(text "M" (rect 0 -328 9 -314)(font "Arial" (font_size 8)))
(text "M" (rect 296 55 310 64)(font "Arial" (font_size 8))(vertical))
(line (pt 304 88)(pt 304 72)(line_width 1))
)
(port
(pt 320 88)
(input)
(text "S3" (rect 0 -328 15 -314)(font "Arial" (font_size 8)))
(text "S3" (rect 312 49 326 64)(font "Arial" (font_size 8))(vertical))
(line (pt 320 88)(pt 320 72)(line_width 1))
)
(port
(pt 336 88)
(input)
(text "S2" (rect 0 -328 15 -314)(font "Arial" (font_size 8)))
(text "S2" (rect 328 49 342 64)(font "Arial" (font_size 8))(vertical))
(line (pt 336 88)(pt 336 72)(line_width 1))
)
(port
(pt 352 88)
(input)
(text "S1" (rect 0 -328 15 -314)(font "Arial" (font_size 8)))
(text "S1" (rect 344 49 358 64)(font "Arial" (font_size 8))(vertical))
(line (pt 352 88)(pt 352 72)(line_width 1))
)
(port
(pt 368 88)
(input)
(text "S0" (rect 0 -328 15 -314)(font "Arial" (font_size 8)))
(text "S0" (rect 360 49 374 64)(font "Arial" (font_size 8))(vertical))
(line (pt 368 88)(pt 368 72)(line_width 1))
)
(port
(pt 80 88)
(input)
(text "A4" (rect 0 -328 16 -314)(font "Arial" (font_size 8)))
(text "A4" (rect 72 48 86 64)(font "Arial" (font_size 8))(vertical))
(line (pt 80 88)(pt 80 72)(line_width 1))
)
(port
(pt 208 88)
(input)
(text "B4" (rect 0 -328 15 -314)(font "Arial" (font_size 8)))
(text "B4" (rect 200 49 214 64)(font "Arial" (font_size 8))(vertical))
(line (pt 208 88)(pt 208 72)(line_width 1))
)
(port
(pt 64 88)
(input)
(text "A5" (rect 0 -328 16 -314)(font "Arial" (font_size 8)))
(text "A5" (rect 56 48 70 64)(font "Arial" (font_size 8))(vertical))
(line (pt 64 88)(pt 64 72)(line_width 1))
)
(port
(pt 192 88)
(input)
(text "B5" (rect 0 -328 15 -314)(font "Arial" (font_size 8)))
(text "B5" (rect 184 49 198 64)(font "Arial" (font_size 8))(vertical))
(line (pt 192 88)(pt 192 72)(line_width 1))
)
(port
(pt 48 88)
(input)
(text "A6" (rect 0 -328 16 -314)(font "Arial" (font_size 8)))
(text "A6" (rect 40 48 54 64)(font "Arial" (font_size 8))(vertical))
(line (pt 48 88)(pt 48 72)(line_width 1))
)
(port
(pt 176 88)
(input)
(text "B6" (rect 0 -328 15 -314)(font "Arial" (font_size 8)))
(text "B6" (rect 168 49 182 64)(font "Arial" (font_size 8))(vertical))
(line (pt 176 88)(pt 176 72)(line_width 1))
)
(port
(pt 32 88)
(input)
(text "A7" (rect 0 -328 16 -314)(font "Arial" (font_size 8)))
(text "A7" (rect 24 48 38 64)(font "Arial" (font_size 8))(vertical))
(line (pt 32 88)(pt 32 72)(line_width 1))
)
(port
(pt 160 88)
(input)
(text "B7" (rect 0 -328 15 -314)(font "Arial" (font_size 8)))
(text "B7" (rect 152 49 166 64)(font "Arial" (font_size 8))(vertical))
(line (pt 160 88)(pt 160 72)(line_width 1))
)
(port
(pt 160 0)
(output)
(text "F0" (rect 168 0 182 14)(font "Arial" (font_size 8)))
(text "F0" (rect 152 24 166 38)(font "Arial" (font_size 8))(vertical))
(line (pt 160 0)(pt 160 16)(line_width 1))
)
(port
(pt 144 0)
(output)
(text "F1" (rect 168 0 182 14)(font "Arial" (font_size 8)))
(text "F1" (rect 136 24 150 38)(font "Arial" (font_size 8))(vertical))
(line (pt 144 0)(pt 144 16)(line_width 1))
)
(port
(pt 128 0)
(output)
(text "F2" (rect 168 0 182 14)(font "Arial" (font_size 8)))
(text "F2" (rect 120 24 134 38)(font "Arial" (font_size 8))(vertical))
(line (pt 128 0)(pt 128 16)(line_width 1))
)
(port
(pt 112 0)
(output)
(text "F3" (rect 168 0 182 14)(font "Arial" (font_size 8)))
(text "F3" (rect 104 24 118 38)(font "Arial" (font_size 8))(vertical))
(line (pt 112 0)(pt 112 16)(line_width 1))
)
(port
(pt 32 0)
(output)
(text "C8" (rect 168 0 183 14)(font "Arial" (font_size 8)))
(text "C8" (rect 24 24 38 39)(font "Arial" (font_size 8))(vertical))
(line (pt 32 0)(pt 32 16)(line_width 1))
)
(port
(pt 96 0)
(output)
(text "F4" (rect 168 0 182 14)(font "Arial" (font_size 8)))
(text "F4" (rect 88 24 102 38)(font "Arial" (font_size 8))(vertical))
(line (pt 96 0)(pt 96 16)(line_width 1))
)
(port
(pt 80 0)
(output)
(text "F5" (rect 168 0 182 14)(font "Arial" (font_size 8)))
(text "F5" (rect 72 24 86 38)(font "Arial" (font_size 8))(vertical))
(line (pt 80 0)(pt 80 16)(line_width 1))
)
(port
(pt 64 0)
(output)
(text "F6" (rect 168 0 182 14)(font "Arial" (font_size 8)))
(text "F6" (rect 56 24 70 38)(font "Arial" (font_size 8))(vertical))
(line (pt 64 0)(pt 64 16)(line_width 1))
)
(port
(pt 48 0)
(output)
(text "F7" (rect 168 0 182 14)(font "Arial" (font_size 8)))
(text "F7" (rect 40 24 54 38)(font "Arial" (font_size 8))(vertical))
(line (pt 48 0)(pt 48 16)(line_width 1))
)
(drawing
(rectangle (rect 16 16 384 72)(line_width 1))
)
)

檔案差異因為檔案過大而無法顯示 載入差異

查看文件

@ -0,0 +1,211 @@
/*
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 160 416)
(text "double_selector_8b" (rect 5 0 117 14)(font "Arial" (font_size 8)))
(text "inst" (rect 8 336 25 348)(font "Arial" ))
(port
(pt 0 144)
(input)
(text "a0" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "a0" (rect 21 136 35 150)(font "Arial" (font_size 8)))
(line (pt 0 144)(pt 16 144)(line_width 1))
)
(port
(pt 0 128)
(input)
(text "a1" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "a1" (rect 21 120 35 134)(font "Arial" (font_size 8)))
(line (pt 0 128)(pt 16 128)(line_width 1))
)
(port
(pt 0 112)
(input)
(text "a2" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "a2" (rect 21 104 35 118)(font "Arial" (font_size 8)))
(line (pt 0 112)(pt 16 112)(line_width 1))
)
(port
(pt 0 96)
(input)
(text "a3" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "a3" (rect 21 88 35 102)(font "Arial" (font_size 8)))
(line (pt 0 96)(pt 16 96)(line_width 1))
)
(port
(pt 0 80)
(input)
(text "a4" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "a4" (rect 21 72 35 86)(font "Arial" (font_size 8)))
(line (pt 0 80)(pt 16 80)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "a5" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "a5" (rect 21 56 35 70)(font "Arial" (font_size 8)))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "a6" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "a6" (rect 21 40 35 54)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 32)
(input)
(text "a7" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "a7" (rect 21 24 35 38)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 272)
(input)
(text "b0" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "b0" (rect 21 267 35 281)(font "Arial" (font_size 8)))
(line (pt 0 272)(pt 16 272)(line_width 1))
)
(port
(pt 0 256)
(input)
(text "b1" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "b1" (rect 21 251 35 265)(font "Arial" (font_size 8)))
(line (pt 0 256)(pt 16 256)(line_width 1))
)
(port
(pt 0 240)
(input)
(text "b2" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "b2" (rect 21 235 35 249)(font "Arial" (font_size 8)))
(line (pt 0 240)(pt 16 240)(line_width 1))
)
(port
(pt 0 224)
(input)
(text "b3" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "b3" (rect 21 219 35 233)(font "Arial" (font_size 8)))
(line (pt 0 224)(pt 16 224)(line_width 1))
)
(port
(pt 0 208)
(input)
(text "b4" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "b4" (rect 21 203 35 217)(font "Arial" (font_size 8)))
(line (pt 0 208)(pt 16 208)(line_width 1))
)
(port
(pt 0 192)
(input)
(text "b5" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "b5" (rect 21 187 35 201)(font "Arial" (font_size 8)))
(line (pt 0 192)(pt 16 192)(line_width 1))
)
(port
(pt 0 176)
(input)
(text "b6" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "b6" (rect 21 171 35 185)(font "Arial" (font_size 8)))
(line (pt 0 176)(pt 16 176)(line_width 1))
)
(port
(pt 0 160)
(input)
(text "b7" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "b7" (rect 21 155 35 169)(font "Arial" (font_size 8)))
(line (pt 0 160)(pt 16 160)(line_width 1))
)
(port
(pt 0 288)
(input)
(text "AY" (rect 0 0 18 14)(font "Arial" (font_size 8)))
(text "AY" (rect 21 283 39 297)(font "Arial" (font_size 8)))
(line (pt 0 288)(pt 16 288)(line_width 1))
)
(port
(pt 0 304)
(input)
(text "BY" (rect 0 0 17 14)(font "Arial" (font_size 8)))
(text "BY" (rect 21 299 38 313)(font "Arial" (font_size 8)))
(line (pt 0 304)(pt 16 304)(line_width 1))
)
(port
(pt 96 144)
(output)
(text "Y0" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Y0" (rect 59 139 75 153)(font "Arial" (font_size 8)))
(line (pt 96 144)(pt 80 144)(line_width 1))
)
(port
(pt 96 128)
(output)
(text "Y1" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Y1" (rect 59 123 75 137)(font "Arial" (font_size 8)))
(line (pt 96 128)(pt 80 128)(line_width 1))
)
(port
(pt 96 112)
(output)
(text "Y2" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Y2" (rect 59 107 75 121)(font "Arial" (font_size 8)))
(line (pt 96 112)(pt 80 112)(line_width 1))
)
(port
(pt 96 96)
(output)
(text "Y3" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Y3" (rect 59 91 75 105)(font "Arial" (font_size 8)))
(line (pt 96 96)(pt 80 96)(line_width 1))
)
(port
(pt 96 80)
(output)
(text "Y4" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Y4" (rect 59 75 75 89)(font "Arial" (font_size 8)))
(line (pt 96 80)(pt 80 80)(line_width 1))
)
(port
(pt 96 64)
(output)
(text "Y5" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Y5" (rect 59 59 75 73)(font "Arial" (font_size 8)))
(line (pt 96 64)(pt 80 64)(line_width 1))
)
(port
(pt 96 48)
(output)
(text "Y6" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Y6" (rect 59 43 75 57)(font "Arial" (font_size 8)))
(line (pt 96 48)(pt 80 48)(line_width 1))
)
(port
(pt 96 32)
(output)
(text "Y7" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Y7" (rect 59 27 75 41)(font "Arial" (font_size 8)))
(line (pt 96 32)(pt 80 32)(line_width 1))
)
(drawing
(rectangle (rect 16 16 80 336)(line_width 1))
)
)

273
test_ALU/nano_selector.bdf Normal file
查看文件

@ -0,0 +1,273 @@
/*
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.
*/
//#pragma file_not_in_maxplusii_format
(header "graphic" (version "1.3"))
(pin
(input)
(rect 360 176 528 192)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "A" (rect 5 0 12 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 360 208 528 224)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "B" (rect 5 0 12 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 360 240 528 256)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "A_EN" (rect 5 0 33 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(output)
(rect 816 152 992 168)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "Q" (rect 90 0 98 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
)
(symbol
(rect 560 232 608 264)
(text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6)))
(text "inst" (rect 3 21 20 33)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 13 16)(line_width 1))
)
(port
(pt 48 16)
(output)
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
(line (pt 39 16)(pt 48 16)(line_width 1))
)
(drawing
(line (pt 13 25)(pt 13 7)(line_width 1))
(line (pt 13 7)(pt 31 16)(line_width 1))
(line (pt 13 25)(pt 31 16)(line_width 1))
(circle (rect 31 12 39 20)(line_width 1))
)
)
(symbol
(rect 640 128 704 176)
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
(text "inst3" (rect 3 37 26 49)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 14 16)(line_width 1))
)
(port
(pt 0 32)
(input)
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(line (pt 0 32)(pt 14 32)(line_width 1))
)
(port
(pt 64 24)
(output)
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(line (pt 42 24)(pt 64 24)(line_width 1))
)
(drawing
(line (pt 14 12)(pt 30 12)(line_width 1))
(line (pt 14 37)(pt 31 37)(line_width 1))
(line (pt 14 12)(pt 14 37)(line_width 1))
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37)(line_width 1))
)
)
(symbol
(rect 640 184 704 232)
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
(text "inst4" (rect 3 37 26 49)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 14 16)(line_width 1))
)
(port
(pt 0 32)
(input)
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(line (pt 0 32)(pt 14 32)(line_width 1))
)
(port
(pt 64 24)
(output)
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(line (pt 42 24)(pt 64 24)(line_width 1))
)
(drawing
(line (pt 14 12)(pt 30 12)(line_width 1))
(line (pt 14 37)(pt 31 37)(line_width 1))
(line (pt 14 12)(pt 14 37)(line_width 1))
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37)(line_width 1))
)
)
(symbol
(rect 736 136 800 184)
(text "OR2" (rect 1 0 19 10)(font "Arial" (font_size 6)))
(text "inst5" (rect 3 37 26 49)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
(line (pt 0 32)(pt 15 32)(line_width 1))
)
(port
(pt 0 16)
(input)
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 15 16)(line_width 1))
)
(port
(pt 64 24)
(output)
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
(line (pt 48 24)(pt 64 24)(line_width 1))
)
(drawing
(line (pt 14 36)(pt 25 36)(line_width 1))
(line (pt 14 13)(pt 25 13)(line_width 1))
(arc (pt 7 29)(pt 7 19)(rect -14 8 19 41)(line_width 1))
(arc (pt 49 24)(pt 25 13)(rect -6 13 57 76)(line_width 1))
(arc (pt 25 35)(pt 49 24)(rect -6 -27 57 36)(line_width 1))
)
)
(connector
(pt 528 216)
(pt 640 216)
)
(connector
(pt 640 200)
(pt 624 200)
)
(connector
(pt 704 208)
(pt 720 208)
)
(connector
(pt 816 160)
(pt 800 160)
)
(connector
(pt 720 208)
(pt 720 168)
)
(connector
(pt 720 168)
(pt 736 168)
)
(connector
(pt 704 152)
(pt 736 152)
)
(connector
(pt 624 248)
(pt 608 248)
)
(connector
(pt 624 200)
(pt 624 248)
)
(connector
(pt 544 144)
(pt 544 248)
)
(connector
(pt 640 144)
(pt 544 144)
)
(connector
(pt 528 248)
(pt 544 248)
)
(connector
(pt 544 248)
(pt 560 248)
)
(connector
(pt 640 160)
(pt 624 160)
)
(connector
(pt 624 160)
(pt 624 184)
)
(connector
(pt 528 184)
(pt 624 184)
)
(junction (pt 544 248))

查看文件

@ -0,0 +1,57 @@
/*
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 16 16 112 112)
(text "nano_selector" (rect 5 0 86 14)(font "Arial" (font_size 8)))
(text "inst" (rect 8 80 25 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "A" (rect 0 0 9 14)(font "Arial" (font_size 8)))
(text "A" (rect 21 27 30 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "B" (rect 0 0 8 14)(font "Arial" (font_size 8)))
(text "B" (rect 21 43 29 57)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "A_EN" (rect 0 0 31 14)(font "Arial" (font_size 8)))
(text "A_EN" (rect 21 59 52 73)(font "Arial" (font_size 8)))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 96 32)
(output)
(text "Q" (rect 0 0 9 14)(font "Arial" (font_size 8)))
(text "Q" (rect 66 27 75 41)(font "Arial" (font_size 8)))
(line (pt 96 32)(pt 80 32)(line_width 1))
)
(drawing
(rectangle (rect 16 16 80 80)(line_width 1))
)
)

1004
test_ALU/register_8b.bdf Normal file

檔案差異因為檔案過大而無法顯示 載入差異

155
test_ALU/register_8b.bsf Normal file
查看文件

@ -0,0 +1,155 @@
/*
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 16 16 112 240)
(text "register_8b" (rect 5 0 69 14)(font "Arial" (font_size 8)))
(text "inst" (rect 8 208 25 220)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "CLR" (rect 0 0 23 14)(font "Arial" (font_size 8)))
(text "CLR" (rect 21 27 44 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "CP" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "CP" (rect 21 43 36 57)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "D7" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "D7" (rect 21 59 36 73)(font "Arial" (font_size 8)))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 0 80)
(input)
(text "D6" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "D6" (rect 21 75 36 89)(font "Arial" (font_size 8)))
(line (pt 0 80)(pt 16 80)(line_width 1))
)
(port
(pt 0 96)
(input)
(text "D5" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "D5" (rect 21 91 36 105)(font "Arial" (font_size 8)))
(line (pt 0 96)(pt 16 96)(line_width 1))
)
(port
(pt 0 112)
(input)
(text "D4" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "D4" (rect 21 107 36 121)(font "Arial" (font_size 8)))
(line (pt 0 112)(pt 16 112)(line_width 1))
)
(port
(pt 0 128)
(input)
(text "D3" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "D3" (rect 21 123 36 137)(font "Arial" (font_size 8)))
(line (pt 0 128)(pt 16 128)(line_width 1))
)
(port
(pt 0 144)
(input)
(text "D2" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "D2" (rect 21 139 36 153)(font "Arial" (font_size 8)))
(line (pt 0 144)(pt 16 144)(line_width 1))
)
(port
(pt 0 160)
(input)
(text "D1" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "D1" (rect 21 155 36 169)(font "Arial" (font_size 8)))
(line (pt 0 160)(pt 16 160)(line_width 1))
)
(port
(pt 0 176)
(input)
(text "D0" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "D0" (rect 21 171 36 185)(font "Arial" (font_size 8)))
(line (pt 0 176)(pt 16 176)(line_width 1))
)
(port
(pt 96 32)
(output)
(text "Q7" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Q7" (rect 59 27 75 41)(font "Arial" (font_size 8)))
(line (pt 96 32)(pt 80 32)(line_width 1))
)
(port
(pt 96 48)
(output)
(text "Q6" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Q6" (rect 59 43 75 57)(font "Arial" (font_size 8)))
(line (pt 96 48)(pt 80 48)(line_width 1))
)
(port
(pt 96 64)
(output)
(text "Q5" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Q5" (rect 59 59 75 73)(font "Arial" (font_size 8)))
(line (pt 96 64)(pt 80 64)(line_width 1))
)
(port
(pt 96 80)
(output)
(text "Q4" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Q4" (rect 59 75 75 89)(font "Arial" (font_size 8)))
(line (pt 96 80)(pt 80 80)(line_width 1))
)
(port
(pt 96 96)
(output)
(text "Q3" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Q3" (rect 59 91 75 105)(font "Arial" (font_size 8)))
(line (pt 96 96)(pt 80 96)(line_width 1))
)
(port
(pt 96 112)
(output)
(text "Q2" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Q2" (rect 59 107 75 121)(font "Arial" (font_size 8)))
(line (pt 96 112)(pt 80 112)(line_width 1))
)
(port
(pt 96 128)
(output)
(text "Q1" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Q1" (rect 59 123 75 137)(font "Arial" (font_size 8)))
(line (pt 96 128)(pt 80 128)(line_width 1))
)
(port
(pt 96 144)
(output)
(text "Q0" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Q0" (rect 59 139 75 153)(font "Arial" (font_size 8)))
(line (pt 96 144)(pt 80 144)(line_width 1))
)
(drawing
(rectangle (rect 16 16 80 208)(line_width 1))
)
)

1077
test_ALU/shifter_8b.bdf Normal file

檔案差異因為檔案過大而無法顯示 載入差異

183
test_ALU/shifter_8b.bsf Normal file
查看文件

@ -0,0 +1,183 @@
/*
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 296 160)
(text "shifter_8b" (rect 5 0 62 14)(font "Arial" (font_size 8)))
(text "inst" (rect 8 80 25 92)(font "Arial" ))
(port
(pt 48 96)
(input)
(text "A7" (rect 0 -160 16 -146)(font "Arial" (font_size 8)))
(text "A7" (rect 40 56 54 72)(font "Arial" (font_size 8))(vertical))
(line (pt 48 96)(pt 48 80)(line_width 1))
)
(port
(pt 64 96)
(input)
(text "A6" (rect 0 -160 16 -146)(font "Arial" (font_size 8)))
(text "A6" (rect 56 56 70 72)(font "Arial" (font_size 8))(vertical))
(line (pt 64 96)(pt 64 80)(line_width 1))
)
(port
(pt 80 96)
(input)
(text "A5" (rect 0 -160 16 -146)(font "Arial" (font_size 8)))
(text "A5" (rect 72 56 86 72)(font "Arial" (font_size 8))(vertical))
(line (pt 80 96)(pt 80 80)(line_width 1))
)
(port
(pt 96 96)
(input)
(text "A4" (rect 0 -160 16 -146)(font "Arial" (font_size 8)))
(text "A4" (rect 88 56 102 72)(font "Arial" (font_size 8))(vertical))
(line (pt 96 96)(pt 96 80)(line_width 1))
)
(port
(pt 112 96)
(input)
(text "A3" (rect 0 -160 16 -146)(font "Arial" (font_size 8)))
(text "A3" (rect 104 56 118 72)(font "Arial" (font_size 8))(vertical))
(line (pt 112 96)(pt 112 80)(line_width 1))
)
(port
(pt 128 96)
(input)
(text "A2" (rect 0 -160 16 -146)(font "Arial" (font_size 8)))
(text "A2" (rect 120 56 134 72)(font "Arial" (font_size 8))(vertical))
(line (pt 128 96)(pt 128 80)(line_width 1))
)
(port
(pt 144 96)
(input)
(text "A1" (rect 0 -160 16 -146)(font "Arial" (font_size 8)))
(text "A1" (rect 136 56 150 72)(font "Arial" (font_size 8))(vertical))
(line (pt 144 96)(pt 144 80)(line_width 1))
)
(port
(pt 160 96)
(input)
(text "A0" (rect 0 -160 16 -146)(font "Arial" (font_size 8)))
(text "A0" (rect 152 56 166 72)(font "Arial" (font_size 8))(vertical))
(line (pt 160 96)(pt 160 80)(line_width 1))
)
(port
(pt 232 32)
(input)
(text "LM" (rect -56 0 -40 14)(font "Arial" (font_size 8)))
(text "LM" (rect 192 24 208 38)(font "Arial" (font_size 8)))
(line (pt 216 32)(pt 232 32)(line_width 1))
)
(port
(pt 232 48)
(input)
(text "DM" (rect -56 0 -39 14)(font "Arial" (font_size 8)))
(text "DM" (rect 191 40 208 54)(font "Arial" (font_size 8)))
(line (pt 216 48)(pt 232 48)(line_width 1))
)
(port
(pt 232 64)
(input)
(text "RM" (rect -56 0 -39 14)(font "Arial" (font_size 8)))
(text "RM" (rect 191 56 208 70)(font "Arial" (font_size 8)))
(line (pt 216 64)(pt 232 64)(line_width 1))
)
(port
(pt 176 96)
(input)
(text "R_in" (rect 0 -160 24 -146)(font "Arial" (font_size 8)))
(text "R_in" (rect 168 48 182 72)(font "Arial" (font_size 8))(vertical))
(line (pt 176 96)(pt 176 80)(line_width 1))
)
(port
(pt 32 96)
(input)
(text "L_in" (rect 0 -160 23 -146)(font "Arial" (font_size 8)))
(text "L_in" (rect 24 48 38 71)(font "Arial" (font_size 8))(vertical))
(line (pt 32 96)(pt 32 80)(line_width 1))
)
(port
(pt 48 0)
(output)
(text "Y7" (rect 192 0 208 14)(font "Arial" (font_size 8)))
(text "Y7" (rect 40 24 54 40)(font "Arial" (font_size 8))(vertical))
(line (pt 48 0)(pt 48 16)(line_width 1))
)
(port
(pt 64 0)
(output)
(text "Y6" (rect 192 0 208 14)(font "Arial" (font_size 8)))
(text "Y6" (rect 56 24 70 40)(font "Arial" (font_size 8))(vertical))
(line (pt 64 0)(pt 64 16)(line_width 1))
)
(port
(pt 80 0)
(output)
(text "Y5" (rect 192 0 208 14)(font "Arial" (font_size 8)))
(text "Y5" (rect 72 24 86 40)(font "Arial" (font_size 8))(vertical))
(line (pt 80 0)(pt 80 16)(line_width 1))
)
(port
(pt 96 0)
(output)
(text "Y4" (rect 192 0 208 14)(font "Arial" (font_size 8)))
(text "Y4" (rect 88 24 102 40)(font "Arial" (font_size 8))(vertical))
(line (pt 96 0)(pt 96 16)(line_width 1))
)
(port
(pt 112 0)
(output)
(text "Y3" (rect 192 0 208 14)(font "Arial" (font_size 8)))
(text "Y3" (rect 104 24 118 40)(font "Arial" (font_size 8))(vertical))
(line (pt 112 0)(pt 112 16)(line_width 1))
)
(port
(pt 128 0)
(output)
(text "Y2" (rect 192 0 208 14)(font "Arial" (font_size 8)))
(text "Y2" (rect 120 24 134 40)(font "Arial" (font_size 8))(vertical))
(line (pt 128 0)(pt 128 16)(line_width 1))
)
(port
(pt 144 0)
(output)
(text "Y1" (rect 192 0 208 14)(font "Arial" (font_size 8)))
(text "Y1" (rect 136 24 150 40)(font "Arial" (font_size 8))(vertical))
(line (pt 144 0)(pt 144 16)(line_width 1))
)
(port
(pt 160 0)
(output)
(text "Y0" (rect 192 0 208 14)(font "Arial" (font_size 8)))
(text "Y0" (rect 152 24 166 40)(font "Arial" (font_size 8))(vertical))
(line (pt 160 0)(pt 160 16)(line_width 1))
)
(port
(pt 32 0)
(output)
(text "C8" (rect 192 0 207 14)(font "Arial" (font_size 8)))
(text "C8" (rect 24 24 38 39)(font "Arial" (font_size 8))(vertical))
(line (pt 32 0)(pt 32 16)(line_width 1))
)
(drawing
(rectangle (rect 16 16 216 80)(line_width 1))
)
)

975
test_ALU/test_ALU.bdf Normal file
查看文件

@ -0,0 +1,975 @@
/*
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.
*/
//#pragma file_not_in_maxplusii_format
(header "graphic" (version "1.3"))
(pin
(input)
(rect 240 248 408 264)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "A0" (rect 5 0 17 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 240 232 408 248)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "A1" (rect 5 0 17 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 240 216 408 232)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "A2" (rect 5 0 17 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 240 200 408 216)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "A3" (rect 5 0 17 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 240 184 408 200)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "A4" (rect 5 0 17 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 240 168 408 184)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "A5" (rect 5 0 17 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 240 152 408 168)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "A6" (rect 5 0 17 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 240 136 408 152)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "A7" (rect 5 0 17 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 240 376 408 392)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "B0" (rect 5 0 17 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 240 360 408 376)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "B1" (rect 5 0 17 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 240 344 408 360)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "B2" (rect 5 0 17 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 240 328 408 344)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "B3" (rect 5 0 17 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 240 312 408 328)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "B4" (rect 5 0 17 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 240 296 408 312)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "B5" (rect 5 0 17 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 240 280 408 296)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "B6" (rect 5 0 17 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 240 264 408 280)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "B7" (rect 5 0 17 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 240 488 408 504)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "S0" (rect 5 0 17 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 240 472 408 488)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "S1" (rect 5 0 17 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 240 456 408 472)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "S2" (rect 5 0 17 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 240 440 408 456)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "CP_Z" (rect 5 0 33 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 240 424 408 440)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "CP_B" (rect 5 0 33 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 240 408 408 424)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "CP_A" (rect 5 0 33 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 240 392 408 408)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "CLR" (rect 5 0 27 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6)))
)
(pin
(output)
(rect 800 312 976 328)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "FLG_Z" (rect 90 0 124 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
)
(pin
(output)
(rect 800 296 976 312)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "FLG_N" (rect 90 0 125 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
)
(pin
(output)
(rect 800 280 976 296)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "FLG_V" (rect 90 0 124 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
)
(pin
(output)
(rect 800 264 976 280)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "FLG_C" (rect 90 0 125 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
)
(pin
(output)
(rect 800 248 976 264)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "Q0" (rect 90 0 104 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
)
(pin
(output)
(rect 800 232 976 248)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "Q1" (rect 90 0 104 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
)
(pin
(output)
(rect 800 216 976 232)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "Q2" (rect 90 0 104 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
)
(pin
(output)
(rect 800 200 976 216)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "Q3" (rect 90 0 104 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
)
(pin
(output)
(rect 800 184 976 200)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "Q4" (rect 90 0 104 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
)
(pin
(output)
(rect 800 168 976 184)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "Q5" (rect 90 0 104 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
)
(pin
(output)
(rect 800 152 976 168)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "Q6" (rect 90 0 104 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
)
(pin
(output)
(rect 800 136 976 152)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "Q7" (rect 90 0 104 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
)
(symbol
(rect 568 112 696 528)
(text "ALU_3_in_1" (rect 5 0 74 14)(font "Arial" (font_size 8)))
(text "inst" (rect 8 400 25 412)(font "Arial" ))
(port
(pt 0 144)
(input)
(text "A0" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "A0" (rect 21 139 37 153)(font "Arial" (font_size 8)))
(line (pt 0 144)(pt 16 144)(line_width 1))
)
(port
(pt 0 128)
(input)
(text "A1" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "A1" (rect 21 123 37 137)(font "Arial" (font_size 8)))
(line (pt 0 128)(pt 16 128)(line_width 1))
)
(port
(pt 0 112)
(input)
(text "A2" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "A2" (rect 21 107 37 121)(font "Arial" (font_size 8)))
(line (pt 0 112)(pt 16 112)(line_width 1))
)
(port
(pt 0 96)
(input)
(text "A3" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "A3" (rect 21 91 37 105)(font "Arial" (font_size 8)))
(line (pt 0 96)(pt 16 96)(line_width 1))
)
(port
(pt 0 80)
(input)
(text "A4" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "A4" (rect 21 75 37 89)(font "Arial" (font_size 8)))
(line (pt 0 80)(pt 16 80)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "A5" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "A5" (rect 21 59 37 73)(font "Arial" (font_size 8)))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "A6" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "A6" (rect 21 43 37 57)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 32)
(input)
(text "A7" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "A7" (rect 21 27 37 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 272)
(input)
(text "B0" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "B0" (rect 21 267 36 281)(font "Arial" (font_size 8)))
(line (pt 0 272)(pt 16 272)(line_width 1))
)
(port
(pt 0 256)
(input)
(text "B1" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "B1" (rect 21 251 36 265)(font "Arial" (font_size 8)))
(line (pt 0 256)(pt 16 256)(line_width 1))
)
(port
(pt 0 240)
(input)
(text "B2" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "B2" (rect 21 235 36 249)(font "Arial" (font_size 8)))
(line (pt 0 240)(pt 16 240)(line_width 1))
)
(port
(pt 0 224)
(input)
(text "B3" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "B3" (rect 21 219 36 233)(font "Arial" (font_size 8)))
(line (pt 0 224)(pt 16 224)(line_width 1))
)
(port
(pt 0 208)
(input)
(text "B4" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "B4" (rect 21 203 36 217)(font "Arial" (font_size 8)))
(line (pt 0 208)(pt 16 208)(line_width 1))
)
(port
(pt 0 192)
(input)
(text "B5" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "B5" (rect 21 187 36 201)(font "Arial" (font_size 8)))
(line (pt 0 192)(pt 16 192)(line_width 1))
)
(port
(pt 0 176)
(input)
(text "B6" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "B6" (rect 21 171 36 185)(font "Arial" (font_size 8)))
(line (pt 0 176)(pt 16 176)(line_width 1))
)
(port
(pt 0 160)
(input)
(text "B7" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "B7" (rect 21 155 36 169)(font "Arial" (font_size 8)))
(line (pt 0 160)(pt 16 160)(line_width 1))
)
(port
(pt 0 288)
(input)
(text "CLR" (rect 0 0 23 14)(font "Arial" (font_size 8)))
(text "CLR" (rect 21 283 44 297)(font "Arial" (font_size 8)))
(line (pt 0 288)(pt 16 288)(line_width 1))
)
(port
(pt 0 304)
(input)
(text "CP_A" (rect 0 0 31 14)(font "Arial" (font_size 8)))
(text "CP_A" (rect 21 299 52 313)(font "Arial" (font_size 8)))
(line (pt 0 304)(pt 16 304)(line_width 1))
)
(port
(pt 0 320)
(input)
(text "CP_B" (rect 0 0 30 14)(font "Arial" (font_size 8)))
(text "CP_B" (rect 21 315 51 329)(font "Arial" (font_size 8)))
(line (pt 0 320)(pt 16 320)(line_width 1))
)
(port
(pt 0 336)
(input)
(text "CP_Z" (rect 0 0 30 14)(font "Arial" (font_size 8)))
(text "CP_Z" (rect 21 331 51 345)(font "Arial" (font_size 8)))
(line (pt 0 336)(pt 16 336)(line_width 1))
)
(port
(pt 0 368)
(input)
(text "S1" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "S1" (rect 21 363 36 377)(font "Arial" (font_size 8)))
(line (pt 0 368)(pt 16 368)(line_width 1))
)
(port
(pt 0 384)
(input)
(text "S0" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "S0" (rect 21 379 36 393)(font "Arial" (font_size 8)))
(line (pt 0 384)(pt 16 384)(line_width 1))
)
(port
(pt 0 352)
(input)
(text "S2" (rect 24 344 39 358)(font "Arial" (font_size 8)))
(text "S2" (rect 24 344 39 358)(font "Arial" (font_size 8)))
(line (pt 0 352)(pt 16 352)(line_width 1))
)
(port
(pt 128 144)
(output)
(text "Q0" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Q0" (rect 91 139 107 153)(font "Arial" (font_size 8)))
(line (pt 128 144)(pt 112 144)(line_width 1))
)
(port
(pt 128 128)
(output)
(text "Q1" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Q1" (rect 91 123 107 137)(font "Arial" (font_size 8)))
(line (pt 128 128)(pt 112 128)(line_width 1))
)
(port
(pt 128 112)
(output)
(text "Q2" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Q2" (rect 91 107 107 121)(font "Arial" (font_size 8)))
(line (pt 128 112)(pt 112 112)(line_width 1))
)
(port
(pt 128 96)
(output)
(text "Q3" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Q3" (rect 91 91 107 105)(font "Arial" (font_size 8)))
(line (pt 128 96)(pt 112 96)(line_width 1))
)
(port
(pt 128 80)
(output)
(text "Q4" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Q4" (rect 91 75 107 89)(font "Arial" (font_size 8)))
(line (pt 128 80)(pt 112 80)(line_width 1))
)
(port
(pt 128 64)
(output)
(text "Q5" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Q5" (rect 91 59 107 73)(font "Arial" (font_size 8)))
(line (pt 128 64)(pt 112 64)(line_width 1))
)
(port
(pt 128 48)
(output)
(text "Q6" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Q6" (rect 91 43 107 57)(font "Arial" (font_size 8)))
(line (pt 128 48)(pt 112 48)(line_width 1))
)
(port
(pt 128 32)
(output)
(text "Q7" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Q7" (rect 91 27 107 41)(font "Arial" (font_size 8)))
(line (pt 128 32)(pt 112 32)(line_width 1))
)
(port
(pt 128 176)
(output)
(text "FLG_V" (rect 0 0 40 14)(font "Arial" (font_size 8)))
(text "FLG_V" (rect 67 171 107 185)(font "Arial" (font_size 8)))
(line (pt 128 176)(pt 112 176)(line_width 1))
)
(port
(pt 128 192)
(output)
(text "FLG_N" (rect 0 0 38 14)(font "Arial" (font_size 8)))
(text "FLG_N" (rect 69 187 107 201)(font "Arial" (font_size 8)))
(line (pt 128 192)(pt 112 192)(line_width 1))
)
(port
(pt 128 208)
(output)
(text "FLG_Z" (rect 0 0 38 14)(font "Arial" (font_size 8)))
(text "FLG_Z" (rect 69 203 107 217)(font "Arial" (font_size 8)))
(line (pt 128 208)(pt 112 208)(line_width 1))
)
(port
(pt 128 160)
(output)
(text "FLG_C" (rect 0 0 38 14)(font "Arial" (font_size 8)))
(text "FLG_C" (rect 69 155 107 169)(font "Arial" (font_size 8)))
(line (pt 128 160)(pt 112 160)(line_width 1))
)
(drawing
(rectangle (rect 16 16 112 400)(line_width 1))
)
)
(connector
(pt 408 384)
(pt 568 384)
)
(connector
(pt 408 368)
(pt 568 368)
)
(connector
(pt 408 352)
(pt 568 352)
)
(connector
(pt 408 336)
(pt 568 336)
)
(connector
(pt 408 320)
(pt 568 320)
)
(connector
(pt 408 304)
(pt 568 304)
)
(connector
(pt 408 288)
(pt 568 288)
)
(connector
(pt 408 272)
(pt 568 272)
)
(connector
(pt 408 256)
(pt 568 256)
)
(connector
(pt 408 240)
(pt 568 240)
)
(connector
(pt 408 224)
(pt 568 224)
)
(connector
(pt 408 208)
(pt 568 208)
)
(connector
(pt 408 192)
(pt 568 192)
)
(connector
(pt 408 176)
(pt 568 176)
)
(connector
(pt 408 160)
(pt 568 160)
)
(connector
(pt 408 144)
(pt 568 144)
)
(connector
(pt 408 496)
(pt 568 496)
)
(connector
(pt 408 480)
(pt 568 480)
)
(connector
(pt 408 464)
(pt 568 464)
)
(connector
(pt 408 448)
(pt 568 448)
)
(connector
(pt 408 432)
(pt 568 432)
)
(connector
(pt 408 416)
(pt 568 416)
)
(connector
(pt 408 400)
(pt 568 400)
)
(connector
(pt 696 320)
(pt 800 320)
)
(connector
(pt 696 304)
(pt 800 304)
)
(connector
(pt 696 288)
(pt 800 288)
)
(connector
(pt 696 272)
(pt 800 272)
)
(connector
(pt 696 256)
(pt 800 256)
)
(connector
(pt 696 240)
(pt 800 240)
)
(connector
(pt 696 224)
(pt 800 224)
)
(connector
(pt 696 208)
(pt 800 208)
)
(connector
(pt 696 192)
(pt 800 192)
)
(connector
(pt 696 176)
(pt 800 176)
)
(connector
(pt 696 160)
(pt 800 160)
)
(connector
(pt 696 144)
(pt 800 144)
)

12
test_ALU/test_ALU.dpf Normal file
查看文件

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<pin_planner>
<pin_info>
</pin_info>
<buses>
</buses>
<group_file_association>
</group_file_association>
<pin_planner_file_specifies>
</pin_planner_file_specifies>
</pin_planner>

30
test_ALU/test_ALU.qpf Normal file
查看文件

@ -0,0 +1,30 @@
# -------------------------------------------------------------------------- #
#
# 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.
#
# -------------------------------------------------------------------------- #
#
# Quartus II
# Version 9.0 Build 235 06/17/2009 Service Pack 2 SJ Web Edition
# Date created = 16:09:17 May 17, 2022
#
# -------------------------------------------------------------------------- #
QUARTUS_VERSION = "9.0"
DATE = "16:09:17 May 17, 2022"
# Revisions
PROJECT_REVISION = "test_ALU"

91
test_ALU/test_ALU.qsf Normal file
查看文件

@ -0,0 +1,91 @@
# -------------------------------------------------------------------------- #
#
# 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.
#
# -------------------------------------------------------------------------- #
#
# Quartus II
# Version 9.0 Build 235 06/17/2009 Service Pack 2 SJ Web Edition
# Date created = 16:09:17 May 17, 2022
#
# -------------------------------------------------------------------------- #
#
# Notes:
#
# 1) The default values for assignments are stored in the file:
# test_ALU_assignment_defaults.qdf
# If this file doesn't exist, see file:
# assignment_defaults.qdf
#
# 2) Altera recommends that you do not modify this file. This
# file is updated automatically by the Quartus II software
# and any changes you make may be lost or overwritten.
#
# -------------------------------------------------------------------------- #
set_global_assignment -name FAMILY "Cyclone II"
set_global_assignment -name DEVICE EP2C8Q208C8
set_global_assignment -name TOP_LEVEL_ENTITY test_ALU
set_global_assignment -name ORIGINAL_QUARTUS_VERSION "9.0 SP2"
set_global_assignment -name PROJECT_CREATION_TIME_DATE "16:09:17 MAY 17, 2022"
set_global_assignment -name LAST_QUARTUS_VERSION "9.0 SP2"
set_global_assignment -name USE_GENERATED_PHYSICAL_CONSTRAINTS OFF -section_id eda_blast_fpga
set_global_assignment -name MIN_CORE_JUNCTION_TEMP 0
set_global_assignment -name MAX_CORE_JUNCTION_TEMP 85
set_global_assignment -name USE_CONFIGURATION_DEVICE ON
set_global_assignment -name RESERVE_ALL_UNUSED_PINS "AS INPUT TRI-STATED"
set_global_assignment -name BDF_FILE test_ALU.bdf
set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top
set_global_assignment -name PARTITION_NETLIST_TYPE SOURCE -section_id Top
set_global_assignment -name PARTITION_COLOR 16764057 -section_id Top
set_global_assignment -name LL_ROOT_REGION ON -section_id "Root Region"
set_global_assignment -name LL_MEMBER_STATE LOCKED -section_id "Root Region"
set_global_assignment -name STRATIX_DEVICE_IO_STANDARD "3.3-V LVTTL"
set_location_assignment PIN_67 -to A0
set_location_assignment PIN_68 -to A1
set_location_assignment PIN_69 -to A2
set_location_assignment PIN_70 -to A3
set_location_assignment PIN_72 -to A4
set_location_assignment PIN_74 -to A5
set_location_assignment PIN_75 -to A6
set_location_assignment PIN_76 -to A7
set_location_assignment PIN_23 -to B0
set_location_assignment PIN_24 -to B1
set_location_assignment PIN_27 -to B2
set_location_assignment PIN_28 -to B3
set_location_assignment PIN_208 -to B4
set_location_assignment PIN_129 -to B5
set_location_assignment PIN_130 -to B6
set_location_assignment PIN_107 -to B7
set_location_assignment PIN_77 -to CP_A
set_location_assignment PIN_80 -to CP_B
set_location_assignment PIN_81 -to CP_Z
set_location_assignment PIN_82 -to CLR
set_location_assignment PIN_142 -to FLG_C
set_location_assignment PIN_143 -to FLG_V
set_location_assignment PIN_144 -to FLG_N
set_location_assignment PIN_145 -to FLG_Z
set_location_assignment PIN_151 -to Q0
set_location_assignment PIN_152 -to Q1
set_location_assignment PIN_160 -to Q2
set_location_assignment PIN_161 -to Q3
set_location_assignment PIN_162 -to Q4
set_location_assignment PIN_163 -to Q5
set_location_assignment PIN_164 -to Q6
set_location_assignment PIN_165 -to Q7
set_location_assignment PIN_84 -to S0
set_location_assignment PIN_86 -to S1
set_location_assignment PIN_87 -to S2

檔案差異因為檔案過大而無法顯示 載入差異

查看文件

@ -0,0 +1,274 @@
/*
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 16 16 112 496)
(text "triple_selector_8b" (rect 5 0 106 14)(font "Arial" (font_size 8)))
(text "inst" (rect 8 464 25 476)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "A7" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "A7" (rect 21 27 37 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "B7" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "B7" (rect 21 43 36 57)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "C7" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "C7" (rect 21 59 36 73)(font "Arial" (font_size 8)))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 0 80)
(input)
(text "A6" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "A6" (rect 21 75 37 89)(font "Arial" (font_size 8)))
(line (pt 0 80)(pt 16 80)(line_width 1))
)
(port
(pt 0 96)
(input)
(text "B6" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "B6" (rect 21 91 36 105)(font "Arial" (font_size 8)))
(line (pt 0 96)(pt 16 96)(line_width 1))
)
(port
(pt 0 112)
(input)
(text "C6" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "C6" (rect 21 107 36 121)(font "Arial" (font_size 8)))
(line (pt 0 112)(pt 16 112)(line_width 1))
)
(port
(pt 0 128)
(input)
(text "A5" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "A5" (rect 21 123 37 137)(font "Arial" (font_size 8)))
(line (pt 0 128)(pt 16 128)(line_width 1))
)
(port
(pt 0 144)
(input)
(text "B5" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "B5" (rect 21 139 36 153)(font "Arial" (font_size 8)))
(line (pt 0 144)(pt 16 144)(line_width 1))
)
(port
(pt 0 160)
(input)
(text "C5" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "C5" (rect 21 155 36 169)(font "Arial" (font_size 8)))
(line (pt 0 160)(pt 16 160)(line_width 1))
)
(port
(pt 0 176)
(input)
(text "A4" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "A4" (rect 21 171 37 185)(font "Arial" (font_size 8)))
(line (pt 0 176)(pt 16 176)(line_width 1))
)
(port
(pt 0 192)
(input)
(text "B4" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "B4" (rect 21 187 36 201)(font "Arial" (font_size 8)))
(line (pt 0 192)(pt 16 192)(line_width 1))
)
(port
(pt 0 208)
(input)
(text "C4" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "C4" (rect 21 203 36 217)(font "Arial" (font_size 8)))
(line (pt 0 208)(pt 16 208)(line_width 1))
)
(port
(pt 0 224)
(input)
(text "A3" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "A3" (rect 21 219 37 233)(font "Arial" (font_size 8)))
(line (pt 0 224)(pt 16 224)(line_width 1))
)
(port
(pt 0 240)
(input)
(text "B3" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "B3" (rect 21 235 36 249)(font "Arial" (font_size 8)))
(line (pt 0 240)(pt 16 240)(line_width 1))
)
(port
(pt 0 256)
(input)
(text "C3" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "C3" (rect 21 251 36 265)(font "Arial" (font_size 8)))
(line (pt 0 256)(pt 16 256)(line_width 1))
)
(port
(pt 0 272)
(input)
(text "A2" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "A2" (rect 21 267 37 281)(font "Arial" (font_size 8)))
(line (pt 0 272)(pt 16 272)(line_width 1))
)
(port
(pt 0 288)
(input)
(text "B2" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "B2" (rect 21 283 36 297)(font "Arial" (font_size 8)))
(line (pt 0 288)(pt 16 288)(line_width 1))
)
(port
(pt 0 304)
(input)
(text "C2" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "C2" (rect 21 299 36 313)(font "Arial" (font_size 8)))
(line (pt 0 304)(pt 16 304)(line_width 1))
)
(port
(pt 0 320)
(input)
(text "A1" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "A1" (rect 21 315 37 329)(font "Arial" (font_size 8)))
(line (pt 0 320)(pt 16 320)(line_width 1))
)
(port
(pt 0 336)
(input)
(text "B1" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "B1" (rect 21 331 36 345)(font "Arial" (font_size 8)))
(line (pt 0 336)(pt 16 336)(line_width 1))
)
(port
(pt 0 352)
(input)
(text "C1" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "C1" (rect 21 347 36 361)(font "Arial" (font_size 8)))
(line (pt 0 352)(pt 16 352)(line_width 1))
)
(port
(pt 0 368)
(input)
(text "A0" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "A0" (rect 21 363 37 377)(font "Arial" (font_size 8)))
(line (pt 0 368)(pt 16 368)(line_width 1))
)
(port
(pt 0 384)
(input)
(text "B0" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "B0" (rect 21 379 36 393)(font "Arial" (font_size 8)))
(line (pt 0 384)(pt 16 384)(line_width 1))
)
(port
(pt 0 400)
(input)
(text "C0" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "C0" (rect 21 395 36 409)(font "Arial" (font_size 8)))
(line (pt 0 400)(pt 16 400)(line_width 1))
)
(port
(pt 0 416)
(input)
(text "AY" (rect 0 0 18 14)(font "Arial" (font_size 8)))
(text "AY" (rect 21 411 39 425)(font "Arial" (font_size 8)))
(line (pt 0 416)(pt 16 416)(line_width 1))
)
(port
(pt 0 432)
(input)
(text "BY" (rect 0 0 17 14)(font "Arial" (font_size 8)))
(text "BY" (rect 21 427 38 441)(font "Arial" (font_size 8)))
(line (pt 0 432)(pt 16 432)(line_width 1))
)
(port
(pt 0 448)
(input)
(text "CY" (rect 0 0 17 14)(font "Arial" (font_size 8)))
(text "CY" (rect 21 443 38 457)(font "Arial" (font_size 8)))
(line (pt 0 448)(pt 16 448)(line_width 1))
)
(port
(pt 96 32)
(output)
(text "Y7" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Y7" (rect 59 27 75 41)(font "Arial" (font_size 8)))
(line (pt 96 32)(pt 80 32)(line_width 1))
)
(port
(pt 96 48)
(output)
(text "Y6" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Y6" (rect 59 43 75 57)(font "Arial" (font_size 8)))
(line (pt 96 48)(pt 80 48)(line_width 1))
)
(port
(pt 96 64)
(output)
(text "Y5" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Y5" (rect 59 59 75 73)(font "Arial" (font_size 8)))
(line (pt 96 64)(pt 80 64)(line_width 1))
)
(port
(pt 96 80)
(output)
(text "Y4" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Y4" (rect 59 75 75 89)(font "Arial" (font_size 8)))
(line (pt 96 80)(pt 80 80)(line_width 1))
)
(port
(pt 96 96)
(output)
(text "Y3" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Y3" (rect 59 91 75 105)(font "Arial" (font_size 8)))
(line (pt 96 96)(pt 80 96)(line_width 1))
)
(port
(pt 96 112)
(output)
(text "Y2" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Y2" (rect 59 107 75 121)(font "Arial" (font_size 8)))
(line (pt 96 112)(pt 80 112)(line_width 1))
)
(port
(pt 96 128)
(output)
(text "Y1" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Y1" (rect 59 123 75 137)(font "Arial" (font_size 8)))
(line (pt 96 128)(pt 80 128)(line_width 1))
)
(port
(pt 96 144)
(output)
(text "Y0" (rect 0 0 16 14)(font "Arial" (font_size 8)))
(text "Y0" (rect 59 139 75 153)(font "Arial" (font_size 8)))
(line (pt 96 144)(pt 80 144)(line_width 1))
)
(drawing
(rectangle (rect 16 16 80 464)(line_width 1))
)
)