ram.bdf

来自「实现简单CPU功能的源码」· BDF 代码 · 共 181 行

BDF
181
字号
/*
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 200 96 368 112)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "data[15..0]" (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
	(input)
	(rect 216 120 384 136)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "we" (rect 9 0 21 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 216 136 384 152)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "address[7..0]" (rect 9 0 73 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 144 168 312 184)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "inclock" (rect 5 0 39 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 640 96 816 112)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "q[15..0]" (rect 90 0 127 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 432 72 592 192)
	(text "lpm_ram_dq0" (rect 41 1 133 17)(font "Arial" (font_size 10)))
	(text "inst" (rect 8 104 25 116)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "data[15..0]" (rect 0 0 60 14)(font "Arial" (font_size 8)))
		(text "data[15..0]" (rect 20 26 80 40)(font "Arial" (font_size 8)))
		(line (pt 0 32)(pt 16 32)(line_width 3))
	)
	(port
		(pt 0 56)
		(input)
		(text "we" (rect 0 0 18 14)(font "Arial" (font_size 8)))
		(text "we" (rect 20 50 38 64)(font "Arial" (font_size 8)))
		(line (pt 0 56)(pt 16 56)(line_width 1))
	)
	(port
		(pt 0 72)
		(input)
		(text "address[7..0]" (rect 0 0 75 14)(font "Arial" (font_size 8)))
		(text "address[7..0]" (rect 20 66 95 80)(font "Arial" (font_size 8)))
		(line (pt 0 72)(pt 16 72)(line_width 3))
	)
	(port
		(pt 0 88)
		(input)
		(text "inclock" (rect 0 0 38 14)(font "Arial" (font_size 8)))
		(text "inclock" (rect 26 82 64 96)(font "Arial" (font_size 8)))
		(line (pt 0 88)(pt 16 88)(line_width 1))
	)
	(port
		(pt 160 32)
		(output)
		(text "q[15..0]" (rect 0 0 42 14)(font "Arial" (font_size 8)))
		(text "q[15..0]" (rect 105 26 147 40)(font "Arial" (font_size 8)))
		(line (pt 160 32)(pt 144 32)(line_width 3))
	)
	(drawing
		(line (pt 16 16)(pt 144 16)(line_width 1))
		(line (pt 144 16)(pt 144 104)(line_width 1))
		(line (pt 144 104)(pt 16 104)(line_width 1))
		(line (pt 16 104)(pt 16 16)(line_width 1))
		(line (pt 16 82)(pt 22 88)(line_width 1))
		(line (pt 22 88)(pt 16 94)(line_width 1))
	)
)
(connector
	(pt 432 104)
	(pt 368 104)
	(bus)
)
(connector
	(pt 432 128)
	(pt 384 128)
)
(connector
	(pt 432 144)
	(pt 384 144)
	(bus)
)
(connector
	(pt 592 104)
	(pt 640 104)
	(bus)
)
(connector
	(pt 424 160)
	(pt 424 176)
)
(connector
	(pt 432 160)
	(pt 424 160)
)
(connector
	(pt 424 176)
	(pt 312 176)
)

⌨️ 快捷键说明

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