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

📄 add_sub_u5c.tdf

📁 Quartus开发环境下开发的Arinc 429总线收发器工程
💻 TDF
字号:
--lpm_add_sub CARRY_CHAIN="MANUAL" CARRY_CHAIN_LENGTH=48 DEVICE_FAMILY="Cyclone II" LPM_DIRECTION="SUB" LPM_WIDTH=5 dataa datab result
--VERSION_BEGIN 4.1 cbx_cycloneii 2004:05:18:11:27:16:SJ cbx_lpm_add_sub 2004:06:23:12:24:04:SJ cbx_mgl 2004:06:17:17:30:06:SJ cbx_stratix 2004:04:28:15:20:14:SJ cbx_stratixii 2004:05:18:11:28:28:SJ  VERSION_END


--  Copyright (C) 1988-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.


FUNCTION cycloneii_lcell_comb (cin, dataa, datab, datac, datad)
WITH ( 	LUT_MASK,	SUM_LUTC_INPUT) 
RETURNS ( combout, cout);

--synthesis_resources = cycloneii_lcell_comb 5 
SUBDESIGN add_sub_u5c
( 
	dataa[4..0]	:	input;
	datab[4..0]	:	input;
	result[4..0]	:	output;
) 
VARIABLE 
	add_sub_cella[4..0] : cycloneii_lcell_comb
		WITH (
			LUT_MASK = "69B2",
			SUM_LUTC_INPUT = "cin"
		);

BEGIN 
	add_sub_cella[0].cin = B"1";
	add_sub_cella[1].cin = add_sub_cella[0].cout;
	add_sub_cella[2].cin = add_sub_cella[1].cout;
	add_sub_cella[3].cin = add_sub_cella[2].cout;
	add_sub_cella[4].cin = add_sub_cella[3].cout;
	add_sub_cella[].dataa = dataa[];
	add_sub_cella[].datab = datab[];
	add_sub_cella[].datad = B"11111";
	result[] = add_sub_cella[].combout;
END;
--VALID FILE

⌨️ 快捷键说明

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