ddr_lvds_in.v

来自「本人正在学习vhdl语言」· Verilog 代码 · 共 54 行

V
54 行
字号
//
// Module:      DDR_LVDS_IN 
//
// Description: Verilog Instantiation Template
//		DDR Input Flip-Flops with LVDS input buffer
//		
//
// Device: 	VIRTEX-II Family 
//
//---------------------------------------------------------------------
//
//DDR Input Flip-Flops
//

always @ (posedge clk or posedge rst)

  begin
	if (rst) 
	   q1 = 1'b0;
	else 
	   q1 = data_in; // data_in = Output from LVDS input buffer
  end 

always @ (negedge clk or posedge rst)

begin
	if (rst) 
	   q2 = 1'b0;
	else 
	   q2 = data_in; // data_in = Output from LVDS input buffer
  end 

/* NOTE: You must include the following constraints in the .ucf file when running back-end tools, \
	in order to ensure that IOB DDR registers are used:

INST "q2_reg" IOB=TRUE;
INST "q1_reg" IOB=TRUE;

Depending on the synthesis tools you use, it may be required to check the edif file for modifications to 
original net names...in this case, Synopsis changed the names: q1 and q2 to q1_reg and q2_reg

*/

//3-State LVDS buffer instantiation

IBUFDS_LVDS_25 U1 ( .I(), // P-Channel input to LVDS input buffer
		    .IB(),// N-Channel input to LVDS input buffer
		    .O()  // Output from LVDS input buffer
		  );

//---------------------------------------------------------------------


⌨️ 快捷键说明

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