📄 pwm.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-2006 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 72 336 240 352)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "CLK" (rect 9 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)))
)
(pin
(input)
(rect 80 504 248 520)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "clock" (rect 9 0 34 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 80 232 248 248)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "D[7..0]" (rect 9 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 72 88 240 104)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "WR" (rect 9 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
(input)
(rect -128 112 40 128)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "CS1" (rect 9 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)))
)
(pin
(input)
(rect -128 216 40 232)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "CS0" (rect 9 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)))
)
(pin
(output)
(rect 728 504 904 520)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "AEB" (rect 90 0 111 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 584 464 728 544)
(text "lpm_dff0" (rect 48 1 104 17)(font "Arial" (font_size 10)))
(text "inst" (rect 8 64 25 76)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "data" (rect 0 0 24 14)(font "Arial" (font_size 8)))
(text "data" (rect 20 26 44 40)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "clock" (rect 0 0 29 14)(font "Arial" (font_size 8)))
(text "clock" (rect 26 42 55 56)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 144 48)
(output)
(text "q" (rect 0 0 7 14)(font "Arial" (font_size 8)))
(text "q" (rect 119 42 126 56)(font "Arial" (font_size 8)))
(line (pt 144 48)(pt 128 48)(line_width 1))
)
(drawing
(text "DFF" (rect 109 17 131 29)(font "Arial" ))
(line (pt 16 16)(pt 128 16)(line_width 1))
(line (pt 128 16)(pt 128 64)(line_width 1))
(line (pt 128 64)(pt 16 64)(line_width 1))
(line (pt 16 64)(pt 16 16)(line_width 1))
(line (pt 16 42)(pt 22 48)(line_width 1))
(line (pt 22 48)(pt 16 54)(line_width 1))
)
)
(symbol
(rect 600 304 728 400)
(text "lpm_compare1" (rect 22 79 122 95)(font "Arial" (font_size 10)))
(text "inst18" (rect 8 4 37 16)(font "Arial" ))
(port
(pt 0 48)
(input)
(text "dataa[11..0]" (rect 0 0 67 14)(font "Arial" (font_size 8)))
(text "dataa[11..0]" (rect 20 40 87 54)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 32)
(input)
(text "datab[11..0]" (rect 0 0 67 14)(font "Arial" (font_size 8)))
(text "datab[11..0]" (rect 20 24 87 38)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 128 40)
(output)
(text "ageb" (rect 0 0 28 14)(font "Arial" (font_size 8)))
(text "ageb" (rect 85 32 113 46)(font "Arial" (font_size 8)))
(line (pt 128 40)(pt 112 40)(line_width 1))
)
(drawing
(text "unsigned compare" (rect 36 67 125 79)(font "Arial" ))
(line (pt 16 80)(pt 112 80)(line_width 1))
(line (pt 112 80)(pt 112 16)(line_width 1))
(line (pt 112 16)(pt 16 16)(line_width 1))
(line (pt 16 16)(pt 16 80)(line_width 1))
)
(flipx)
)
(symbol
(rect 304 312 448 392)
(text "lpm_counter0" (rect 33 1 125 17)(font "Arial" (font_size 10)))
(text "inst11" (rect 8 64 37 76)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clock" (rect 0 0 29 14)(font "Arial" (font_size 8)))
(text "clock" (rect 26 26 55 40)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 144 40)
(output)
(text "q[11..0]" (rect 0 0 42 14)(font "Arial" (font_size 8)))
(text "q[11..0]" (rect 89 34 131 48)(font "Arial" (font_size 8)))
(line (pt 144 40)(pt 128 40)(line_width 3))
)
(port
(pt 144 56)
(output)
(text "cout" (rect 0 0 24 14)(font "Arial" (font_size 8)))
(text "cout" (rect 104 50 128 64)(font "Arial" (font_size 8)))
(line (pt 144 56)(pt 128 56)(line_width 1))
)
(drawing
(text "up counter" (rect 84 17 135 29)(font "Arial" ))
(line (pt 16 16)(pt 128 16)(line_width 1))
(line (pt 128 16)(pt 128 64)(line_width 1))
(line (pt 128 64)(pt 16 64)(line_width 1))
(line (pt 16 64)(pt 16 16)(line_width 1))
(line (pt 16 26)(pt 22 32)(line_width 1))
(line (pt 22 32)(pt 16 38)(line_width 1))
)
)
(symbol
(rect 304 200 440 280)
(text "74377b" (rect 49 0 98 16)(font "Arial" (font_size 10)))
(text "inst6" (rect 3 69 21 79)(font "Arial" (font_size 6)))
(port
(pt 0 56)
(input)
(text "CLK" (rect 20 48 43 62)(font "Arial" (font_size 8)))
(text "CLK" (rect 20 48 43 62)(font "Arial" (font_size 8)))
(line (pt 0 56)(pt 16 56)(line_width 1))
)
(port
(pt 0 24)
(input)
(text "EN" (rect 20 16 35 30)(font "Arial" (font_size 8)))
(text "EN" (rect 20 16 35 30)(font "Arial" (font_size 8)))
(line (pt 0 24)(pt 8 24)(line_width 1))
)
(port
(pt 0 40)
(input)
(text "D[8..1]" (rect 20 32 56 46)(font "Arial" (font_size 8)))
(text "D[8..1]" (rect 20 32 56 46)(font "Arial" (font_size 8)))
(line (pt 0 40)(pt 16 40)(line_width 3))
)
(port
(pt 136 24)
(output)
(text "Q[8..1]" (rect 83 16 120 30)(font "Arial" (font_size 8)))
(text "Q[8..1]" (rect 83 16 120 30)(font "Arial" (font_size 8)))
(line (pt 120 24)(pt 136 24)(line_width 3))
)
(drawing
(text "OCTAL D-FF" (rect 38 65 109 79)(font "Arial" (font_size 8)))
(line (pt 16 16)(pt 120 16)(line_width 1))
(line (pt 16 64)(pt 120 64)(line_width 1))
(line (pt 16 64)(pt 16 16)(line_width 1))
(line (pt 120 64)(pt 120 16)(line_width 1))
(circle (rect 8 20 16 28)(line_width 1))
)
)
(symbol
(rect 304 96 440 176)
(text "74377b" (rect 49 0 98 16)(font "Arial" (font_size 10)))
(text "inst7" (rect 3 69 21 79)(font "Arial" (font_size 6)))
(port
(pt 0 56)
(input)
(text "CLK" (rect 20 48 43 62)(font "Arial" (font_size 8)))
(text "CLK" (rect 20 48 43 62)(font "Arial" (font_size 8)))
(line (pt 0 56)(pt 16 56)(line_width 1))
)
(port
(pt 0 24)
(input)
(text "EN" (rect 20 16 35 30)(font "Arial" (font_size 8)))
(text "EN" (rect 20 16 35 30)(font "Arial" (font_size 8)))
(line (pt 0 24)(pt 8 24)(line_width 1))
)
(port
(pt 0 40)
(input)
(text "D[8..1]" (rect 20 32 56 46)(font "Arial" (font_size 8)))
(text "D[8..1]" (rect 20 32 56 46)(font "Arial" (font_size 8)))
(line (pt 0 40)(pt 16 40)(line_width 3))
)
(port
(pt 136 24)
(output)
(text "Q[8..1]" (rect 83 16 120 30)(font "Arial" (font_size 8)))
(text "Q[8..1]" (rect 83 16 120 30)(font "Arial" (font_size 8)))
(line (pt 120 24)(pt 136 24)(line_width 3))
)
(drawing
(text "OCTAL D-FF" (rect 38 65 109 79)(font "Arial" (font_size 8)))
(line (pt 16 16)(pt 120 16)(line_width 1))
(line (pt 16 64)(pt 120 64)(line_width 1))
(line (pt 16 64)(pt 16 16)(line_width 1))
(line (pt 120 64)(pt 120 16)(line_width 1))
(circle (rect 8 20 16 28)(line_width 1))
)
)
(connector
(pt 304 344)
(pt 240 344)
)
(connector
(text "Q[7..0]" (rect 450 208 484 220)(font "Arial" ))
(pt 440 224)
(pt 528 224)
(bus)
)
(connector
(text "Q[15..8]" (rect 450 104 490 116)(font "Arial" ))
(pt 440 120)
(pt 528 120)
(bus)
)
(connector
(pt 304 240)
(pt 256 240)
(bus)
)
(connector
(pt 256 240)
(pt 248 240)
(bus)
)
(connector
(pt 256 136)
(pt 304 136)
(bus)
)
(connector
(pt 272 256)
(pt 304 256)
)
(connector
(pt 448 352)
(pt 600 352)
(bus)
)
(connector
(pt 584 496)
(pt 528 496)
)
(connector
(pt 528 496)
(pt 528 440)
)
(connector
(pt 528 440)
(pt 808 440)
)
(connector
(pt 808 440)
(pt 808 344)
)
(connector
(pt 728 344)
(pt 808 344)
)
(connector
(pt 248 512)
(pt 584 512)
)
(connector
(pt 256 136)
(pt 256 240)
(bus)
)
(connector
(pt 272 152)
(pt 304 152)
)
(connector
(pt 272 96)
(pt 272 152)
)
(connector
(pt 272 152)
(pt 272 256)
)
(connector
(pt 272 96)
(pt 240 96)
)
(connector
(pt 40 120)
(pt 304 120)
)
(connector
(pt 40 224)
(pt 304 224)
)
(connector
(text "Q[11..0]" (rect 514 320 554 332)(font "Arial" ))
(pt 600 336)
(pt 504 336)
(bus)
)
(junction (pt 256 240))
(junction (pt 272 152))
(text "地址选择1" (rect 64 128 127 142)(font "Arial" (font_size 8)))
(text "地址选择0" (rect 80 200 143 214)(font "Arial" (font_size 8)))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -