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

📄 add8.fit.eqn

📁 这是用VHDL实现的8位加法器
💻 EQN
字号:
-- Copyright (C) 1991-2006 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.
--B2L1 is add4b:inst|add~62 at LC_X7_Y1_N9
--operation mode is normal

B2L1_carry_eqn = (!B2L15 & B2L3) # (B2L15 & B2L4);
B2L1 = B2L1_carry_eqn;


--B2L2 is add4b:inst|add~67 at LC_X7_Y1_N8
--operation mode is arithmetic

B2L2_carry_eqn = (!B2L15 & B2L6) # (B2L15 & B2L7);
B2L2 = b[7] $ a[7] $ !B2L2_carry_eqn;

--B2L3 is add4b:inst|add~69 at LC_X7_Y1_N8
--operation mode is arithmetic

B2L3_cout_0 = b[7] & (a[7] # !B2L6) # !b[7] & a[7] & !B2L6;
B2L3 = CARRY(B2L3_cout_0);

--B2L4 is add4b:inst|add~69COUT1_120 at LC_X7_Y1_N8
--operation mode is arithmetic

B2L4_cout_1 = b[7] & (a[7] # !B2L7) # !b[7] & a[7] & !B2L7;
B2L4 = CARRY(B2L4_cout_1);


--B2L5 is add4b:inst|add~72 at LC_X7_Y1_N7
--operation mode is arithmetic

B2L5_carry_eqn = (!B2L15 & B2L9) # (B2L15 & B2L10);
B2L5 = a[6] $ b[6] $ B2L5_carry_eqn;

--B2L6 is add4b:inst|add~74 at LC_X7_Y1_N7
--operation mode is arithmetic

B2L6_cout_0 = a[6] & !b[6] & !B2L9 # !a[6] & (!B2L9 # !b[6]);
B2L6 = CARRY(B2L6_cout_0);

--B2L7 is add4b:inst|add~74COUT1_119 at LC_X7_Y1_N7
--operation mode is arithmetic

B2L7_cout_1 = a[6] & !b[6] & !B2L10 # !a[6] & (!B2L10 # !b[6]);
B2L7 = CARRY(B2L7_cout_1);


--B2L8 is add4b:inst|add~77 at LC_X7_Y1_N6
--operation mode is arithmetic

B2L8_carry_eqn = (!B2L15 & B2L12) # (B2L15 & B2L13);
B2L8 = b[5] $ a[5] $ !B2L8_carry_eqn;

--B2L9 is add4b:inst|add~79 at LC_X7_Y1_N6
--operation mode is arithmetic

B2L9_cout_0 = b[5] & (a[5] # !B2L12) # !b[5] & a[5] & !B2L12;
B2L9 = CARRY(B2L9_cout_0);

--B2L10 is add4b:inst|add~79COUT1_118 at LC_X7_Y1_N6
--operation mode is arithmetic

B2L10_cout_1 = b[5] & (a[5] # !B2L13) # !b[5] & a[5] & !B2L13;
B2L10 = CARRY(B2L10_cout_1);


--B2L11 is add4b:inst|add~82 at LC_X7_Y1_N5
--operation mode is arithmetic

B2L11_carry_eqn = B2L15;
B2L11 = a[4] $ b[4] $ B2L11_carry_eqn;

--B2L12 is add4b:inst|add~84 at LC_X7_Y1_N5
--operation mode is arithmetic

B2L12_cout_0 = a[4] & !b[4] & !B2L15 # !a[4] & (!B2L15 # !b[4]);
B2L12 = CARRY(B2L12_cout_0);

--B2L13 is add4b:inst|add~84COUT1_117 at LC_X7_Y1_N5
--operation mode is arithmetic

B2L13_cout_1 = a[4] & !b[4] & !B2L15 # !a[4] & (!B2L15 # !b[4]);
B2L13 = CARRY(B2L13_cout_1);


--B2L14 is add4b:inst|add~87 at LC_X7_Y1_N4
--operation mode is arithmetic

B2L14 = b[3] $ a[3] $ !B2L17;

--B2L15 is add4b:inst|add~89 at LC_X7_Y1_N4
--operation mode is arithmetic

B2L15 = CARRY(b[3] & (a[3] # !B2L18) # !b[3] & a[3] & !B2L18);


--B2L16 is add4b:inst|add~92 at LC_X7_Y1_N3
--operation mode is arithmetic

B2L16 = b[2] $ a[2] $ B2L20;

--B2L17 is add4b:inst|add~94 at LC_X7_Y1_N3
--operation mode is arithmetic

B2L17_cout_0 = b[2] & !a[2] & !B2L20 # !b[2] & (!B2L20 # !a[2]);
B2L17 = CARRY(B2L17_cout_0);

--B2L18 is add4b:inst|add~94COUT1_116 at LC_X7_Y1_N3
--operation mode is arithmetic

B2L18_cout_1 = b[2] & !a[2] & !B2L21 # !b[2] & (!B2L21 # !a[2]);
B2L18 = CARRY(B2L18_cout_1);


--B2L19 is add4b:inst|add~97 at LC_X7_Y1_N2
--operation mode is arithmetic

B2L19 = a[1] $ b[1] $ !B2L23;

--B2L20 is add4b:inst|add~99 at LC_X7_Y1_N2
--operation mode is arithmetic

B2L20_cout_0 = a[1] & (b[1] # !B2L23) # !a[1] & b[1] & !B2L23;
B2L20 = CARRY(B2L20_cout_0);

--B2L21 is add4b:inst|add~99COUT1_115 at LC_X7_Y1_N2
--operation mode is arithmetic

B2L21_cout_1 = a[1] & (b[1] # !B2L24) # !a[1] & b[1] & !B2L24;
B2L21 = CARRY(B2L21_cout_1);


--B2L22 is add4b:inst|add~102 at LC_X7_Y1_N1
--operation mode is arithmetic

B2L22 = a[0] $ b[0] $ B2L26;

--B2L23 is add4b:inst|add~104 at LC_X7_Y1_N1
--operation mode is arithmetic

B2L23_cout_0 = a[0] & !b[0] & !B2L26 # !a[0] & (!B2L26 # !b[0]);
B2L23 = CARRY(B2L23_cout_0);

--B2L24 is add4b:inst|add~104COUT1_114 at LC_X7_Y1_N1
--operation mode is arithmetic

B2L24_cout_1 = a[0] & !b[0] & !B2L27 # !a[0] & (!B2L27 # !b[0]);
B2L24 = CARRY(B2L24_cout_1);


--B2L26 is add4b:inst|add~109 at LC_X7_Y1_N0
--operation mode is arithmetic

B2L26_cout_0 = cin;
B2L26 = CARRY(B2L26_cout_0);

--B2L27 is add4b:inst|add~109COUT1_113 at LC_X7_Y1_N0
--operation mode is arithmetic

B2L27_cout_1 = cin;
B2L27 = CARRY(B2L27_cout_1);


--b[7] is b[7] at PIN_38
--operation mode is input

b[7] = INPUT();


--a[7] is a[7] at PIN_92
--operation mode is input

a[7] = INPUT();


--b[6] is b[6] at PIN_36
--operation mode is input

b[6] = INPUT();


--a[6] is a[6] at PIN_5
--operation mode is input

a[6] = INPUT();


--b[5] is b[5] at PIN_40
--operation mode is input

b[5] = INPUT();


--a[5] is a[5] at PIN_98
--operation mode is input

a[5] = INPUT();


--b[4] is b[4] at PIN_41
--operation mode is input

b[4] = INPUT();


--a[4] is a[4] at PIN_24
--operation mode is input

a[4] = INPUT();


--b[3] is b[3] at PIN_47
--operation mode is input

b[3] = INPUT();


--a[3] is a[3] at PIN_35
--operation mode is input

a[3] = INPUT();


--b[2] is b[2] at PIN_26
--operation mode is input

b[2] = INPUT();


--a[2] is a[2] at PIN_27
--operation mode is input

a[2] = INPUT();


--b[1] is b[1] at PIN_23
--operation mode is input

b[1] = INPUT();


--a[1] is a[1] at PIN_34
--operation mode is input

a[1] = INPUT();


--b[0] is b[0] at PIN_90
--operation mode is input

b[0] = INPUT();


--a[0] is a[0] at PIN_91
--operation mode is input

a[0] = INPUT();


--cin is cin at PIN_28
--operation mode is input

cin = INPUT();


--cout is cout at PIN_39
--operation mode is output

cout = OUTPUT(B2L1);


--s[7] is s[7] at PIN_21
--operation mode is output

s[7] = OUTPUT(B2L2);


--s[6] is s[6] at PIN_22
--operation mode is output

s[6] = OUTPUT(B2L5);


--s[5] is s[5] at PIN_29
--operation mode is output

s[5] = OUTPUT(B2L8);


--s[4] is s[4] at PIN_2
--operation mode is output

s[4] = OUTPUT(B2L11);


--s[3] is s[3] at PIN_37
--operation mode is output

s[3] = OUTPUT(B2L14);


--s[2] is s[2] at PIN_97
--operation mode is output

s[2] = OUTPUT(B2L16);


--s[1] is s[1] at PIN_100
--operation mode is output

s[1] = OUTPUT(B2L19);


--s[0] is s[0] at PIN_25
--operation mode is output

s[0] = OUTPUT(B2L22);




⌨️ 快捷键说明

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