📄 testg8k.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-2005 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 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 "graphic" (version "1.3"))
(pin
(input)
(rect 0 192 168 208)
(text "INPUT" (rect 133 -1 161 9)(font "Arial" (font_size 6)))
(text "clkin" (rect 50 1 74 15)(font "Arial" (font_size 8)))
(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 896 200 1072 216)
(text "OUTPUT" (rect 1 -1 39 9)(font "Arial" (font_size 6)))
(text "g8k" (rect 90 0 110 14)(font "Arial" (font_size 8)))
(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 280 176 488 240)
(text "DIVISION" (rect 66 -1 141 15)(font "Courier New" (font_size 10)(bold)))
(text "2" (rect 0 55 5 67)(font "Courier New" (bold)))
(port
(pt 0 24)
(input)
(text "div_in" (rect 20 20 55 32)(font "Courier New" (bold)))
(text "div_in" (rect 20 20 55 32)(font "Courier New" (bold)))
(line (pt 0 24)(pt 16 24)(line_width 1))
)
(port
(pt 0 40)
(input)
(text "div_cnt[7..0]" (rect 20 36 96 48)(font "Courier New" (bold)))
(text "div_cnt[7..0]" (rect 20 36 96 48)(font "Courier New" (bold)))
(line (pt 0 40)(pt 16 40)(line_width 3))
)
(port
(pt 208 24)
(output)
(text "div_out" (rect 155 20 196 32)(font "Courier New" (bold)))
(text "div_out" (rect 155 20 196 32)(font "Courier New" (bold)))
(line (pt 192 24)(pt 208 24)(line_width 1))
)
(drawing
(line (pt 16 48)(pt 192 48)(line_width 1))
(line (pt 16 16)(pt 192 16)(line_width 1))
(line (pt 16 48)(pt 16 16)(line_width 1))
(line (pt 192 48)(pt 192 16)(line_width 1))
)
)
(symbol
(rect 280 296 392 344)
(text "LPM_CONSTANT" (rect 4 0 125 16)(font "Arial" (font_size 10)))
(text "1" (rect 101 38 105 48)(font "Arial" (font_size 6)))
(port
(pt 0 32)
(output)
(text "result[LPM_WIDTH-1..0]" (rect 6 17 139 31)(font "Arial" (font_size 8)))
(text "result[]" (rect 6 17 44 31)(font "Arial" (font_size 8)))
(line (pt 48 32)(pt 0 32)(line_width 3))
)
(parameter
"LPM_CVALUE"
"144"
"Unsigned value to which outputs will be set"
)
(parameter
"LPM_WIDTH"
"8"
"Width of output, any integer > 0"
" 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" " 9" "10" "11" "12" "13" "14" "15" "16" "20" "24" "28" "32"
)
(drawing
(text "(cvalue)" (rect 54 24 101 38)(font "Arial" (font_size 8)))
(line (pt 96 24)(pt 48 24)(line_width 1))
(line (pt 96 40)(pt 48 40)(line_width 1))
(line (pt 48 40)(pt 48 24)(line_width 1))
(line (pt 96 40)(pt 96 24)(line_width 1))
)
(flipy)
(annotation_block (parameter)(rect 392 248 504 296))
)
(symbol
(rect 600 184 664 224)
(text "AND2" (rect 1 -1 25 9)(font "Arial" (font_size 6)))
(text "4" (rect 1 30 5 40)(font "Arial" (font_size 6)))
(port
(pt 0 16)
(input)
(text "IN1" (rect 6 6 23 18)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 6 6 23 18)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 14 16)(line_width 1))
)
(port
(pt 0 32)
(input)
(text "IN2" (rect 6 22 23 34)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 6 22 23 34)(font "Courier New" (bold))(invisible))
(line (pt 0 32)(pt 14 32)(line_width 1))
)
(port
(pt 64 24)
(output)
(text "OUT" (rect 51 14 68 26)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 51 14 68 26)(font "Courier New" (bold))(invisible))
(line (pt 42 24)(pt 64 24)(line_width 1))
)
(drawing
(line (pt 14 36)(pt 31 36)(line_width 1))
(line (pt 14 12)(pt 32 12)(line_width 1))
(line (pt 14 36)(pt 14 12)(line_width 1))
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37)(line_width 1))
)
)
(symbol
(rect 736 192 784 224)
(text "NOT" (rect 1 -1 21 9)(font "Arial" (font_size 6)))
(text "3" (rect 1 22 5 32)(font "Arial" (font_size 6)))
(port
(pt 0 16)
(input)
(text "IN" (rect 0 6 11 18)(font "Courier New" (bold))(invisible))
(text "IN" (rect 0 6 11 18)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 13 16)(line_width 1))
)
(port
(pt 48 16)
(output)
(text "OUT" (rect 41 6 58 18)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 41 6 58 18)(font "Courier New" (bold))(invisible))
(line (pt 39 16)(pt 48 16)(line_width 1))
)
(drawing
(text "2" (rect 0 6 5 18)(font "Courier New" (bold))(invisible))
(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))
)
)
(connector
(pt 224 328)
(pt 280 328)
(bus)
)
(connector
(pt 224 216)
(pt 280 216)
(bus)
)
(connector
(pt 536 216)
(pt 600 216)
)
(connector
(pt 664 208)
(pt 736 208)
)
(connector
(pt 784 208)
(pt 896 208)
)
(connector
(pt 488 200)
(pt 600 200)
)
(connector
(pt 200 160)
(pt 536 160)
)
(connector
(pt 168 200)
(pt 200 200)
)
(connector
(pt 200 200)
(pt 280 200)
)
(connector
(pt 224 328)
(pt 224 216)
(bus)
)
(connector
(pt 536 216)
(pt 536 160)
)
(connector
(pt 200 200)
(pt 200 160)
)
(connector
(pt 656 208)
(pt 664 208)
)
(connector
(pt 152 200)
(pt 168 200)
)
(junction (pt 200 200))
(junction (pt 664 208))
(junction (pt 168 200))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -