📄 exercise_5_3_4_3.bdf
字号:
/*
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-2007 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 0 40 168 56)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "A[7..0]" (rect 5 0 38 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 0 56 168 72)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "B[7..0]" (rect 5 0 38 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 0 72 168 88)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "S[3..0]" (rect 5 0 38 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 0 88 168 104)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "M" (rect 5 0 13 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 0 104 168 120)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "CN" (rect 5 0 21 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 0 184 168 200)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "A[15..8]" (rect 5 0 43 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 0 200 168 216)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "B[15..8]" (rect 5 0 43 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 0 344 168 360)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "B[23..16]" (rect 5 0 49 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 0 328 168 344)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "A[23..16]" (rect 5 0 49 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 528 40 704 56)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "F[7..0]" (rect 90 0 123 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 528 184 704 200)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "F[15..8]" (rect 90 0 128 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 528 328 704 344)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "F[23..16]" (rect 90 0 134 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 528 344 704 360)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "CO" (rect 90 0 106 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 320 16 440 144)
(text "ALU" (rect 5 0 26 12)(font "Arial" ))
(text "inst" (rect 8 112 25 124)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "A[7..0]" (rect 0 0 33 12)(font "Arial" ))
(text "A[7..0]" (rect 21 27 54 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "B[7..0]" (rect 0 0 33 12)(font "Arial" ))
(text "B[7..0]" (rect 21 43 54 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "S[3..0]" (rect 0 0 33 12)(font "Arial" ))
(text "S[3..0]" (rect 21 59 54 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 0 80)
(input)
(text "M" (rect 0 0 8 12)(font "Arial" ))
(text "M" (rect 21 75 29 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 1))
)
(port
(pt 0 96)
(input)
(text "CN" (rect 0 0 16 12)(font "Arial" ))
(text "CN" (rect 21 91 37 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 1))
)
(port
(pt 120 32)
(output)
(text "F[7..0]" (rect 0 0 33 12)(font "Arial" ))
(text "F[7..0]" (rect 66 27 99 39)(font "Arial" ))
(line (pt 120 32)(pt 104 32)(line_width 3))
)
(port
(pt 120 48)
(output)
(text "CO" (rect 0 0 16 12)(font "Arial" ))
(text "CO" (rect 83 43 99 55)(font "Arial" ))
(line (pt 120 48)(pt 104 48)(line_width 1))
)
(drawing
(rectangle (rect 16 16 104 112)(line_width 1))
)
)
(symbol
(rect 320 160 440 288)
(text "ALU" (rect 5 0 26 12)(font "Arial" ))
(text "inst1" (rect 8 112 31 124)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "A[7..0]" (rect 0 0 33 12)(font "Arial" ))
(text "A[7..0]" (rect 21 27 54 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "B[7..0]" (rect 0 0 33 12)(font "Arial" ))
(text "B[7..0]" (rect 21 43 54 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "S[3..0]" (rect 0 0 33 12)(font "Arial" ))
(text "S[3..0]" (rect 21 59 54 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 0 80)
(input)
(text "M" (rect 0 0 8 12)(font "Arial" ))
(text "M" (rect 21 75 29 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 1))
)
(port
(pt 0 96)
(input)
(text "CN" (rect 0 0 16 12)(font "Arial" ))
(text "CN" (rect 21 91 37 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 1))
)
(port
(pt 120 32)
(output)
(text "F[7..0]" (rect 0 0 33 12)(font "Arial" ))
(text "F[7..0]" (rect 66 27 99 39)(font "Arial" ))
(line (pt 120 32)(pt 104 32)(line_width 3))
)
(port
(pt 120 48)
(output)
(text "CO" (rect 0 0 16 12)(font "Arial" ))
(text "CO" (rect 83 43 99 55)(font "Arial" ))
(line (pt 120 48)(pt 104 48)(line_width 1))
)
(drawing
(rectangle (rect 16 16 104 112)(line_width 1))
)
)
(symbol
(rect 320 304 440 432)
(text "ALU" (rect 5 0 26 12)(font "Arial" ))
(text "inst2" (rect 8 112 31 124)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "A[7..0]" (rect 0 0 33 12)(font "Arial" ))
(text "A[7..0]" (rect 21 27 54 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "B[7..0]" (rect 0 0 33 12)(font "Arial" ))
(text "B[7..0]" (rect 21 43 54 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "S[3..0]" (rect 0 0 33 12)(font "Arial" ))
(text "S[3..0]" (rect 21 59 54 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 0 80)
(input)
(text "M" (rect 0 0 8 12)(font "Arial" ))
(text "M" (rect 21 75 29 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 1))
)
(port
(pt 0 96)
(input)
(text "CN" (rect 0 0 16 12)(font "Arial" ))
(text "CN" (rect 21 91 37 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 1))
)
(port
(pt 120 32)
(output)
(text "F[7..0]" (rect 0 0 33 12)(font "Arial" ))
(text "F[7..0]" (rect 66 27 99 39)(font "Arial" ))
(line (pt 120 32)(pt 104 32)(line_width 3))
)
(port
(pt 120 48)
(output)
(text "CO" (rect 0 0 16 12)(font "Arial" ))
(text "CO" (rect 83 43 99 55)(font "Arial" ))
(line (pt 120 48)(pt 104 48)(line_width 1))
)
(drawing
(rectangle (rect 16 16 104 112)(line_width 1))
)
)
(connector
(pt 320 48)
(pt 168 48)
(bus)
)
(connector
(pt 320 64)
(pt 168 64)
(bus)
)
(connector
(pt 320 336)
(pt 168 336)
(bus)
)
(connector
(pt 168 192)
(pt 320 192)
(bus)
)
(connector
(pt 168 208)
(pt 320 208)
(bus)
)
(connector
(pt 320 352)
(pt 168 352)
(bus)
)
(connector
(pt 264 368)
(pt 320 368)
(bus)
)
(connector
(pt 320 80)
(pt 264 80)
(bus)
)
(connector
(pt 264 80)
(pt 168 80)
(bus)
)
(connector
(pt 320 224)
(pt 264 224)
(bus)
)
(connector
(pt 264 80)
(pt 264 224)
(bus)
)
(connector
(pt 264 224)
(pt 264 368)
(bus)
)
(connector
(pt 232 240)
(pt 320 240)
)
(connector
(pt 320 96)
(pt 232 96)
)
(connector
(pt 232 96)
(pt 168 96)
)
(connector
(pt 232 384)
(pt 320 384)
)
(connector
(pt 232 96)
(pt 232 240)
)
(connector
(pt 232 240)
(pt 232 384)
)
(connector
(pt 440 64)
(pt 464 64)
)
(connector
(pt 464 64)
(pt 464 152)
)
(connector
(pt 464 152)
(pt 288 152)
)
(connector
(pt 320 256)
(pt 288 256)
)
(connector
(pt 288 152)
(pt 288 256)
)
(connector
(pt 440 208)
(pt 464 208)
)
(connector
(pt 464 208)
(pt 464 296)
)
(connector
(pt 464 296)
(pt 288 296)
)
(connector
(pt 288 296)
(pt 288 400)
)
(connector
(pt 288 400)
(pt 320 400)
)
(connector
(pt 440 48)
(pt 528 48)
(bus)
)
(connector
(pt 440 192)
(pt 528 192)
(bus)
)
(connector
(pt 440 336)
(pt 528 336)
(bus)
)
(connector
(pt 440 352)
(pt 528 352)
)
(connector
(pt 320 112)
(pt 168 112)
)
(junction (pt 264 80))
(junction (pt 264 224))
(junction (pt 232 96))
(junction (pt 232 240))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -