?? alt_u_div_0ld.tdf
字號(hào):
--alt_u_div DEVICE_FAMILY="MAX7000S" LPM_PIPELINE=0 MAXIMIZE_SPEED=9 WIDTH_D=7 WIDTH_N=10 WIDTH_Q=10 WIDTH_R=7 denominator numerator quotient remainder
--VERSION_BEGIN 5.0 cbx_cycloneii 2004:12:20:14:28:52:SJ cbx_lpm_add_sub 2005:04:12:13:30:42:SJ cbx_lpm_divide 2005:03:14:22:01:08:SJ cbx_mgl 2005:04:13:17:26:48:SJ cbx_stratix 2005:03:14:17:09:02:SJ cbx_stratixii 2004:12:22:13:27:12:SJ cbx_util_mgl 2005:04:04:13:50:06:SJ VERSION_END
-- Copyright (C) 1988-2005 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 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.
FUNCTION add_sub_7b8 (dataa[0..0], datab[0..0])
RETURNS ( cout, result[0..0]);
FUNCTION add_sub_8b8 (dataa[1..0], datab[1..0])
RETURNS ( cout, result[1..0]);
FUNCTION add_sub_9b8 (dataa[2..0], datab[2..0])
RETURNS ( cout, result[2..0]);
FUNCTION add_sub_ab8 (dataa[3..0], datab[3..0])
RETURNS ( cout, result[3..0]);
FUNCTION add_sub_bb8 (dataa[4..0], datab[4..0])
RETURNS ( cout, result[4..0]);
FUNCTION add_sub_cb8 (dataa[5..0], datab[5..0])
RETURNS ( cout, result[5..0]);
FUNCTION add_sub_db8 (dataa[6..0], datab[6..0])
RETURNS ( cout, result[6..0]);
FUNCTION add_sub_eb8 (dataa[7..0], datab[7..0])
RETURNS ( cout, result[7..0]);
--synthesis_resources =
SUBDESIGN alt_u_div_0ld
(
den_out[6..0] : output;
denominator[6..0] : input;
numerator[9..0] : input;
quotient[9..0] : output;
remainder[6..0] : output;
)
VARIABLE
add_sub_0 : add_sub_7b8;
add_sub_1 : add_sub_8b8;
add_sub_2 : add_sub_9b8;
add_sub_3 : add_sub_ab8;
add_sub_4 : add_sub_bb8;
add_sub_5 : add_sub_cb8;
add_sub_6 : add_sub_db8;
add_sub_7 : add_sub_eb8;
add_sub_8 : add_sub_eb8;
add_sub_9 : add_sub_eb8;
DenominatorIn[87..0] : WIRE;
DenominatorIn_tmp[87..0] : WIRE;
gnd_wire : WIRE;
nose[109..0] : WIRE;
NumeratorIn[109..0] : WIRE;
NumeratorIn_tmp[109..0] : WIRE;
prestg[79..0] : WIRE;
quotient_tmp[9..0] : WIRE;
sel[76..0] : WIRE;
selnose[109..0] : WIRE;
StageIn[87..0] : WIRE;
StageIn_tmp[87..0] : WIRE;
StageOut[79..0] : WIRE;
BEGIN
add_sub_0.dataa[0..0] = NumeratorIn[9..9];
add_sub_0.datab[0..0] = DenominatorIn[0..0];
add_sub_1.dataa[] = ( StageIn[8..8], NumeratorIn[18..18]);
add_sub_1.datab[1..0] = DenominatorIn[9..8];
add_sub_2.dataa[] = ( StageIn[17..16], NumeratorIn[27..27]);
add_sub_2.datab[2..0] = DenominatorIn[18..16];
add_sub_3.dataa[] = ( StageIn[26..24], NumeratorIn[36..36]);
add_sub_3.datab[3..0] = DenominatorIn[27..24];
add_sub_4.dataa[] = ( StageIn[35..32], NumeratorIn[45..45]);
add_sub_4.datab[4..0] = DenominatorIn[36..32];
add_sub_5.dataa[] = ( StageIn[44..40], NumeratorIn[54..54]);
add_sub_5.datab[5..0] = DenominatorIn[45..40];
add_sub_6.dataa[] = ( StageIn[53..48], NumeratorIn[63..63]);
add_sub_6.datab[6..0] = DenominatorIn[54..48];
add_sub_7.dataa[] = ( StageIn[62..56], NumeratorIn[72..72]);
add_sub_7.datab[7..0] = DenominatorIn[63..56];
add_sub_8.dataa[] = ( StageIn[70..64], NumeratorIn[81..81]);
add_sub_8.datab[7..0] = DenominatorIn[71..64];
add_sub_9.dataa[] = ( StageIn[78..72], NumeratorIn[90..90]);
add_sub_9.datab[7..0] = DenominatorIn[79..72];
den_out[6..0] = DenominatorIn[78..72];
DenominatorIn[] = (gnd_wire # DenominatorIn_tmp[]);
DenominatorIn_tmp[] = ( DenominatorIn[79..0], ( gnd_wire, denominator[]));
gnd_wire = B"0";
nose[] = ( B"0000000000", (add_sub_9.cout # gnd_wire), B"0000000000", (add_sub_8.cout # gnd_wire), B"0000000000", (add_sub_7.cout # gnd_wire), B"0000000000", (add_sub_6.cout # gnd_wire), B"0000000000", (add_sub_5.cout # gnd_wire), B"0000000000", (add_sub_4.cout # gnd_wire), B"0000000000", (add_sub_3.cout # gnd_wire), B"0000000000", (add_sub_2.cout # gnd_wire), B"0000000000", (add_sub_1.cout # gnd_wire), B"0000000000", (add_sub_0.cout # gnd_wire));
NumeratorIn[] = (gnd_wire # NumeratorIn_tmp[]);
NumeratorIn_tmp[] = ( NumeratorIn[99..0], numerator[]);
prestg[] = ( add_sub_9.result[], add_sub_8.result[], add_sub_7.result[], GND, add_sub_6.result[], B"00", add_sub_5.result[], B"000", add_sub_4.result[], B"0000", add_sub_3.result[], B"00000", add_sub_2.result[], B"000000", add_sub_1.result[], B"0000000", add_sub_0.result[]);
quotient[] = quotient_tmp[];
quotient_tmp[] = ( (! selnose[0..0]), (! selnose[11..11]), (! selnose[22..22]), (! selnose[33..33]), (! selnose[44..44]), (! selnose[55..55]), (! selnose[66..66]), (! selnose[77..77]), (! selnose[88..88]), (! selnose[99..99]));
remainder[6..0] = StageIn[86..80];
sel[] = ( gnd_wire, (gnd_wire # (sel[76..76] # DenominatorIn[86..86])), (gnd_wire # (sel[75..75] # DenominatorIn[85..85])), (gnd_wire # (sel[74..74] # DenominatorIn[84..84])), (gnd_wire # (sel[73..73] # DenominatorIn[83..83])), (gnd_wire # (sel[72..72] # DenominatorIn[82..82])), (gnd_wire # (sel[71..71] # DenominatorIn[81..81])), gnd_wire, (gnd_wire # (sel[69..69] # DenominatorIn[78..78])), (gnd_wire # (sel[68..68] # DenominatorIn[77..77])), (gnd_wire # (sel[67..67] # DenominatorIn[76..76])), (gnd_wire # (sel[66..66] # DenominatorIn[75..75])), (gnd_wire # (sel[65..65] # DenominatorIn[74..74])), (gnd_wire # (sel[64..64] # DenominatorIn[73..73])), gnd_wire, (gnd_wire # (sel[62..62] # DenominatorIn[70..70])), (gnd_wire # (sel[61..61] # DenominatorIn[69..69])), (gnd_wire # (sel[60..60] # DenominatorIn[68..68])), (gnd_wire # (sel[59..59] # DenominatorIn[67..67])), (gnd_wire # (sel[58..58] # DenominatorIn[66..66])), (gnd_wire # (sel[57..57] # DenominatorIn[65..65])), gnd_wire, (gnd_wire # (sel[55..55] # DenominatorIn[62..62])), (gnd_wire # (sel[54..54] # DenominatorIn[61..61])), (gnd_wire # (sel[53..53] # DenominatorIn[60..60])), (gnd_wire # (sel[52..52] # DenominatorIn[59..59])), (gnd_wire # (sel[51..51] # DenominatorIn[58..58])), (gnd_wire # (sel[50..50] # DenominatorIn[57..57])), gnd_wire, (gnd_wire # (sel[48..48] # DenominatorIn[54..54])), (gnd_wire # (sel[47..47] # DenominatorIn[53..53])), (gnd_wire # (sel[46..46] # DenominatorIn[52..52])), (gnd_wire # (sel[45..45] # DenominatorIn[51..51])), (gnd_wire # (sel[44..44] # DenominatorIn[50..50])), (gnd_wire # (sel[43..43] # DenominatorIn[49..49])), gnd_wire, (gnd_wire # (sel[41..41] # DenominatorIn[46..46])), (gnd_wire # (sel[40..40] # DenominatorIn[45..45])), (gnd_wire # (sel[39..39] # DenominatorIn[44..44])), (gnd_wire # (sel[38..38] # DenominatorIn[43..43])), (gnd_wire # (sel[37..37] # DenominatorIn[42..42])), (gnd_wire # (sel[36..36] # DenominatorIn[41..41])), gnd_wire, (gnd_wire # (sel[34..34] # DenominatorIn[38..38])), (gnd_wire # (sel[33..33] # DenominatorIn[37..37])), (gnd_wire # (sel[32..32] # DenominatorIn[36..36])), (gnd_wire # (sel[31..31] # DenominatorIn[35..35])), (gnd_wire # (sel[30..30] # DenominatorIn[34..34])), (gnd_wire # (sel[29..29] # DenominatorIn[33..33])), gnd_wire, (gnd_wire # (sel[27..27] # DenominatorIn[30..30])), (gnd_wire # (sel[26..26] # DenominatorIn[29..29])), (gnd_wire # (sel[25..25] # DenominatorIn[28..28])), (gnd_wire # (sel[24..24] # DenominatorIn[27..27])), (gnd_wire # (sel[23..23] # DenominatorIn[26..26])), (gnd_wire # (sel[22..22] # DenominatorIn[25..25])), gnd_wire, (gnd_wire # (sel[20..20] # DenominatorIn[22..22])), (gnd_wire # (sel[19..19] # DenominatorIn[21..21])), (gnd_wire # (sel[18..18] # DenominatorIn[20..20])), (gnd_wire # (sel[17..17] # DenominatorIn[19..19])), (gnd_wire # (sel[16..16] # DenominatorIn[18..18])), (gnd_wire # (sel[15..15] # DenominatorIn[17..17])), gnd_wire, (gnd_wire # (sel[13..13] # DenominatorIn[14..14])), (gnd_wire # (sel[12..12] # DenominatorIn[13..13])), (gnd_wire # (sel[11..11] # DenominatorIn[12..12])), (gnd_wire # (sel[10..10] # DenominatorIn[11..11])), (gnd_wire # (sel[9..9] # DenominatorIn[10..10])), (gnd_wire # (sel[8..8] # DenominatorIn[9..9])), gnd_wire, (gnd_wire # (sel[6..6] # DenominatorIn[6..6])), (gnd_wire # (sel[5..5] # DenominatorIn[5..5])), (gnd_wire # (sel[4..4] # DenominatorIn[4..4])), (gnd_wire # (sel[3..3] # DenominatorIn[3..3])), (gnd_wire # (sel[2..2] # DenominatorIn[2..2])), (gnd_wire # (sel[1..1] # DenominatorIn[1..1])));
selnose[] = ( (gnd_wire # (! nose[109..109])), (gnd_wire # (! nose[108..108])), (gnd_wire # (! nose[107..107])), ((gnd_wire # (! nose[106..106])) # sel[76..76]), ((gnd_wire # (! nose[105..105])) # sel[75..75]), ((gnd_wire # (! nose[104..104])) # sel[74..74]), ((gnd_wire # (! nose[103..103])) # sel[73..73]), ((gnd_wire # (! nose[102..102])) # sel[72..72]), ((gnd_wire # (! nose[101..101])) # sel[71..71]), ((gnd_wire # (! nose[100..100])) # sel[70..70]), (gnd_wire # (! nose[99..99])), (gnd_wire # (! nose[98..98])), (gnd_wire # (! nose[97..97])), ((gnd_wire # (! nose[96..96])) # sel[69..69]), ((gnd_wire # (! nose[95..95])) # sel[68..68]), ((gnd_wire # (! nose[94..94])) # sel[67..67]), ((gnd_wire # (! nose[93..93])) # sel[66..66]), ((gnd_wire # (! nose[92..92])) # sel[65..65]), ((gnd_wire # (! nose[91..91])) # sel[64..64]), ((gnd_wire # (! nose[90..90])) # sel[63..63]), (gnd_wire # (! nose[89..89])), (gnd_wire # (! nose[88..88])), (gnd_wire # (! nose[87..87])), ((gnd_wire # (! nose[86..86])) # sel[62..62]), ((gnd_wire # (! nose[85..85])) # sel[61..61]), ((gnd_wire # (! nose[84..84])) # sel[60..60]), ((gnd_wire # (! nose[83..83])) # sel[59..59]), ((gnd_wire # (! nose[82..82])) # sel[58..58]), ((gnd_wire # (! nose[81..81])) # sel[57..57]), ((gnd_wire # (! nose[80..80])) # sel[56..56]), (gnd_wire # (! nose[79..79])), (gnd_wire # (! nose[78..78])), (gnd_wire # (! nose[77..77])), ((gnd_wire # (! nose[76..76])) # sel[55..55]), ((gnd_wire # (! nose[75..75])) # sel[54..54]), ((gnd_wire # (! nose[74..74])) # sel[53..53]), ((gnd_wire # (! nose[73..73])) # sel[52..52]), ((gnd_wire # (! nose[72..72])) # sel[51..51]), ((gnd_wire # (! nose[71..71])) # sel[50..50]), ((gnd_wire # (! nose[70..70])) # sel[49..49]), (gnd_wire # (! nose[69..69])), (gnd_wire # (! nose[68..68])), (gnd_wire # (! nose[67..67])), ((gnd_wire # (! nose[66..66])) # sel[48..48]), ((gnd_wire # (! nose[65..65])) # sel[47..47]), ((gnd_wire # (! nose[64..64])) # sel[46..46]), ((gnd_wire # (! nose[63..63])) # sel[45..45]), ((gnd_wire # (! nose[62..62])) # sel[44..44]), ((gnd_wire # (! nose[61..61])) # sel[43..43]), ((gnd_wire # (! nose[60..60])) # sel[42..42]), (gnd_wire # (! nose[59..59])), (gnd_wire # (! nose[58..58])), (gnd_wire # (! nose[57..57])), ((gnd_wire # (! nose[56..56])) # sel[41..41]), ((gnd_wire # (! nose[55..55])) # sel[40..40]), ((gnd_wire # (! nose[54..54])) # sel[39..39]), ((gnd_wire # (! nose[53..53])) # sel[38..38]), ((gnd_wire # (! nose[52..52])) # sel[37..37]), ((gnd_wire # (! nose[51..51])) # sel[36..36]), ((gnd_wire # (! nose[50..50])) # sel[35..35]), (gnd_wire # (! nose[49..49])), (gnd_wire # (! nose[48..48])), (gnd_wire # (! nose[47..47])), ((gnd_wire # (! nose[46..46])) # sel[34..34]), ((gnd_wire # (! nose[45..45])) # sel[33..33]), ((gnd_wire # (! nose[44..44])) # sel[32..32]), ((gnd_wire # (! nose[43..43])) # sel[31..31]), ((gnd_wire # (! nose[42..42])) # sel[30..30]), ((gnd_wire # (! nose[41..41])) # sel[29..29]), ((gnd_wire # (! nose[40..40])) # sel[28..28]), (gnd_wire # (! nose[39..39])), (gnd_wire # (! nose[38..38])), (gnd_wire # (! nose[37..37])), ((gnd_wire # (! nose[36..36])) # sel[27..27]), ((gnd_wire # (! nose[35..35])) # sel[26..26]), ((gnd_wire # (! nose[34..34])) # sel[25..25]), ((gnd_wire # (! nose[33..33])) # sel[24..24]), ((gnd_wire # (! nose[32..32])) # sel[23..23]), ((gnd_wire # (! nose[31..31])) # sel[22..22]), ((gnd_wire # (! nose[30..30])) # sel[21..21]), (gnd_wire # (! nose[29..29])), (gnd_wire # (! nose[28..28])), (gnd_wire # (! nose[27..27])), ((gnd_wire # (! nose[26..26])) # sel[20..20]), ((gnd_wire # (! nose[25..25])) # sel[19..19]), ((gnd_wire # (! nose[24..24])) # sel[18..18]), ((gnd_wire # (! nose[23..23])) # sel[17..17]), ((gnd_wire # (! nose[22..22])) # sel[16..16]), ((gnd_wire # (! nose[21..21])) # sel[15..15]), ((gnd_wire # (! nose[20..20])) # sel[14..14]), (gnd_wire # (! nose[19..19])), (gnd_wire # (! nose[18..18])), (gnd_wire # (! nose[17..17])), ((gnd_wire # (! nose[16..16])) # sel[13..13]), ((gnd_wire # (! nose[15..15])) # sel[12..12]), ((gnd_wire # (! nose[14..14])) # sel[11..11]), ((gnd_wire # (! nose[13..13])) # sel[10..10]), ((gnd_wire # (! nose[12..12])) # sel[9..9]), ((gnd_wire # (! nose[11..11])) # sel[8..8]), ((gnd_wire # (! nose[10..10])) # sel[7..7]), (gnd_wire # (! nose[9..9])), (gnd_wire # (! nose[8..8])), (gnd_wire # (! nose[7..7])), ((gnd_wire # (! nose[6..6])) # sel[6..6]), ((gnd_wire # (! nose[5..5])) # sel[5..5]), ((gnd_wire # (! nose[4..4])) # sel[4..4]), ((gnd_wire # (! nose[3..3])) # sel[3..3]), ((gnd_wire # (! nose[2..2])) # sel[2..2]), ((gnd_wire # (! nose[1..1])) # sel[1..1]), ((gnd_wire # (! nose[0..0])) # sel[0..0]));
StageIn[] = (gnd_wire # StageIn_tmp[]);
StageIn_tmp[] = ( StageOut[79..0], B"00000000");
StageOut[] = ( ((( StageIn[78..72], NumeratorIn[90..90]) & selnose[99..99]) # (prestg[79..72] & (! selnose[99..99]))), ((( StageIn[70..64], NumeratorIn[81..81]) & selnose[88..88]) # (prestg[71..64] & (! selnose[88..88]))), ((( StageIn[62..56], NumeratorIn[72..72]) & selnose[77..77]) # (prestg[63..56] & (! selnose[77..77]))), ((( StageIn[54..48], NumeratorIn[63..63]) & selnose[66..66]) # (prestg[55..48] & (! selnose[66..66]))), ((( StageIn[46..40], NumeratorIn[54..54]) & selnose[55..55]) # (prestg[47..40] & (! selnose[55..55]))), ((( StageIn[38..32], NumeratorIn[45..45]) & selnose[44..44]) # (prestg[39..32] & (! selnose[44..44]))), ((( StageIn[30..24], NumeratorIn[36..36]) & selnose[33..33]) # (prestg[31..24] & (! selnose[33..33]))), ((( StageIn[22..16], NumeratorIn[27..27]) & selnose[22..22]) # (prestg[23..16] & (! selnose[22..22]))), ((( StageIn[14..8], NumeratorIn[18..18]) & selnose[11..11]) # (prestg[15..8] & (! selnose[11..11]))), ((( StageIn[6..0], NumeratorIn[9..9]) & selnose[0..0]) # (prestg[7..0] & (! selnose[0..0]))));
END;
--VALID FILE
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -