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

📄 adder8.fit.eqn

📁 很多vhdl例程代码
💻 EQN
📖 第 1 页 / 共 3 页
字号:

C1_dout1[1]_lut_out = GND;
C1_dout1[1] = DFFEAS(C1_dout1[1]_lut_out, GLOBAL(clock_48M), VCC, , C1_div_clk, key[1], , , VCC);


--C1_dout2[1] is key_led:inst1|dout2[1] at LC_X27_Y13_N3
--operation mode is normal

C1_dout2[1]_lut_out = C1_dout1[1];
C1_dout2[1] = DFFEAS(C1_dout2[1]_lut_out, GLOBAL(clock_48M), VCC, , C1_div_clk, , , , );


--C1_key_edge[1] is key_led:inst1|key_edge[1] at LC_X27_Y13_N6
--operation mode is normal

C1_dout3[1]_qfbk = C1_dout3[1];
C1_key_edge[1] = C1_buff[1] & !C1_dout1[1] & !C1_dout3[1]_qfbk & !C1_dout2[1];

--C1_dout3[1] is key_led:inst1|dout3[1] at LC_X27_Y13_N6
--operation mode is normal

C1_dout3[1] = DFFEAS(C1_key_edge[1], GLOBAL(clock_48M), VCC, , C1_div_clk, C1_dout2[1], , , VCC);


--C1_buff[0] is key_led:inst1|buff[0] at LC_X27_Y12_N2
--operation mode is normal

C1_buff[0]_lut_out = C1_dout1[0] # C1_dout2[0] # C1_dout3[0];
C1_buff[0] = DFFEAS(C1_buff[0]_lut_out, GLOBAL(clock_48M), VCC, , , , , , );


--C1_dout1[0] is key_led:inst1|dout1[0] at LC_X26_Y9_N9
--operation mode is normal

C1_dout1[0]_lut_out = GND;
C1_dout1[0] = DFFEAS(C1_dout1[0]_lut_out, GLOBAL(clock_48M), VCC, , C1_div_clk, key[0], , , VCC);


--C1_dout2[0] is key_led:inst1|dout2[0] at LC_X26_Y9_N5
--operation mode is normal

C1_dout2[0]_lut_out = GND;
C1_dout2[0] = DFFEAS(C1_dout2[0]_lut_out, GLOBAL(clock_48M), VCC, , C1_div_clk, C1_dout1[0], , , VCC);


--C1_key_edge[0] is key_led:inst1|key_edge[0] at LC_X27_Y13_N8
--operation mode is normal

C1_dout3[0]_qfbk = C1_dout3[0];
C1_key_edge[0] = !C1_dout1[0] & !C1_dout2[0] & !C1_dout3[0]_qfbk & C1_buff[0];

--C1_dout3[0] is key_led:inst1|dout3[0] at LC_X27_Y13_N8
--operation mode is normal

C1_dout3[0] = DFFEAS(C1_key_edge[0], GLOBAL(clock_48M), VCC, , C1_div_clk, C1_dout2[0], , , VCC);


--C1_buff[3] is key_led:inst1|buff[3] at LC_X26_Y16_N2
--operation mode is normal

C1_buff[3]_lut_out = C1_dout1[3] # C1_dout2[3] # C1_dout3[3];
C1_buff[3] = DFFEAS(C1_buff[3]_lut_out, GLOBAL(clock_48M), VCC, , , , , , );


--C1_dout1[3] is key_led:inst1|dout1[3] at LC_X26_Y15_N9
--operation mode is normal

C1_dout1[3]_lut_out = key[3];
C1_dout1[3] = DFFEAS(C1_dout1[3]_lut_out, GLOBAL(clock_48M), VCC, , C1_div_clk, , , , );


--C1_dout2[3] is key_led:inst1|dout2[3] at LC_X26_Y15_N8
--operation mode is normal

C1_dout2[3]_lut_out = GND;
C1_dout2[3] = DFFEAS(C1_dout2[3]_lut_out, GLOBAL(clock_48M), VCC, , C1_div_clk, C1_dout1[3], , , VCC);


--C1_key_edge[3] is key_led:inst1|key_edge[3] at LC_X26_Y15_N6
--operation mode is normal

C1_dout3[3]_qfbk = C1_dout3[3];
C1_key_edge[3] = !C1_dout1[3] & !C1_dout2[3] & !C1_dout3[3]_qfbk & C1_buff[3];

--C1_dout3[3] is key_led:inst1|dout3[3] at LC_X26_Y15_N6
--operation mode is normal

C1_dout3[3] = DFFEAS(C1_key_edge[3], GLOBAL(clock_48M), VCC, , C1_div_clk, C1_dout2[3], , , VCC);


--C1L311 is key_led:inst1|hex_r[1]~184 at LC_X26_Y15_N5
--operation mode is normal

C1L311 = C1_hex_r[0] & C1_key_edge[3];


--C1L021 is key_led:inst1|hex_r[5]~185 at LC_X25_Y13_N2
--operation mode is normal

C1L021 = C1_hex_r[4] & (C1_key_edge[2]);


--C1L721 is key_led:inst1|hex_r[9]~186 at LC_X27_Y13_N2
--operation mode is normal

C1L721 = C1_hex_r[8] & C1_key_edge[1];


--C1L431 is key_led:inst1|hex_r[13]~187 at LC_X26_Y13_N6
--operation mode is normal

C1L431 = C1_hex_r[12] & (C1_key_edge[0]);


--C1L511 is key_led:inst1|hex_r[2]~188 at LC_X26_Y15_N4
--operation mode is normal

C1L511 = C1_hex_r[1] & C1_hex_r[0] & C1_key_edge[3];


--C1L221 is key_led:inst1|hex_r[6]~189 at LC_X25_Y13_N7
--operation mode is normal

C1L221 = C1_hex_r[5] & C1_hex_r[4] & (C1_key_edge[2]);


--C1L921 is key_led:inst1|hex_r[10]~190 at LC_X27_Y13_N4
--operation mode is normal

C1L921 = C1_hex_r[9] & (C1_hex_r[8] & C1_key_edge[1]);


--C1L631 is key_led:inst1|hex_r[14]~191 at LC_X26_Y13_N2
--operation mode is normal

C1L631 = C1_hex_r[12] & C1_hex_r[13] & C1_key_edge[0];


--C1L711 is key_led:inst1|hex_r[3]~192 at LC_X26_Y15_N2
--operation mode is normal

C1L711 = C1_hex_r[0] & C1_hex_r[2] & C1_hex_r[1] & C1_key_edge[3];


--C1L421 is key_led:inst1|hex_r[7]~193 at LC_X25_Y13_N6
--operation mode is normal

C1L421 = C1_hex_r[5] & C1_hex_r[4] & C1_hex_r[6] & C1_key_edge[2];


--C1L131 is key_led:inst1|hex_r[11]~194 at LC_X27_Y13_N7
--operation mode is normal

C1L131 = C1_hex_r[10] & C1_hex_r[8] & C1_hex_r[9] & C1_key_edge[1];


--C1L831 is key_led:inst1|hex_r[15]~195 at LC_X27_Y13_N0
--operation mode is normal

C1L831 = C1_hex_r[12] & C1_hex_r[13] & C1_key_edge[0] & C1_hex_r[14];


--C1_count[5] is key_led:inst1|count[5] at LC_X23_Y15_N7
--operation mode is arithmetic

C1_count[5]_carry_eqn = (!C1L92 & C1L43) # (C1L92 & C1L53);
C1_count[5]_lut_out = C1_count[5] $ (C1_count[5]_carry_eqn);
C1_count[5] = DFFEAS(C1_count[5]_lut_out, GLOBAL(clock_48M), VCC, , , , , C1L151, );

--C1L73 is key_led:inst1|count[5]~254 at LC_X23_Y15_N7
--operation mode is arithmetic

C1L73_cout_0 = !C1L43 # !C1_count[5];
C1L73 = CARRY(C1L73_cout_0);

--C1L83 is key_led:inst1|count[5]~254COUT1_282 at LC_X23_Y15_N7
--operation mode is arithmetic

C1L83_cout_1 = !C1L53 # !C1_count[5];
C1L83 = CARRY(C1L83_cout_1);


--C1_count[4] is key_led:inst1|count[4] at LC_X23_Y15_N6
--operation mode is arithmetic

C1_count[4]_carry_eqn = (!C1L92 & C1L13) # (C1L92 & C1L23);
C1_count[4]_lut_out = C1_count[4] $ (!C1_count[4]_carry_eqn);
C1_count[4] = DFFEAS(C1_count[4]_lut_out, GLOBAL(clock_48M), VCC, , , , , C1L151, );

--C1L43 is key_led:inst1|count[4]~258 at LC_X23_Y15_N6
--operation mode is arithmetic

C1L43_cout_0 = C1_count[4] & (!C1L13);
C1L43 = CARRY(C1L43_cout_0);

--C1L53 is key_led:inst1|count[4]~258COUT1_281 at LC_X23_Y15_N6
--operation mode is arithmetic

C1L53_cout_1 = C1_count[4] & (!C1L23);
C1L53 = CARRY(C1L53_cout_1);


--C1_count[3] is key_led:inst1|count[3] at LC_X23_Y15_N5
--operation mode is arithmetic

C1_count[3]_carry_eqn = C1L92;
C1_count[3]_lut_out = C1_count[3] $ C1_count[3]_carry_eqn;
C1_count[3] = DFFEAS(C1_count[3]_lut_out, GLOBAL(clock_48M), VCC, , , , , C1L151, );

--C1L13 is key_led:inst1|count[3]~262 at LC_X23_Y15_N5
--operation mode is arithmetic

C1L13_cout_0 = !C1L92 # !C1_count[3];
C1L13 = CARRY(C1L13_cout_0);

--C1L23 is key_led:inst1|count[3]~262COUT1_280 at LC_X23_Y15_N5
--operation mode is arithmetic

C1L23_cout_1 = !C1L92 # !C1_count[3];
C1L23 = CARRY(C1L23_cout_1);


--C1_count[2] is key_led:inst1|count[2] at LC_X23_Y15_N4
--operation mode is arithmetic

C1_count[2]_lut_out = C1_count[2] $ !C1L62;
C1_count[2] = DFFEAS(C1_count[2]_lut_out, GLOBAL(clock_48M), VCC, , , , , C1L151, );

--C1L92 is key_led:inst1|count[2]~266 at LC_X23_Y15_N4
--operation mode is arithmetic

C1L92 = CARRY(C1_count[2] & !C1L72);


--C1_count[1] is key_led:inst1|count[1] at LC_X23_Y15_N3
--operation mode is arithmetic

C1_count[1]_lut_out = C1_count[1] $ C1L32;
C1_count[1] = DFFEAS(C1_count[1]_lut_out, GLOBAL(clock_48M), VCC, , , , , C1L151, );

--C1L62 is key_led:inst1|count[1]~270 at LC_X23_Y15_N3
--operation mode is arithmetic

C1L62_cout_0 = !C1L32 # !C1_count[1];
C1L62 = CARRY(C1L62_cout_0);

--C1L72 is key_led:inst1|count[1]~270COUT1_279 at LC_X23_Y15_N3
--operation mode is arithmetic

C1L72_cout_1 = !C1L42 # !C1_count[1];
C1L72 = CARRY(C1L72_cout_1);


--C1_count[0] is key_led:inst1|count[0] at LC_X23_Y15_N2
--operation mode is arithmetic

C1_count[0]_lut_out = !C1_count[0];
C1_count[0] = DFFEAS(C1_count[0]_lut_out, GLOBAL(clock_48M), VCC, , , , , C1L151, );

--C1L32 is key_led:inst1|count[0]~274 at LC_X23_Y15_N2
--operation mode is arithmetic

C1L32_cout_0 = C1_count[0];
C1L32 = CARRY(C1L32_cout_0);

--C1L42 is key_led:inst1|count[0]~274COUT1_278 at LC_X23_Y15_N2
--operation mode is arithmetic

C1L42_cout_1 = C1_count[0];
C1L42 = CARRY(C1L42_cout_1);


--clock_48M is clock_48M at PIN_28
--operation mode is input

clock_48M = INPUT();


--key[7] is key[7] at PIN_156
--operation mode is input

key[7] = INPUT();


--key[6] is key[6] at PIN_158
--operation mode is input

key[6] = INPUT();


--key[5] is key[5] at PIN_141
--operation mode is input

key[5] = INPUT();


--key[4] is key[4] at PIN_143
--operation mode is input

key[4] = INPUT();


--key[2] is key[2] at PIN_123
--operation mode is input

key[2] = INPUT();


--key[1] is key[1] at PIN_122
--operation mode is input

key[1] = INPUT();


--key[0] is key[0] at PIN_121
--operation mode is input

key[0] = INPUT();


--key[3] is key[3] at PIN_124
--operation mode is input

key[3] = INPUT();


--dig[7] is dig[7] at PIN_205
--operation mode is output

dig[7] = OUTPUT(C1_dig_r[7]);


--dig[6] is dig[6] at PIN_198
--operation mode is output

dig[6] = OUTPUT(C1_dig_r[6]);


--dig[5] is dig[5] at PIN_199
--operation mode is output

dig[5] = OUTPUT(C1_dig_r[5]);


--dig[4] is dig[4] at PIN_204
--operation mode is output

dig[4] = OUTPUT(C1_dig_r[4]);


--dig[3] is dig[3] at PIN_161
--operation mode is output

dig[3] = OUTPUT(C1_dig_r[3]);


--dig[2] is dig[2] at PIN_162
--operation mode is output

dig[2] = OUTPUT(C1_dig_r[2]);


--dig[1] is dig[1] at PIN_159
--operation mode is output

dig[1] = OUTPUT(C1_dig_r[1]);


--dig[0] is dig[0] at PIN_160
--operation mode is output

dig[0] = OUTPUT(C1_dig_r[0]);


--led[7] is led[7] at PIN_49
--operation mode is output

led[7] = OUTPUT(VCC);


--led[6] is led[6] at PIN_48
--operation mode is output

led[6] = OUTPUT(VCC);


--led[5] is led[5] at PIN_47
--operation mode is output

led[5] = OUTPUT(VCC);


--led[4] is led[4] at PIN_176
--operation mode is output

led[4] = OUTPUT(VCC);


--led[3] is led[3] at PIN_55
--operation mode is output

led[3] = OUTPUT(!C1_bin_r[3]);


--led[2] is led[2] at PIN_54
--operation mode is output

led[2] = OUTPUT(!C1_bin_r[2]);


--led[1] is led[1] at PIN_53
--operation mode is output

led[1] = OUTPUT(!C1_bin_r[1]);


--led[0] is led[0] at PIN_50
--operation mode is output

led[0] = OUTPUT(!C1_bin_r[0]);


--seg[7] is seg[7] at PIN_164
--operation mode is output

seg[7] = OUTPUT(VCC);


--seg[6] is seg[6] at PIN_163
--operation mode is output

seg[6] = OUTPUT(!C1L171);


--seg[5] is seg[5] at PIN_166
--operation mode is output

seg[5] = OUTPUT(C1L071);


--seg[4] is seg[4] at PIN_165
--operation mode is output

seg[4] = OUTPUT(C1L961);


--seg[3] is seg[3] at PIN_168
--operation mode is output

seg[3] = OUTPUT(C1L861);


--seg[2] is seg[2] at PIN_167
--operation mode is output

seg[2] = OUTPUT(C1L761);


--seg[1] is seg[1] at PIN_170
--operation mode is output

seg[1] = OUTPUT(C1L661);


--seg[0] is seg[0] at PIN_169
--operation mode is output

seg[0] = OUTPUT(C1L561);




⌨️ 快捷键说明

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