⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lvds_tx.v

📁 这个verilog代码是一个输入输出经典的例子。大家一起参考。
💻 V
字号:
// megafunction wizard: %ALTLVDS%
// GENERATION: STANDARD
// VERSION: WM1.0
// MODULE: altlvds_tx 

// ============================================================
// File Name: lvds_tx.v
// Megafunction Name(s):
// 			altlvds_tx
// ============================================================
// ************************************************************
// THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE!
// ************************************************************


//Copyright (C) 1991-2002 Altera Corporation
//Any  megafunction  design,  and related netlist (encrypted  or  decrypted),
//support information,  device programming or simulation file,  and any other
//associated  documentation or information  provided by  Altera  or a partner
//under  Altera's   Megafunction   Partnership   Program  may  be  used  only
//to program  PLD  devices (but not masked  PLD  devices) from  Altera.   Any
//other  use  of such  megafunction  design,  netlist,  support  information,
//device programming or simulation file,  or any other  related documentation
//or information  is prohibited  for  any  other purpose,  including, but not
//limited to  modification,  reverse engineering,  de-compiling, or use  with
//any other  silicon devices,  unless such use is  explicitly  licensed under
//a separate agreement with  Altera  or a megafunction partner.  Title to the
//intellectual property,  including patents,  copyrights,  trademarks,  trade
//secrets,  or maskworks,  embodied in any such megafunction design, netlist,
//support  information,  device programming or simulation file,  or any other
//related documentation or information provided by  Altera  or a megafunction
//partner, remains with Altera, the megafunction partner, or their respective
//licensors. No other licenses, including any licenses needed under any third
//party's intellectual property, are provided herein.


module lvds_tx (
	tx_in,
	tx_inclock,
	tx_out,
	tx_outclock);

	input	[15:0]  tx_in;
	input	  tx_inclock;
	output	[1:0]  tx_out;
	output	  tx_outclock;

	wire [1:0] sub_wire0;
	wire  sub_wire1;
	wire [1:0] tx_out = sub_wire0[1:0];
	wire  tx_outclock = sub_wire1;

	altlvds_tx	altlvds_tx_component (
				.tx_in (tx_in),
				.tx_inclock (tx_inclock),
				.tx_out (sub_wire0),
				.tx_outclock (sub_wire1));
	defparam
		altlvds_tx_component.intended_device_family = "Stratix",
		altlvds_tx_component.number_of_channels = 2,
		altlvds_tx_component.deserialization_factor = 8,
		altlvds_tx_component.inclock_period = 9523,
		altlvds_tx_component.outclock_divide_by = 8,
		altlvds_tx_component.output_data_rate = 840,
		altlvds_tx_component.inclock_data_alignment = "EDGE_ALIGNED",
		altlvds_tx_component.outclock_alignment = "EDGE_ALIGNED",
		altlvds_tx_component.registered_input = "TX_CORECLK",
		altlvds_tx_component.common_rx_tx_pll = "ON",
		altlvds_tx_component.outclock_resource = "AUTO",
		altlvds_tx_component.lpm_type = "altlvds_tx";


endmodule

// ============================================================
// CNX file retrieval info
// ============================================================
// Retrieval info: PRIVATE: Int_Device STRING "Stratix"
// Retrieval info: PRIVATE: Num_Channel NUMERIC "2"
// Retrieval info: PRIVATE: Deser_Factor NUMERIC "8"
// Retrieval info: PRIVATE: PLL_Freq STRING "105"
// Retrieval info: PRIVATE: PLL_Period STRING "9.52381"
// Retrieval info: PRIVATE: LVDS_Mode NUMERIC "0"
// Retrieval info: PRIVATE: Clock_Mode NUMERIC "0"
// Retrieval info: PRIVATE: Inclock_Boost NUMERIC "4"
// Retrieval info: PRIVATE: Outclock_Divide_By NUMERIC "8"
// Retrieval info: PRIVATE: Data_rate STRING "840"
// Retrieval info: PRIVATE: Input_Clock_alignment STRING "EDGE_ALIGNED"
// Retrieval info: PRIVATE: Output_Clock_alignment STRING "EDGE_ALIGNED"
// Retrieval info: PRIVATE: Enable_DPA_Mode STRING "OFF"
// Retrieval info: PRIVATE: Use_Clock_Resc STRING "AUTO"
// Retrieval info: PRIVATE: Reg_InOut NUMERIC "1"
// Retrieval info: PRIVATE: Multi_Clock NUMERIC "0"
// Retrieval info: PRIVATE: Use_Lock NUMERIC "0"
// Retrieval info: PRIVATE: Use_CoreClock NUMERIC "0"
// Retrieval info: PRIVATE: PLL_Enable NUMERIC "0"
// Retrieval info: PRIVATE: Use_Deskew NUMERIC "0"
// Retrieval info: PRIVATE: CDS_Mode NUMERIC "0"
// Retrieval info: PRIVATE: MSB_Center_Align NUMERIC "0"
// Retrieval info: PRIVATE: Use_Data_Align NUMERIC "0"
// Retrieval info: PRIVATE: Use_Ext_Data_Align NUMERIC "0"
// Retrieval info: PRIVATE: Use_Common_Rx_Tx_Plls NUMERIC "1"
// Retrieval info: PRIVATE: Enable_FIFO_DPA_Channels NUMERIC "1"
// Retrieval info: PRIVATE: Use_Rawperror NUMERIC "0"
// Retrieval info: PRIVATE: Clock_Choices STRING "TX_CORECLK"
// Retrieval info: PRIVATE: Use_Core_Clock NUMERIC "0"
// Retrieval info: PRIVATE: Use_Dpa_Locked NUMERIC "0"
// Retrieval info: PRIVATE: Dpll_Lock_Window NUMERIC "800"
// Retrieval info: PRIVATE: Dpll_Lock_Count NUMERIC "2"
// Retrieval info: PRIVATE: Use_Pll_Areset NUMERIC "0"
// Retrieval info: CONSTANT: INTENDED_DEVICE_FAMILY STRING "Stratix"
// Retrieval info: CONSTANT: NUMBER_OF_CHANNELS NUMERIC "2"
// Retrieval info: CONSTANT: DESERIALIZATION_FACTOR NUMERIC "8"
// Retrieval info: CONSTANT: INCLOCK_PERIOD NUMERIC "9523"
// Retrieval info: CONSTANT: OUTCLOCK_DIVIDE_BY NUMERIC "8"
// Retrieval info: CONSTANT: OUTPUT_DATA_RATE NUMERIC "840"
// Retrieval info: CONSTANT: INCLOCK_DATA_ALIGNMENT STRING "EDGE_ALIGNED"
// Retrieval info: CONSTANT: OUTCLOCK_ALIGNMENT STRING "EDGE_ALIGNED"
// Retrieval info: CONSTANT: REGISTERED_INPUT STRING "TX_CORECLK"
// Retrieval info: CONSTANT: COMMON_RX_TX_PLL STRING "ON"
// Retrieval info: CONSTANT: OUTCLOCK_RESOURCE STRING "AUTO"
// Retrieval info: CONSTANT: LPM_TYPE STRING "altlvds_tx"
// Retrieval info: USED_PORT: tx_in 0 0 16 0 INPUT NODEFVAL tx_in[15..0]
// Retrieval info: USED_PORT: tx_inclock 0 0 0 0 INPUT GND tx_inclock
// Retrieval info: USED_PORT: tx_out 0 0 2 0 OUTPUT NODEFVAL tx_out[1..0]
// Retrieval info: USED_PORT: tx_outclock 0 0 0 0 OUTPUT NODEFVAL tx_outclock
// Retrieval info: CONNECT: @tx_in 0 0 16 0 tx_in 0 0 16 0
// Retrieval info: CONNECT: @tx_inclock 0 0 0 0 tx_inclock 0 0 0 0
// Retrieval info: CONNECT: tx_out 0 0 2 0 @tx_out 0 0 2 0
// Retrieval info: CONNECT: tx_outclock 0 0 0 0 @tx_outclock 0 0 0 0
// Retrieval info: LIBRARY: altera_mf altera_mf.altera_mf_components.all

⌨️ 快捷键说明

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