sdram_control_4port.bsf

来自「DE2 CCD数码相机源代码」· BSF 代码 · 共 417 行

BSF
417
字号
/*
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 "symbol" (version "1.1"))
(symbol
	(rect 16 16 296 528)
	(text "Sdram_Control_4Port" (rect 5 0 110 12)(font "Arial" ))
	(text "inst" (rect 8 496 25 508)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "REF_CLK" (rect 0 0 49 12)(font "Arial" ))
		(text "REF_CLK" (rect 21 27 70 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "RESET_N" (rect 0 0 49 12)(font "Arial" ))
		(text "RESET_N" (rect 21 43 70 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "WR1_DATA[16-1..0]" (rect 0 0 100 12)(font "Arial" ))
		(text "WR1_DATA[16-1..0]" (rect 21 59 121 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 3))
	)
	(port
		(pt 0 80)
		(input)
		(text "WR1" (rect 0 0 24 12)(font "Arial" ))
		(text "WR1" (rect 21 75 45 87)(font "Arial" ))
		(line (pt 0 80)(pt 16 80)(line_width 1))
	)
	(port
		(pt 0 96)
		(input)
		(text "WR1_ADDR[23-1..0]" (rect 0 0 103 12)(font "Arial" ))
		(text "WR1_ADDR[23-1..0]" (rect 21 91 124 103)(font "Arial" ))
		(line (pt 0 96)(pt 16 96)(line_width 3))
	)
	(port
		(pt 0 112)
		(input)
		(text "WR1_MAX_ADDR[23-1..0]" (rect 0 0 130 12)(font "Arial" ))
		(text "WR1_MAX_ADDR[23-1..0]" (rect 21 107 151 119)(font "Arial" ))
		(line (pt 0 112)(pt 16 112)(line_width 3))
	)
	(port
		(pt 0 128)
		(input)
		(text "WR1_LENGTH[8..0]" (rect 0 0 100 12)(font "Arial" ))
		(text "WR1_LENGTH[8..0]" (rect 21 123 121 135)(font "Arial" ))
		(line (pt 0 128)(pt 16 128)(line_width 3))
	)
	(port
		(pt 0 144)
		(input)
		(text "WR1_LOAD" (rect 0 0 60 12)(font "Arial" ))
		(text "WR1_LOAD" (rect 21 139 81 151)(font "Arial" ))
		(line (pt 0 144)(pt 16 144)(line_width 1))
	)
	(port
		(pt 0 160)
		(input)
		(text "WR1_CLK" (rect 0 0 51 12)(font "Arial" ))
		(text "WR1_CLK" (rect 21 155 72 167)(font "Arial" ))
		(line (pt 0 160)(pt 16 160)(line_width 1))
	)
	(port
		(pt 0 176)
		(input)
		(text "WR2_DATA[16-1..0]" (rect 0 0 100 12)(font "Arial" ))
		(text "WR2_DATA[16-1..0]" (rect 21 171 121 183)(font "Arial" ))
		(line (pt 0 176)(pt 16 176)(line_width 3))
	)
	(port
		(pt 0 192)
		(input)
		(text "WR2" (rect 0 0 24 12)(font "Arial" ))
		(text "WR2" (rect 21 187 45 199)(font "Arial" ))
		(line (pt 0 192)(pt 16 192)(line_width 1))
	)
	(port
		(pt 0 208)
		(input)
		(text "WR2_ADDR[23-1..0]" (rect 0 0 103 12)(font "Arial" ))
		(text "WR2_ADDR[23-1..0]" (rect 21 203 124 215)(font "Arial" ))
		(line (pt 0 208)(pt 16 208)(line_width 3))
	)
	(port
		(pt 0 224)
		(input)
		(text "WR2_MAX_ADDR[23-1..0]" (rect 0 0 130 12)(font "Arial" ))
		(text "WR2_MAX_ADDR[23-1..0]" (rect 21 219 151 231)(font "Arial" ))
		(line (pt 0 224)(pt 16 224)(line_width 3))
	)
	(port
		(pt 0 240)
		(input)
		(text "WR2_LENGTH[8..0]" (rect 0 0 100 12)(font "Arial" ))
		(text "WR2_LENGTH[8..0]" (rect 21 235 121 247)(font "Arial" ))
		(line (pt 0 240)(pt 16 240)(line_width 3))
	)
	(port
		(pt 0 256)
		(input)
		(text "WR2_LOAD" (rect 0 0 60 12)(font "Arial" ))
		(text "WR2_LOAD" (rect 21 251 81 263)(font "Arial" ))
		(line (pt 0 256)(pt 16 256)(line_width 1))
	)
	(port
		(pt 0 272)
		(input)
		(text "WR2_CLK" (rect 0 0 51 12)(font "Arial" ))
		(text "WR2_CLK" (rect 21 267 72 279)(font "Arial" ))
		(line (pt 0 272)(pt 16 272)(line_width 1))
	)
	(port
		(pt 0 288)
		(input)
		(text "RD1" (rect 0 0 22 12)(font "Arial" ))
		(text "RD1" (rect 21 283 43 295)(font "Arial" ))
		(line (pt 0 288)(pt 16 288)(line_width 1))
	)
	(port
		(pt 0 304)
		(input)
		(text "RD1_ADDR[23-1..0]" (rect 0 0 101 12)(font "Arial" ))
		(text "RD1_ADDR[23-1..0]" (rect 21 299 122 311)(font "Arial" ))
		(line (pt 0 304)(pt 16 304)(line_width 3))
	)
	(port
		(pt 0 320)
		(input)
		(text "RD1_MAX_ADDR[23-1..0]" (rect 0 0 128 12)(font "Arial" ))
		(text "RD1_MAX_ADDR[23-1..0]" (rect 21 315 149 327)(font "Arial" ))
		(line (pt 0 320)(pt 16 320)(line_width 3))
	)
	(port
		(pt 0 336)
		(input)
		(text "RD1_LENGTH[8..0]" (rect 0 0 97 12)(font "Arial" ))
		(text "RD1_LENGTH[8..0]" (rect 21 331 118 343)(font "Arial" ))
		(line (pt 0 336)(pt 16 336)(line_width 3))
	)
	(port
		(pt 0 352)
		(input)
		(text "RD1_LOAD" (rect 0 0 57 12)(font "Arial" ))
		(text "RD1_LOAD" (rect 21 347 78 359)(font "Arial" ))
		(line (pt 0 352)(pt 16 352)(line_width 1))
	)
	(port
		(pt 0 368)
		(input)
		(text "RD1_CLK" (rect 0 0 49 12)(font "Arial" ))
		(text "RD1_CLK" (rect 21 363 70 375)(font "Arial" ))
		(line (pt 0 368)(pt 16 368)(line_width 1))
	)
	(port
		(pt 0 384)
		(input)
		(text "RD2" (rect 0 0 22 12)(font "Arial" ))
		(text "RD2" (rect 21 379 43 391)(font "Arial" ))
		(line (pt 0 384)(pt 16 384)(line_width 1))
	)
	(port
		(pt 0 400)
		(input)
		(text "RD2_ADDR[23-1..0]" (rect 0 0 101 12)(font "Arial" ))
		(text "RD2_ADDR[23-1..0]" (rect 21 395 122 407)(font "Arial" ))
		(line (pt 0 400)(pt 16 400)(line_width 3))
	)
	(port
		(pt 0 416)
		(input)
		(text "RD2_MAX_ADDR[23-1..0]" (rect 0 0 128 12)(font "Arial" ))
		(text "RD2_MAX_ADDR[23-1..0]" (rect 21 411 149 423)(font "Arial" ))
		(line (pt 0 416)(pt 16 416)(line_width 3))
	)
	(port
		(pt 0 432)
		(input)
		(text "RD2_LENGTH[8..0]" (rect 0 0 97 12)(font "Arial" ))
		(text "RD2_LENGTH[8..0]" (rect 21 427 118 439)(font "Arial" ))
		(line (pt 0 432)(pt 16 432)(line_width 3))
	)
	(port
		(pt 0 448)
		(input)
		(text "RD2_LOAD" (rect 0 0 57 12)(font "Arial" ))
		(text "RD2_LOAD" (rect 21 443 78 455)(font "Arial" ))
		(line (pt 0 448)(pt 16 448)(line_width 1))
	)
	(port
		(pt 0 464)
		(input)
		(text "RD2_CLK" (rect 0 0 49 12)(font "Arial" ))
		(text "RD2_CLK" (rect 21 459 70 471)(font "Arial" ))
		(line (pt 0 464)(pt 16 464)(line_width 1))
	)
	(port
		(pt 280 32)
		(output)
		(text "WR1_FULL" (rect 0 0 57 12)(font "Arial" ))
		(text "WR1_FULL" (rect 202 27 259 39)(font "Arial" ))
		(line (pt 280 32)(pt 264 32)(line_width 1))
	)
	(port
		(pt 280 48)
		(output)
		(text "WR1_USE[8..0]" (rect 0 0 79 12)(font "Arial" ))
		(text "WR1_USE[8..0]" (rect 180 43 259 55)(font "Arial" ))
		(line (pt 280 48)(pt 264 48)(line_width 3))
	)
	(port
		(pt 280 64)
		(output)
		(text "WR2_FULL" (rect 0 0 57 12)(font "Arial" ))
		(text "WR2_FULL" (rect 202 59 259 71)(font "Arial" ))
		(line (pt 280 64)(pt 264 64)(line_width 1))
	)
	(port
		(pt 280 80)
		(output)
		(text "WR2_USE[8..0]" (rect 0 0 79 12)(font "Arial" ))
		(text "WR2_USE[8..0]" (rect 180 75 259 87)(font "Arial" ))
		(line (pt 280 80)(pt 264 80)(line_width 3))
	)
	(port
		(pt 280 96)
		(output)
		(text "RD1_DATA[16-1..0]" (rect 0 0 97 12)(font "Arial" ))
		(text "RD1_DATA[16-1..0]" (rect 162 91 259 103)(font "Arial" ))
		(line (pt 280 96)(pt 264 96)(line_width 3))
	)
	(port
		(pt 280 112)
		(output)
		(text "RD1_EMPTY" (rect 0 0 64 12)(font "Arial" ))
		(text "RD1_EMPTY" (rect 195 107 259 119)(font "Arial" ))
		(line (pt 280 112)(pt 264 112)(line_width 1))
	)
	(port
		(pt 280 128)
		(output)
		(text "RD1_USE[8..0]" (rect 0 0 76 12)(font "Arial" ))
		(text "RD1_USE[8..0]" (rect 183 123 259 135)(font "Arial" ))
		(line (pt 280 128)(pt 264 128)(line_width 3))
	)
	(port
		(pt 280 144)
		(output)
		(text "RD2_DATA[16-1..0]" (rect 0 0 97 12)(font "Arial" ))
		(text "RD2_DATA[16-1..0]" (rect 162 139 259 151)(font "Arial" ))
		(line (pt 280 144)(pt 264 144)(line_width 3))
	)
	(port
		(pt 280 160)
		(output)
		(text "RD2_EMPTY" (rect 0 0 64 12)(font "Arial" ))
		(text "RD2_EMPTY" (rect 195 155 259 167)(font "Arial" ))
		(line (pt 280 160)(pt 264 160)(line_width 1))
	)
	(port
		(pt 280 176)
		(output)
		(text "RD2_USE[8..0]" (rect 0 0 76 12)(font "Arial" ))
		(text "RD2_USE[8..0]" (rect 183 171 259 183)(font "Arial" ))
		(line (pt 280 176)(pt 264 176)(line_width 3))
	)
	(port
		(pt 280 192)
		(output)
		(text "SA[11..0]" (rect 0 0 46 12)(font "Arial" ))
		(text "SA[11..0]" (rect 213 187 259 199)(font "Arial" ))
		(line (pt 280 192)(pt 264 192)(line_width 3))
	)
	(port
		(pt 280 208)
		(output)
		(text "BA[1..0]" (rect 0 0 40 12)(font "Arial" ))
		(text "BA[1..0]" (rect 219 203 259 215)(font "Arial" ))
		(line (pt 280 208)(pt 264 208)(line_width 3))
	)
	(port
		(pt 280 224)
		(output)
		(text "CS_N[1..0]" (rect 0 0 55 12)(font "Arial" ))
		(text "CS_N[1..0]" (rect 204 219 259 231)(font "Arial" ))
		(line (pt 280 224)(pt 264 224)(line_width 3))
	)
	(port
		(pt 280 240)
		(output)
		(text "CKE" (rect 0 0 22 12)(font "Arial" ))
		(text "CKE" (rect 237 235 259 247)(font "Arial" ))
		(line (pt 280 240)(pt 264 240)(line_width 1))
	)
	(port
		(pt 280 256)
		(output)
		(text "RAS_N" (rect 0 0 36 12)(font "Arial" ))
		(text "RAS_N" (rect 223 251 259 263)(font "Arial" ))
		(line (pt 280 256)(pt 264 256)(line_width 1))
	)
	(port
		(pt 280 272)
		(output)
		(text "CAS_N" (rect 0 0 36 12)(font "Arial" ))
		(text "CAS_N" (rect 223 267 259 279)(font "Arial" ))
		(line (pt 280 272)(pt 264 272)(line_width 1))
	)
	(port
		(pt 280 288)
		(output)
		(text "WE_N" (rect 0 0 31 12)(font "Arial" ))
		(text "WE_N" (rect 228 283 259 295)(font "Arial" ))
		(line (pt 280 288)(pt 264 288)(line_width 1))
	)
	(port
		(pt 280 320)
		(output)
		(text "DQM[16/8-1..0]" (rect 0 0 75 12)(font "Arial" ))
		(text "DQM[16/8-1..0]" (rect 184 315 259 327)(font "Arial" ))
		(line (pt 280 320)(pt 264 320)(line_width 3))
	)
	(port
		(pt 280 336)
		(output)
		(text "SDR_CLK" (rect 0 0 50 12)(font "Arial" ))
		(text "SDR_CLK" (rect 209 331 259 343)(font "Arial" ))
		(line (pt 280 336)(pt 264 336)(line_width 1))
	)
	(port
		(pt 280 304)
		(bidir)
		(text "DQ[16-1..0]" (rect 0 0 57 12)(font "Arial" ))
		(text "DQ[16-1..0]" (rect 202 299 259 311)(font "Arial" ))
		(line (pt 280 304)(pt 264 304)(line_width 3))
	)
	(parameter
		"INIT_PER"
		"24000"
		""
	)
	(parameter
		"REF_PER"
		"1024"
		""
	)
	(parameter
		"SC_CL"
		"3"
		""
	)
	(parameter
		"SC_RCD"
		"3"
		""
	)
	(parameter
		"SC_RRD"
		"7"
		""
	)
	(parameter
		"SC_PM"
		"1"
		""
	)
	(parameter
		"SC_BL"
		"1"
		""
	)
	(parameter
		"SDR_BL"
		""
		""
	)
	(parameter
		"SDR_BT"
		"B\"0\""
		""
	)
	(parameter
		"SDR_CL"
		""
		""
	)
	(drawing
		(rectangle (rect 16 16 264 496)(line_width 1))
	)
	(annotation_block (parameter)(rect 296 -64 396 16))
)

⌨️ 快捷键说明

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