dds.bdf
来自「实现任意小数分频的VHDL源代码,我自己写的,仿真结果是正确的,希望对大家有用!」· BDF 代码 · 共 216 行
BDF
216 行
/*
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.
*/
(header "graphic" (version "1.3"))
(pin
(input)
(rect 72 224 240 240)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "inclk" (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
(input)
(rect 72 264 240 280)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "rst" (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 72 280 240 296)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "aclr" (rect 5 0 22 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 240 240 256)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "fcw[15..0]" (rect 5 0 54 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 624 224 800 240)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "outclk" (rect 90 0 119 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 304 176 464 304)
(text "lpm_add_sub2" (rect 38 1 137 17)(font "Arial" (font_size 10)))
(text "inst" (rect 8 112 25 124)(font "Arial" ))
(port
(pt 0 40)
(input)
(text "dataa[15..0]" (rect 0 0 67 14)(font "Arial" (font_size 8)))
(text "dataa[15..0]" (rect 4 27 71 41)(font "Arial" (font_size 8)))
(line (pt 0 40)(pt 64 40)(line_width 3))
)
(port
(pt 0 72)
(input)
(text "datab[15..0]" (rect 0 0 67 14)(font "Arial" (font_size 8)))
(text "datab[15..0]" (rect 4 59 71 73)(font "Arial" (font_size 8)))
(line (pt 0 72)(pt 64 72)(line_width 3))
)
(port
(pt 0 56)
(input)
(text "clock" (rect 0 0 29 14)(font "Arial" (font_size 8)))
(text "clock" (rect 4 43 33 57)(font "Arial" (font_size 8)))
(line (pt 0 56)(pt 64 56)(line_width 1))
)
(port
(pt 0 96)
(input)
(text "clken" (rect 0 0 29 14)(font "Arial" (font_size 8)))
(text "clken" (rect 4 83 33 97)(font "Arial" (font_size 8)))
(line (pt 0 96)(pt 74 96)(line_width 1))
)
(port
(pt 0 112)
(input)
(text "aclr" (rect 0 0 21 14)(font "Arial" (font_size 8)))
(text "aclr" (rect 4 99 25 113)(font "Arial" (font_size 8)))
(line (pt 0 112)(pt 85 112)(line_width 1))
)
(port
(pt 160 56)
(output)
(text "result[15..0]" (rect 0 0 67 14)(font "Arial" (font_size 8)))
(text "result[15..0]" (rect 100 43 167 57)(font "Arial" (font_size 8)))
(line (pt 160 56)(pt 96 56)(line_width 3))
)
(drawing
(text "A" (rect 66 34 75 48)(font "Arial" (font_size 8)))
(text "B" (rect 66 66 74 80)(font "Arial" (font_size 8)))
(text "A+B" (rect 73 50 97 64)(font "Arial" (font_size 8)))
(line (pt 64 32)(pt 96 40)(line_width 1))
(line (pt 96 40)(pt 96 72)(line_width 1))
(line (pt 96 72)(pt 64 80)(line_width 1))
(line (pt 64 80)(pt 64 32)(line_width 1))
(line (pt 74 96)(pt 74 77)(line_width 1))
(line (pt 85 112)(pt 85 74)(line_width 1))
(line (pt 64 50)(pt 70 56)(line_width 1))
(line (pt 70 56)(pt 64 62)(line_width 1))
)
)
(connector
(pt 472 160)
(pt 472 232)
(bus)
)
(connector
(pt 304 248)
(pt 240 248)
(bus)
)
(connector
(pt 304 232)
(pt 240 232)
)
(connector
(pt 304 272)
(pt 240 272)
)
(connector
(pt 304 288)
(pt 240 288)
)
(connector
(pt 464 232)
(pt 472 232)
(bus)
)
(connector
(text "outdata[15..0]" (rect 490 216 558 228)(font "Arial" ))
(pt 472 232)
(pt 528 232)
(bus)
)
(connector
(text "outdata[15]" (rect 575 216 630 228)(font "Arial" ))
(pt 624 232)
(pt 560 232)
)
(connector
(pt 472 160)
(pt 240 160)
(bus)
)
(connector
(pt 240 160)
(pt 240 216)
(bus)
)
(connector
(pt 240 216)
(pt 304 216)
(bus)
)
(junction (pt 472 232))
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?