?? initial_block.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 80 96 248 112)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "clk50mhz" (rect 9 0 55 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 136 248 152)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "reset_initial" (rect 9 0 64 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 176 248 192)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "sd_cmd_in" (rect 9 0 62 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 128 224 304 240)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "initial_complete" (rect 90 0 165 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 128 312 304 328)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "sd_clk" (rect 90 0 121 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 128 352 304 368)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "send_enable" (rect 90 0 151 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 128 392 304 408)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "powerup_done" (rect 90 0 159 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 120 440 296 456)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "time1ms_done" (rect 90 0 161 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 144 264 320 280)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "sd_cmd_out" (rect 90 0 150 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 936 -8 1048 88)
(text "timer" (rect 5 0 29 12)(font "Arial" ))
(text "delay_250ms" (rect 8 80 74 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clk" (rect 0 0 14 12)(font "Arial" ))
(text "clk" (rect 21 27 35 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "en" (rect 0 0 11 12)(font "Arial" ))
(text "en" (rect 21 43 32 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "tx[31..0]" (rect 0 0 41 12)(font "Arial" ))
(text "tx[31..0]" (rect 21 59 62 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 112 32)
(output)
(text "flag" (rect 0 0 18 12)(font "Arial" ))
(text "flag" (rect 73 27 91 39)(font "Arial" ))
(line (pt 112 32)(pt 96 32)(line_width 1))
)
(drawing
(rectangle (rect 16 16 96 80)(line_width 1))
)
)
(symbol
(rect 560 120 696 216)
(text "odd_division" (rect 5 0 66 12)(font "Arial" ))
(text "clk_50m_25m" (rect 8 80 76 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clk" (rect 0 0 14 12)(font "Arial" ))
(text "clk" (rect 21 27 35 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "num[7..0]" (rect 0 0 47 12)(font "Arial" ))
(text "num[7..0]" (rect 21 43 68 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 136 32)
(output)
(text "clk_odd" (rect 0 0 37 12)(font "Arial" ))
(text "clk_odd" (rect 78 27 115 39)(font "Arial" ))
(line (pt 136 32)(pt 120 32)(line_width 1))
)
(drawing
(rectangle (rect 16 16 120 80)(line_width 1))
)
)
(symbol
(rect 936 128 1048 224)
(text "timer" (rect 5 0 29 12)(font "Arial" ))
(text "inst" (rect 8 80 25 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clk" (rect 0 0 14 12)(font "Arial" ))
(text "clk" (rect 21 27 35 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "en" (rect 0 0 11 12)(font "Arial" ))
(text "en" (rect 21 43 32 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "tx[31..0]" (rect 0 0 41 12)(font "Arial" ))
(text "tx[31..0]" (rect 21 59 62 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 112 32)
(output)
(text "flag" (rect 0 0 18 12)(font "Arial" ))
(text "flag" (rect 73 27 91 39)(font "Arial" ))
(line (pt 112 32)(pt 96 32)(line_width 1))
)
(drawing
(rectangle (rect 16 16 96 80)(line_width 1))
)
)
(symbol
(rect 920 656 1128 848)
(text "get_response" (rect 5 0 71 12)(font "Arial" ))
(text "inst3" (rect 8 176 31 188)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "num_read_en" (rect 0 0 66 12)(font "Arial" ))
(text "num_read_en" (rect 21 27 87 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "enable" (rect 0 0 31 12)(font "Arial" ))
(text "enable" (rect 21 43 52 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 0 80)
(input)
(text "flag" (rect 0 0 18 12)(font "Arial" ))
(text "flag" (rect 21 75 39 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 1))
)
(port
(pt 0 96)
(input)
(text "clk" (rect 0 0 14 12)(font "Arial" ))
(text "clk" (rect 21 91 35 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 1))
)
(port
(pt 0 112)
(input)
(text "data_in48[len1-1..0]" (rect 0 0 96 12)(font "Arial" ))
(text "data_in48[len1-1..0]" (rect 21 107 117 119)(font "Arial" ))
(line (pt 0 112)(pt 16 112)(line_width 3))
)
(port
(pt 0 128)
(input)
(text "data_in136[len2-1..0]" (rect 0 0 102 12)(font "Arial" ))
(text "data_in136[len2-1..0]" (rect 21 123 123 135)(font "Arial" ))
(line (pt 0 128)(pt 16 128)(line_width 3))
)
(port
(pt 0 144)
(input)
(text "cmd_num[3..0]" (rect 0 0 74 12)(font "Arial" ))
(text "cmd_num[3..0]" (rect 21 139 95 151)(font "Arial" ))
(line (pt 0 144)(pt 16 144)(line_width 3))
)
(port
(pt 208 32)
(output)
(text "right" (rect 0 0 21 12)(font "Arial" ))
(text "right" (rect 166 27 187 39)(font "Arial" ))
(line (pt 208 32)(pt 192 32)(line_width 1))
)
(port
(pt 208 48)
(output)
(text "wrong" (rect 0 0 28 12)(font "Arial" ))
(text "wrong" (rect 159 43 187 55)(font "Arial" ))
(line (pt 208 48)(pt 192 48)(line_width 1))
)
(port
(pt 208 64)
(output)
(text "initial_done" (rect 0 0 54 12)(font "Arial" ))
(text "initial_done" (rect 133 59 187 71)(font "Arial" ))
(line (pt 208 64)(pt 192 64)(line_width 1))
)
(port
(pt 208 80)
(output)
(text "rca[15..0]" (rect 0 0 47 12)(font "Arial" ))
(text "rca[15..0]" (rect 140 75 187 87)(font "Arial" ))
(line (pt 208 80)(pt 192 80)(line_width 3))
)
(parameter
"len1"
"48"
""
)
(parameter
"len2"
"136"
""
)
(parameter
"pulsewide"
"1"
""
)
(parameter
"len"
"48"
""
)
(drawing
(rectangle (rect 16 16 192 176)(line_width 1))
)
(annotation_block (parameter)(rect 984 616 1088 664))
)
(symbol
(rect 904 440 1128 600)
(text "send_cmd" (rect 5 0 55 12)(font "Arial" ))
(text "inst4" (rect 8 144 31 156)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clk" (rect 0 0 14 12)(font "Arial" ))
(text "clk" (rect 21 27 35 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "enable" (rect 0 0 31 12)(font "Arial" ))
(text "enable" (rect 21 43 52 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "right" (rect 0 0 21 12)(font "Arial" ))
(text "right" (rect 21 59 42 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 0 80)
(input)
(text "wrong" (rect 0 0 28 12)(font "Arial" ))
(text "wrong" (rect 21 75 49 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 1))
)
(port
(pt 0 96)
(input)
(text "crcfini" (rect 0 0 30 12)(font "Arial" ))
(text "crcfini" (rect 21 91 51 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 1))
)
(port
(pt 0 112)
(input)
(text "data47[len-2..0]" (rect 0 0 76 12)(font "Arial" ))
(text "data47[len-2..0]" (rect 21 107 97 119)(font "Arial" ))
(line (pt 0 112)(pt 16 112)(line_width 3))
)
(port
(pt 0 128)
(input)
(text "rca[15..0]" (rect 0 0 47 12)(font "Arial" ))
(text "rca[15..0]" (rect 21 123 68 135)(font "Arial" ))
(line (pt 0 128)(pt 16 128)(line_width 3))
(port
(pt 224 32)
(output)
(text "cmd_data[len-1..0]" (rect 0 0 92 12)(font "Arial" ))
(text "cmd_data[len-1..0]" (rect 111 27 203 39)(font "Arial" ))
(line (pt 224 32)(pt 208 32)(line_width 3))
)
(port
(pt 224 48)
(output)
(text "cmd_num[3..0]" (rect 0 0 74 12)(font "Arial" ))
(text "cmd_num[3..0]" (rect 129 43 203 55)(font "Arial" ))
(line (pt 224 48)(pt 208 48)(line_width 3))
)
(port
(pt 224 64)
(output)
(text "en" (rect 0 0 11 12)(font "Arial" ))
(text "en" (rect 192 59 203 71)(font "Arial" ))
(line (pt 224 64)(pt 208 64)(line_width 1))
)
(port
(pt 224 80)
(output)
(text "crc_en" (rect 0 0 33 12)(font "Arial" ))
(text "crc_en" (rect 170 75 203 87)(font "Arial" ))
(line (pt 224 80)(pt 208 80)(line_width 1))
)
(port
(pt 224 96)
(output)
(text "datatemp[39..0]" (rect 0 0 77 12)(font "Arial" ))
(text "datatemp[39..0]" (rect 126 91 203 103)(font "Arial" ))
(line (pt 224 96)(pt 208 96)(line_width 3))
)
(parameter
"len"
"48"
""
)
(drawing
(rectangle (rect 16 16 208 144)(line_width 1))
)
(annotation_block (parameter)(rect 904 408 1008 440))
)
(symbol
(rect 504 680 744 808)
(text "shift_r1" (rect 5 0 42 12)(font "Arial" ))
(text "inst5" (rect 8 112 31 124)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clk" (rect 0 0 14 12)(font "Arial" ))
(text "clk" (rect 21 27 35 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "en" (rect 0 0 11 12)(font "Arial" ))
(text "en" (rect 21 43 32 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "data_in" (rect 0 0 35 12)(font "Arial" ))
(text "data_in" (rect 21 59 56 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 0 80)
(input)
(text "rst" (rect 0 0 12 12)(font "Arial" ))
(text "rst" (rect 21 75 33 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 1))
)
(port
(pt 0 96)
(input)
(text "cmd_num[3..0]" (rect 0 0 74 12)(font "Arial" ))
(text "cmd_num[3..0]" (rect 21 91 95 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 3))
)
(port
(pt 240 32)
(output)
(text "flag" (rect 0 0 18 12)(font "Arial" ))
(text "flag" (rect 201 27 219 39)(font "Arial" ))
(line (pt 240 32)(pt 224 32)(line_width 1))
)
(port
(pt 240 48)
(output)
(text "data_out48[len1-1..0]" (rect 0 0 103 12)(font "Arial" ))
(text "data_out48[len1-1..0]" (rect 116 43 219 55)(font "Arial" ))
(line (pt 240 48)(pt 224 48)(line_width 3))
)
(port
(pt 240 64)
(output)
(text "data_out136[len2-1..0]" (rect 0 0 109 12)(font "Arial" ))
(text "data_out136[len2-1..0]" (rect 110 59 219 71)(font "Arial" ))
(line (pt 240 64)(pt 224 64)(line_width 3))
)
(parameter
"len1"
"48"
""
)
(parameter
"len2"
"136"
""
)
(parameter
"len"
"48"
""
)
(parameter
"pulsewide"
"1"
""
)
(drawing
(rectangle (rect 16 16 224 112)(line_width 1))
)
(annotation_block (parameter)(rect 504 632 608 680))
)
(symbol
(rect 1272 376 1448 504)
(text "shift_reg" (rect 5 0 48 12)(font "Arial" ))
(text "inst7" (rect 8 112 31 124)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clk" (rect 0 0 14 12)(font "Arial" ))
(text "clk" (rect 21 27 35 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "en" (rect 0 0 11 12)(font "Arial" ))
(text "en" (rect 21 43 32 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "cmd_1_en" (rect 0 0 50 12)(font "Arial" ))
(text "cmd_1_en" (rect 21 59 71 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 0 80)
(input)
(text "cmd_1_end" (rect 0 0 56 12)(font "Arial" ))
(text "cmd_1_end" (rect 21 75 77 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 1))
)
(port
(pt 0 96)
(input)
(text "data_in[len-1..0]" (rect 0 0 79 12)(font "Arial" ))
(text "data_in[len-1..0]" (rect 21 91 100 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 3))
)
(port
(pt 176 32)
(output)
(text "data_out" (rect 0 0 42 12)(font "Arial" ))
(text "data_out" (rect 113 27 155 39)(font "Arial" ))
(line (pt 176 32)(pt 160 32)(line_width 1))
)
(parameter
"len"
"48"
""
)
(drawing
(rectangle (rect 16 16 160 112)(line_width 1))
)
(annotation_block (parameter)(rect 1344 344 1448 376))
)
(symbol
(rect 712 488 776 536)
(text "OR2" (rect 1 0 19 10)(font "Arial" (font_size 6)))
(text "inst8" (rect 3 37 26 49)(font "Arial" ))
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -