?? digitalclock.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 -8 -48 160 -32)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "reset" (rect 5 0 29 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)))
(annotation_block (location)(rect -96 -32 -8 0))
)
(pin
(input)
(rect -8 -64 160 -48)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "clock" (rect 5 0 30 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)))
(annotation_block (location)(rect -96 -96 -8 -64))
)
(pin
(output)
(rect 1208 296 1390 312)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "seg7led_bits[7..0]" (rect 90 0 177 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))
)
(annotation_block (location)(rect 1304 168 1392 296))
)
(pin
(output)
(rect 1208 432 1390 448)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "led_cs[5..0]" (rect 90 0 147 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))
)
(annotation_block (location)(rect 1304 328 1392 432))
)
(pin
(output)
(rect 1208 144 1390 160)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "led_bits[7..0]" (rect 90 0 153 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))
)
(annotation_block (location)(rect 1304 16 1392 144))
)
(symbol
(rect 192 -88 336 8)
(text "counter" (rect 5 0 41 12)(font "Arial" ))
(text "inst" (rect 8 80 25 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clock" (rect 0 0 25 12)(font "Arial" ))
(text "clock" (rect 21 27 46 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "reset" (rect 0 0 24 12)(font "Arial" ))
(text "reset" (rect 21 43 45 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 144 32)
(bidir)
(text "counter[3..0]" (rect 0 0 62 12)(font "Arial" ))
(text "counter[3..0]" (rect 61 27 123 39)(font "Arial" ))
(line (pt 144 32)(pt 128 32)(line_width 3))
)
(port
(pt 144 48)
(bidir)
(text "carrier" (rect 0 0 30 12)(font "Arial" ))
(text "carrier" (rect 93 43 123 55)(font "Arial" ))
(line (pt 144 48)(pt 128 48)(line_width 1))
)
(parameter
"divisor"
"24000"
""
)
(parameter
"inner_counter_width"
"16"
""
)
(parameter
"unit"
"\"1001\""
""
)
(drawing
(rectangle (rect 16 16 128 80)(line_width 1))
)
(annotation_block (parameter)(rect 336 -144 480 -88))
)
(symbol
(rect 192 272 336 368)
(text "counter" (rect 5 0 41 12)(font "Arial" ))
(text "inst2" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clock" (rect 0 0 25 12)(font "Arial" ))
(text "clock" (rect 21 27 46 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "reset" (rect 0 0 24 12)(font "Arial" ))
(text "reset" (rect 21 43 45 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 144 32)
(bidir)
(text "counter[3..0]" (rect 0 0 62 12)(font "Arial" ))
(text "counter[3..0]" (rect 61 27 123 39)(font "Arial" ))
(line (pt 144 32)(pt 128 32)(line_width 3))
)
(port
(pt 144 48)
(bidir)
(text "carrier" (rect 0 0 30 12)(font "Arial" ))
(text "carrier" (rect 93 43 123 55)(font "Arial" ))
(line (pt 144 48)(pt 128 48)(line_width 1))
)
(parameter
"divisor"
"10"
""
)
(parameter
"inner_counter_width"
"4"
""
)
(parameter
"unit"
"\"1001\""
""
)
(drawing
(rectangle (rect 16 16 128 80)(line_width 1))
)
(annotation_block (parameter)(rect 336 216 480 272))
)
(symbol
(rect 192 512 336 608)
(text "counter" (rect 5 0 41 12)(font "Arial" ))
(text "inst4" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clock" (rect 0 0 25 12)(font "Arial" ))
(text "clock" (rect 21 27 46 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "reset" (rect 0 0 24 12)(font "Arial" ))
(text "reset" (rect 21 43 45 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 144 32)
(bidir)
(text "counter[3..0]" (rect 0 0 62 12)(font "Arial" ))
(text "counter[3..0]" (rect 61 27 123 39)(font "Arial" ))
(line (pt 144 32)(pt 128 32)(line_width 3))
)
(port
(pt 144 48)
(bidir)
(text "carrier" (rect 0 0 30 12)(font "Arial" ))
(text "carrier" (rect 93 43 123 55)(font "Arial" ))
(line (pt 144 48)(pt 128 48)(line_width 1))
)
(parameter
"divisor"
"10"
""
)
(parameter
"inner_counter_width"
"4"
""
)
(parameter
"unit"
"\"1001\""
""
)
(drawing
(rectangle (rect 16 16 128 80)(line_width 1))
)
(annotation_block (parameter)(rect 336 456 480 512))
)
(symbol
(rect 192 872 336 968)
(text "counter" (rect 5 0 41 12)(font "Arial" ))
(text "inst6" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clock" (rect 0 0 25 12)(font "Arial" ))
(text "clock" (rect 21 27 46 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "reset" (rect 0 0 24 12)(font "Arial" ))
(text "reset" (rect 21 43 45 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 144 32)
(bidir)
(text "counter[3..0]" (rect 0 0 62 12)(font "Arial" ))
(text "counter[3..0]" (rect 61 27 123 39)(font "Arial" ))
(line (pt 144 32)(pt 128 32)(line_width 3))
)
(port
(pt 144 48)
(bidir)
(text "carrier" (rect 0 0 30 12)(font "Arial" ))
(text "carrier" (rect 93 43 123 55)(font "Arial" ))
(line (pt 144 48)(pt 128 48)(line_width 1))
)
(parameter
"divisor"
"10"
""
)
(parameter
"inner_counter_width"
"4"
""
)
(parameter
"unit"
"\"1001\""
""
)
(drawing
(rectangle (rect 16 16 128 80)(line_width 1))
)
(annotation_block (parameter)(rect 336 816 480 872))
)
(symbol
(rect 192 752 336 848)
(text "counter" (rect 5 0 41 12)(font "Arial" ))
(text "inst7" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clock" (rect 0 0 25 12)(font "Arial" ))
(text "clock" (rect 21 27 46 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "reset" (rect 0 0 24 12)(font "Arial" ))
(text "reset" (rect 21 43 45 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 144 32)
(bidir)
(text "counter[3..0]" (rect 0 0 62 12)(font "Arial" ))
(text "counter[3..0]" (rect 61 27 123 39)(font "Arial" ))
(line (pt 144 32)(pt 128 32)(line_width 3))
)
(port
(pt 144 48)
(bidir)
(text "carrier" (rect 0 0 30 12)(font "Arial" ))
(text "carrier" (rect 93 43 123 55)(font "Arial" ))
(line (pt 144 48)(pt 128 48)(line_width 1))
)
(parameter
"divisor"
"10"
""
)
(parameter
"inner_counter_width"
"4"
""
)
(parameter
"unit"
"\"1001\""
""
)
(drawing
(rectangle (rect 16 16 128 80)(line_width 1))
)
(annotation_block (parameter)(rect 336 696 480 752))
)
(symbol
(rect 584 272 864 464)
(text "choice1from6" (rect 5 0 72 12)(font "Arial" ))
(text "inst8" (rect 8 176 31 188)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "data_in0[bitwidth-1..0]" (rect 0 0 107 12)(font "Arial" ))
(text "data_in0[bitwidth-1..0]" (rect 21 27 128 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "data_in1[bitwidth-1..0]" (rect 0 0 107 12)(font "Arial" ))
(text "data_in1[bitwidth-1..0]" (rect 21 43 128 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "data_in2[bitwidth-1..0]" (rect 0 0 107 12)(font "Arial" ))
(text "data_in2[bitwidth-1..0]" (rect 21 59 128 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 0 80)
(input)
(text "data_in3[bitwidth-1..0]" (rect 0 0 107 12)(font "Arial" ))
(text "data_in3[bitwidth-1..0]" (rect 21 75 128 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 3))
)
(port
(pt 0 96)
(input)
(text "data_in4[bitwidth-1..0]" (rect 0 0 107 12)(font "Arial" ))
(text "data_in4[bitwidth-1..0]" (rect 21 91 128 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 3))
)
(port
(pt 0 112)
(input)
(text "data_in5[bitwidth-1..0]" (rect 0 0 107 12)(font "Arial" ))
(text "data_in5[bitwidth-1..0]" (rect 21 107 128 119)(font "Arial" ))
(line (pt 0 112)(pt 16 112)(line_width 3))
)
(port
(pt 0 128)
(input)
(text "clk" (rect 0 0 14 12)(font "Arial" ))
(text "clk" (rect 21 123 35 135)(font "Arial" ))
(line (pt 0 128)(pt 16 128)(line_width 1))
)
(port
(pt 0 144)
(input)
(text "reset" (rect 0 0 24 12)(font "Arial" ))
(text "reset" (rect 21 139 45 151)(font "Arial" ))
(line (pt 0 144)(pt 16 144)(line_width 1))
)
(port
(pt 280 32)
(output)
(text "led_bits[bitwidth-1..0]" (rect 0 0 103 12)(font "Arial" ))
(text "led_bits[bitwidth-1..0]" (rect 156 27 259 39)(font "Arial" ))
(line (pt 280 32)(pt 264 32)(line_width 3))
)
(port
(pt 280 48)
(output)
(text "led_cs[digital_num-1..0]" (rect 0 0 116 12)(font "Arial" ))
(text "led_cs[digital_num-1..0]" (rect 143 43 259 55)(font "Arial" ))
(line (pt 280 48)(pt 264 48)(line_width 3))
)
(port
(pt 280 64)
(output)
(text "dp" (rect 0 0 11 12)(font "Arial" ))
(text "dp" (rect 248 59 259 71)(font "Arial" ))
(line (pt 280 64)(pt 264 64)(line_width 1))
)
(parameter
"bitwidth"
"4"
""
)
(parameter
"digital_num"
"6"
""
)
(drawing
(rectangle (rect 16 16 264 176)(line_width 1))
)
(annotation_block (parameter)(rect 864 224 968 272))
)
(symbol
(rect 976 272 1168 368)
(text "seg7_leddrv" (rect 5 0 65 12)(font "Arial" ))
(text "inst9" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "data[3..0]" (rect 0 0 47 12)(font "Arial" ))
(text "data[3..0]" (rect 21 27 68 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "dp" (rect 0 0 11 12)(font "Arial" ))
(text "dp" (rect 21 43 32 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "reset" (rect 0 0 24 12)(font "Arial" ))
(text "reset" (rect 21 59 45 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 192 32)
(output)
(text "seg7led_bits[7..0]" (rect 0 0 87 12)(font "Arial" ))
(text "seg7led_bits[7..0]" (rect 84 27 171 39)(font "Arial" ))
(line (pt 192 32)(pt 176 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 176 80)(line_width 1))
)
)
(symbol
(rect 976 120 1144 216)
(text "leddrv" (rect 5 0 35 12)(font "Arial" ))
(text "inst10" (rect 8 80 37 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "data[3..0]" (rect 0 0 47 12)(font "Arial" ))
(text "data[3..0]" (rect 21 27 68 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "reset" (rect 0 0 24 12)(font "Arial" ))
(text "reset" (rect 21 43 45 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 168 32)
(output)
(text "led_bits[7..0]" (rect 0 0 63 12)(font "Arial" ))
(text "led_bits[7..0]" (rect 84 27 147 39)(font "Arial" ))
(line (pt 168 32)(pt 152 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 152 80)(line_width 1))
)
)
(symbol
(rect 192 632 336 728)
(text "counter" (rect 5 0 41 12)(font "Arial" ))
(text "inst5" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clock" (rect 0 0 25 12)(font "Arial" ))
(text "clock" (rect 21 27 46 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "reset" (rect 0 0 24 12)(font "Arial" ))
(text "reset" (rect 21 43 45 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 144 32)
(bidir)
(text "counter[3..0]" (rect 0 0 62 12)(font "Arial" ))
(text "counter[3..0]" (rect 61 27 123 39)(font "Arial" ))
(line (pt 144 32)(pt 128 32)(line_width 3))
)
(port
(pt 144 48)
(bidir)
(text "carrier" (rect 0 0 30 12)(font "Arial" ))
(text "carrier" (rect 93 43 123 55)(font "Arial" ))
(line (pt 144 48)(pt 128 48)(line_width 1))
)
(parameter
"divisor"
"6"
""
)
(parameter
"inner_counter_width"
"4"
""
)
(parameter
"unit"
"\"0101\""
""
)
(drawing
(rectangle (rect 16 16 128 80)(line_width 1))
)
(annotation_block (parameter)(rect 336 576 480 632))
)
(symbol
(rect 192 32 336 128)
(text "counter" (rect 5 0 41 12)(font "Arial" ))
(text "inst11" (rect 8 80 37 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clock" (rect 0 0 25 12)(font "Arial" ))
(text "clock" (rect 21 27 46 39)(font "Arial" ))
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -