?? par_add_bla.tdf
字號:
--parallel_add DEVICE_FAMILY=Cyclone PIPELINE=0 REPRESENTATION=UNSIGNED SHIFT=0 SIZE=3 WIDTH=17 WIDTHR=17 data result
--VERSION_BEGIN 4.0 cbx_lpm_add_sub 2003:11:17:16:32:08:SJ cbx_mgl 2004:01:13:14:00:54:SJ cbx_padd 2004:01:19:18:26:36:SJ cbx_parallel_add 2003:11:11:15:25:00:SJ cbx_stratix 2004:02:27:16:26:40:SJ cbx_stratixii 2003:11:06:16:12:54:SJ cbx_util 2003:12:05:10:31:30:SJ VERSION_END
-- Copyright (C) 1988-2004 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 SOFT (in)
RETURNS ( out);
--synthesis_resources = lut 37 SOFT 111
SUBDESIGN par_add_bla
(
data[50..0] : input;
result[16..0] : output;
)
VARIABLE
add1_result[17..0] : WIRE;
add5_result[18..0] : WIRE;
sft2a[17..0] : SOFT;
sft3a[17..0] : SOFT;
sft4a[17..0] : SOFT;
sft6a[18..0] : SOFT;
sft7a[18..0] : SOFT;
sft8a[18..0] : SOFT;
w10w : WIRE;
w126w : WIRE;
w12w : WIRE;
w14w : WIRE;
w16w : WIRE;
w18w : WIRE;
w203w[18..0] : WIRE;
w20w : WIRE;
w22w : WIRE;
w24w : WIRE;
w26w : WIRE;
w28w : WIRE;
w2w : WIRE;
w30w : WIRE;
w32w : WIRE;
w34w : WIRE;
w4w : WIRE;
w56w : WIRE;
w58w : WIRE;
w60w : WIRE;
w62w : WIRE;
w64w : WIRE;
w66w : WIRE;
w68w : WIRE;
w6w : WIRE;
w70w : WIRE;
w72w : WIRE;
w74w : WIRE;
w76w : WIRE;
w78w : WIRE;
w80w : WIRE;
w82w : WIRE;
w84w : WIRE;
w86w : WIRE;
w88w : WIRE;
w89w : WIRE;
w8w : WIRE;
w90w : WIRE;
w91w : WIRE;
BEGIN
add1_result[] = sft2a[].out + sft3a[].out;
add5_result[] = sft6a[].out + sft7a[].out;
sft2a[].in = ( w126w, ( data[50..50], ( data[49..49], ( data[48..48], ( data[47..47], ( data[46..46], ( data[45..45], ( data[44..44], ( data[43..43], ( data[42..42], ( data[41..41], ( data[40..40], ( data[39..39], ( data[38..38], ( data[37..37], ( data[36..36], ( data[35..34])))))))))))))))));
sft3a[].in = ( w126w, ( data[33..33], ( data[32..32], ( data[31..31], ( data[30..30], ( data[29..29], ( data[28..28], ( data[27..27], ( data[26..26], ( data[25..25], ( data[24..24], ( data[23..23], ( data[22..22], ( data[21..21], ( data[20..20], ( data[19..19], ( data[18..17])))))))))))))))));
sft4a[].in = add1_result[];
sft6a[].in = ( w126w, ( w90w, ( data[16..16], ( data[15..15], ( data[14..14], ( data[13..13], ( data[12..12], ( data[11..11], ( data[10..10], ( data[9..9], ( data[8..8], ( data[7..7], ( data[6..6], ( data[5..5], ( data[4..4], ( data[3..3], ( data[2..2], ( data[1..0]))))))))))))))))));
sft7a[].in = ( w126w, ( w126w, ( w88w, ( w86w, ( w84w, ( w82w, ( w80w, ( w78w, ( w76w, ( w74w, ( w72w, ( w70w, ( w68w, ( w66w, ( w64w, ( w62w, ( w60w, ( w58w, w56w))))))))))))))))));
sft8a[].in = add5_result[];
result[16..0] = w203w[16..0];
w10w = sft8a[4..4].out;
w126w = B"0";
w12w = sft8a[5..5].out;
w14w = sft8a[6..6].out;
w16w = sft8a[7..7].out;
w18w = sft8a[8..8].out;
w203w[] = ( w91w, w89w, w34w, w32w, w30w, w28w, w26w, w24w, w22w, w20w, w18w, w16w, w14w, w12w, w10w, w8w, w6w, w4w, w2w);
w20w = sft8a[9..9].out;
w22w = sft8a[10..10].out;
w24w = sft8a[11..11].out;
w26w = sft8a[12..12].out;
w28w = sft8a[13..13].out;
w2w = sft8a[0..0].out;
w30w = sft8a[14..14].out;
w32w = sft8a[15..15].out;
w34w = sft8a[16..16].out;
w4w = sft8a[1..1].out;
w56w = sft4a[0..0].out;
w58w = sft4a[1..1].out;
w60w = sft4a[2..2].out;
w62w = sft4a[3..3].out;
w64w = sft4a[4..4].out;
w66w = sft4a[5..5].out;
w68w = sft4a[6..6].out;
w6w = sft8a[2..2].out;
w70w = sft4a[7..7].out;
w72w = sft4a[8..8].out;
w74w = sft4a[9..9].out;
w76w = sft4a[10..10].out;
w78w = sft4a[11..11].out;
w80w = sft4a[12..12].out;
w82w = sft4a[13..13].out;
w84w = sft4a[14..14].out;
w86w = sft4a[15..15].out;
w88w = sft4a[16..16].out;
w89w = sft8a[17..17].out;
w8w = sft8a[3..3].out;
w90w = sft4a[17..17].out;
w91w = sft8a[18..18].out;
END;
--VALID FILE
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -