code_fd.bdf

来自「FPGA光电编码器输入模块」· BDF 代码 · 共 103 行

BDF
103
字号
/*
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"))
(symbol
	(rect 336 48 560 144)
	(text "pulse_count" (rect 5 0 64 12)(font "Arial" ))
	(text "inst1" (rect 8 80 31 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "F4_CLK" (rect 0 0 40 12)(font "Arial" ))
		(text "F4_CLK" (rect 21 27 61 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "RESET" (rect 0 0 35 12)(font "Arial" ))
		(text "RESET" (rect 21 43 56 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "DIRECTION" (rect 0 0 61 12)(font "Arial" ))
		(text "DIRECTION" (rect 21 59 82 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 1))
	)
	(port
		(pt 224 32)
		(output)
		(text "PULSE_COUNT[15..0]" (rect 0 0 112 12)(font "Arial" ))
		(text "PULSE_COUNT[15..0]" (rect 91 27 203 39)(font "Arial" ))
		(line (pt 224 32)(pt 208 32)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 208 80)(line_width 1))
	)
)
(symbol
	(rect 600 48 840 144)
	(text "LATCH1" (rect 5 0 46 12)(font "Arial" ))
	(text "inst2" (rect 8 80 31 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "CLR" (rect 0 0 22 12)(font "Arial" ))
		(text "CLR" (rect 21 27 43 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "CE" (rect 0 0 15 12)(font "Arial" ))
		(text "CE" (rect 21 43 36 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "PULSE_COUNT[15..0]" (rect 0 0 112 12)(font "Arial" ))
		(text "PULSE_COUNT[15..0]" (rect 21 59 133 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 3))
	)
	(port
		(pt 240 32)
		(output)
		(text "PC_OUT[15..0]" (rect 0 0 75 12)(font "Arial" ))
		(text "PC_OUT[15..0]" (rect 144 27 219 39)(font "Arial" ))
		(line (pt 240 32)(pt 224 32)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 224 80)(line_width 1))
	)
)
(block
	(rect 152 16 288 168)
	(text "F4" (rect 5 5 17 17)(font "Arial" ))	(text "inst" (rect 5 138 22 150)(font "Arial" ))	(block_io "INA" (input))
	(block_io "CLR" (input))
	(block_io "INB" (input))
	(block_io "CLK" (input))
	(block_io "F4_CLK" (output))
	(block_io "ENADD" (output))
)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?