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

📄 uart.fit.eqn

📁 一个完整的用cpld实现串口功能的代码。经过验证
💻 EQN
📖 第 1 页 / 共 4 页
字号:
--operation mode is arithmetic

A1L65_cout_0 = cnt_delay[10] & !A1L37;
A1L65 = CARRY(A1L65_cout_0);

--A1L75 is add~997COUT1_1150 at LC_X15_Y2_N0
--operation mode is arithmetic

A1L75_cout_1 = cnt_delay[10] & !A1L37;
A1L75 = CARRY(A1L75_cout_1);


--A1L85 is add~1000 at LC_X15_Y2_N7
--operation mode is arithmetic

A1L85_carry_eqn = (!A1L86 & A1L26) # (A1L86 & A1L36);
A1L85 = cnt_delay[17] $ A1L85_carry_eqn;

--A1L95 is add~1002 at LC_X15_Y2_N7
--operation mode is arithmetic

A1L95_cout_0 = !A1L26 # !cnt_delay[17];
A1L95 = CARRY(A1L95_cout_0);

--A1L06 is add~1002COUT1_1162 at LC_X15_Y2_N7
--operation mode is arithmetic

A1L06_cout_1 = !A1L36 # !cnt_delay[17];
A1L06 = CARRY(A1L06_cout_1);


--A1L16 is add~1005 at LC_X15_Y2_N6
--operation mode is arithmetic

A1L16_carry_eqn = (!A1L86 & A1L56) # (A1L86 & A1L66);
A1L16 = cnt_delay[16] $ !A1L16_carry_eqn;

--A1L26 is add~1007 at LC_X15_Y2_N6
--operation mode is arithmetic

A1L26_cout_0 = cnt_delay[16] & !A1L56;
A1L26 = CARRY(A1L26_cout_0);

--A1L36 is add~1007COUT1_1160 at LC_X15_Y2_N6
--operation mode is arithmetic

A1L36_cout_1 = cnt_delay[16] & !A1L66;
A1L36 = CARRY(A1L36_cout_1);


--A1L46 is add~1010 at LC_X15_Y2_N5
--operation mode is arithmetic

A1L46_carry_eqn = A1L86;
A1L46 = cnt_delay[15] $ (A1L46_carry_eqn);

--A1L56 is add~1012 at LC_X15_Y2_N5
--operation mode is arithmetic

A1L56_cout_0 = !A1L86 # !cnt_delay[15];
A1L56 = CARRY(A1L56_cout_0);

--A1L66 is add~1012COUT1_1158 at LC_X15_Y2_N5
--operation mode is arithmetic

A1L66_cout_1 = !A1L86 # !cnt_delay[15];
A1L66 = CARRY(A1L66_cout_1);


--A1L76 is add~1015 at LC_X15_Y2_N4
--operation mode is arithmetic

A1L76_carry_eqn = (!A1L37 & A1L05) # (A1L37 & A1L15);
A1L76 = cnt_delay[14] $ !A1L76_carry_eqn;

--A1L86 is add~1017 at LC_X15_Y2_N4
--operation mode is arithmetic

A1L86 = CARRY(cnt_delay[14] & !A1L15);


--A1L96 is add~1020 at LC_X15_Y2_N1
--operation mode is arithmetic

A1L96_carry_eqn = (!A1L37 & A1L65) # (A1L37 & A1L75);
A1L96 = cnt_delay[11] $ A1L96_carry_eqn;

--A1L07 is add~1022 at LC_X15_Y2_N1
--operation mode is arithmetic

A1L07_cout_0 = !A1L65 # !cnt_delay[11];
A1L07 = CARRY(A1L07_cout_0);

--A1L17 is add~1022COUT1_1152 at LC_X15_Y2_N1
--operation mode is arithmetic

A1L17_cout_1 = !A1L75 # !cnt_delay[11];
A1L17 = CARRY(A1L17_cout_1);


--A1L27 is add~1025 at LC_X14_Y2_N9
--operation mode is arithmetic

A1L27_carry_eqn = (!A1L48 & A1L89) # (A1L48 & A1L99);
A1L27 = cnt_delay[9] $ A1L27_carry_eqn;

--A1L37 is add~1027 at LC_X14_Y2_N9
--operation mode is arithmetic

A1L37 = CARRY(!A1L99 # !cnt_delay[9]);


--A1L47 is add~1030 at LC_X14_Y2_N7
--operation mode is arithmetic

A1L47_carry_eqn = (!A1L48 & A1L87) # (A1L48 & A1L97);
A1L47 = cnt_delay[7] $ A1L47_carry_eqn;

--A1L57 is add~1032 at LC_X14_Y2_N7
--operation mode is arithmetic

A1L57_cout_0 = !A1L87 # !cnt_delay[7];
A1L57 = CARRY(A1L57_cout_0);

--A1L67 is add~1032COUT1_1146 at LC_X14_Y2_N7
--operation mode is arithmetic

A1L67_cout_1 = !A1L97 # !cnt_delay[7];
A1L67 = CARRY(A1L67_cout_1);


--A1L77 is add~1035 at LC_X14_Y2_N6
--operation mode is arithmetic

A1L77_carry_eqn = (!A1L48 & A1L18) # (A1L48 & A1L28);
A1L77 = cnt_delay[6] $ (!A1L77_carry_eqn);

--A1L87 is add~1037 at LC_X14_Y2_N6
--operation mode is arithmetic

A1L87_cout_0 = cnt_delay[6] & (!A1L18);
A1L87 = CARRY(A1L87_cout_0);

--A1L97 is add~1037COUT1_1144 at LC_X14_Y2_N6
--operation mode is arithmetic

A1L97_cout_1 = cnt_delay[6] & (!A1L28);
A1L97 = CARRY(A1L97_cout_1);


--A1L08 is add~1040 at LC_X14_Y2_N5
--operation mode is arithmetic

A1L08_carry_eqn = A1L48;
A1L08 = cnt_delay[5] $ A1L08_carry_eqn;

--A1L18 is add~1042 at LC_X14_Y2_N5
--operation mode is arithmetic

A1L18_cout_0 = !A1L48 # !cnt_delay[5];
A1L18 = CARRY(A1L18_cout_0);

--A1L28 is add~1042COUT1_1142 at LC_X14_Y2_N5
--operation mode is arithmetic

A1L28_cout_1 = !A1L48 # !cnt_delay[5];
A1L28 = CARRY(A1L28_cout_1);


--A1L38 is add~1045 at LC_X14_Y2_N4
--operation mode is arithmetic

A1L38 = cnt_delay[4] $ !A1L68;

--A1L48 is add~1047 at LC_X14_Y2_N4
--operation mode is arithmetic

A1L48 = CARRY(cnt_delay[4] & !A1L78);


--A1L58 is add~1050 at LC_X14_Y2_N3
--operation mode is arithmetic

A1L58 = cnt_delay[3] $ A1L98;

--A1L68 is add~1052 at LC_X14_Y2_N3
--operation mode is arithmetic

A1L68_cout_0 = !A1L98 # !cnt_delay[3];
A1L68 = CARRY(A1L68_cout_0);

--A1L78 is add~1052COUT1_1140 at LC_X14_Y2_N3
--operation mode is arithmetic

A1L78_cout_1 = !A1L09 # !cnt_delay[3];
A1L78 = CARRY(A1L78_cout_1);


--A1L88 is add~1055 at LC_X14_Y2_N2
--operation mode is arithmetic

A1L88 = cnt_delay[2] $ !A1L29;

--A1L98 is add~1057 at LC_X14_Y2_N2
--operation mode is arithmetic

A1L98_cout_0 = cnt_delay[2] & !A1L29;
A1L98 = CARRY(A1L98_cout_0);

--A1L09 is add~1057COUT1_1138 at LC_X14_Y2_N2
--operation mode is arithmetic

A1L09_cout_1 = cnt_delay[2] & !A1L39;
A1L09 = CARRY(A1L09_cout_1);


--A1L19 is add~1060 at LC_X14_Y2_N1
--operation mode is arithmetic

A1L19 = cnt_delay[1] $ A1L59;

--A1L29 is add~1062 at LC_X14_Y2_N1
--operation mode is arithmetic

A1L29_cout_0 = !A1L59 # !cnt_delay[1];
A1L29 = CARRY(A1L29_cout_0);

--A1L39 is add~1062COUT1_1136 at LC_X14_Y2_N1
--operation mode is arithmetic

A1L39_cout_1 = !A1L69 # !cnt_delay[1];
A1L39 = CARRY(A1L39_cout_1);


--A1L49 is add~1065 at LC_X14_Y2_N0
--operation mode is arithmetic

A1L49 = !cnt_delay[0];

--A1L59 is add~1067 at LC_X14_Y2_N0
--operation mode is arithmetic

A1L59_cout_0 = cnt_delay[0];
A1L59 = CARRY(A1L59_cout_0);

--A1L69 is add~1067COUT1_1134 at LC_X14_Y2_N0
--operation mode is arithmetic

A1L69_cout_1 = cnt_delay[0];
A1L69 = CARRY(A1L69_cout_1);


--A1L79 is add~1070 at LC_X14_Y2_N8
--operation mode is arithmetic

A1L79_carry_eqn = (!A1L48 & A1L57) # (A1L48 & A1L67);
A1L79 = cnt_delay[8] $ !A1L79_carry_eqn;

--A1L89 is add~1072 at LC_X14_Y2_N8
--operation mode is arithmetic

A1L89_cout_0 = cnt_delay[8] & !A1L57;
A1L89 = CARRY(A1L89_cout_0);

--A1L99 is add~1072COUT1_1148 at LC_X14_Y2_N8
--operation mode is arithmetic

A1L99_cout_1 = cnt_delay[8] & !A1L67;
A1L99 = CARRY(A1L99_cout_1);


--A1L001 is add~1075 at LC_X15_Y2_N9
--operation mode is normal

A1L001_carry_eqn = (!A1L86 & A1L74) # (A1L86 & A1L84);
A1L001 = A1L001_carry_eqn $ cnt_delay[19];


--txd_buf[4] is txd_buf[4] at LC_X13_Y3_N8
--operation mode is normal

txd_buf[4]_lut_out = A1L592 & (A1L292) # !A1L592 & (A1L692 & txd_buf[5] # !A1L692 & (A1L292));
txd_buf[4] = DFFEAS(txd_buf[4]_lut_out, GLOBAL(clkbaud8x), GLOBAL(rst), , , , , , );


--A1L882 is txd_buf~1752 at LC_X12_Y5_N1
--operation mode is normal

A1L882 = send_state[2] & (!send_state[1] & !send_state[0]) # !send_state[2] & (send_state[0]);


--A1L982 is txd_buf~1753 at LC_X13_Y5_N8
--operation mode is normal

A1L982 = state_tras[3] & (A1L882) # !state_tras[3] & (txd_buf[4]);


--A1L252 is start_delaycnt~225 at LC_X16_Y2_N0
--operation mode is normal

A1L252 = cnt_delay[12] # cnt_delay[10] # cnt_delay[19] # key_input;


--A1L352 is start_delaycnt~226 at LC_X16_Y2_N1
--operation mode is normal

A1L352 = cnt_delay[18] # cnt_delay[8] # cnt_delay[13] # A1L252;


--txd_buf[5] is txd_buf[5] at LC_X13_Y3_N3
--operation mode is normal

txd_buf[5]_lut_out = A1L772 & (txd_buf[6]) # !A1L772 & A1L392;
txd_buf[5] = DFFEAS(txd_buf[5]_lut_out, GLOBAL(clkbaud8x), GLOBAL(rst), , A1L472, VCC, , , !key_entry2);


--A1L092 is txd_buf~1754 at LC_X13_Y2_N8
--operation mode is normal

A1L092 = state_tras[1] & (state_tras[2] # !txd_buf[4]) # !state_tras[1] & state_tras[2] & !txd_buf[4];


--A1L192 is txd_buf~1755 at LC_X13_Y3_N6
--operation mode is normal

A1L192 = key_entry2 & (A1L671 & A1L092) # !key_entry2 & key_entry1;


--A1L292 is txd_buf~1756 at LC_X13_Y3_N7
--operation mode is normal

A1L292 = A1L692 & (state_tras[0] & (!A1L192) # !state_tras[0] & txd_buf[4]) # !A1L692 & (txd_buf[4] # A1L192);


--A1L392 is txd_buf~1758 at LC_X13_Y2_N1
--operation mode is normal

A1L392 = state_tras[1] & (!send_state[1] # !send_state[2]);


--txd_buf[6] is txd_buf[6] at LC_X13_Y3_N1
--operation mode is normal

txd_buf[6]_lut_out = !A1L772 & (A1L492);
txd_buf[6] = DFFEAS(txd_buf[6]_lut_out, GLOBAL(clkbaud8x), GLOBAL(rst), , A1L472, VCC, , , !key_entry2);


--A1L492 is txd_buf~1759 at LC_X13_Y2_N0
--operation mode is normal

A1L492 = !state_tras[1] # !send_state[1] # !send_state[2];


--A1L861 is Mux~3251 at LC_X13_Y4_N3
--operation mode is normal

A1L861 = !state_tras[1] & !state_tras[3] & !state_tras[2] & !A1L851;


--A1L592 is txd_buf~1760 at LC_X13_Y3_N9
--operation mode is normal

A1L592 = state_tras[3] $ (!state_tras[1] & !state_tras[2] & !state_tras[0]);


--A1L692 is txd_buf~1761 at LC_X13_Y3_N4
--operation mode is normal

A1L692 = div8_tras_reg[2] & key_entry2 & div8_tras_reg[0] & div8_tras_reg[1];


--rst is rst at PIN_110
--operation mode is input

rst = INPUT();


--clk is clk at PIN_127
--operation mode is input

clk = INPUT();


--key_input is key_input at PIN_72
--operation mode is input

key_input = INPUT();


--rxd is rxd at PIN_77
--operation mode is input

rxd = INPUT();


--txd is txd at PIN_79
--operation mode is output

txd = OUTPUT(!txd_reg);


--en is en at PIN_133
--operation mode is output

en = OUTPUT(GND);


--seg_data[0] is seg_data[0] at PIN_120
--operation mode is output

seg_data[0] = OUTPUT(VCC);


--seg_data[1] is seg_data[1] at PIN_119
--operation mode is output

seg_data[1] = OUTPUT(A1L191);


--seg_data[2] is seg_data[2] at PIN_117
--operation mode is output

seg_data[2] = OUTPUT(A1L491);


--seg_data[3] is seg_data[3] at PIN_114
--operation mode is output

seg_data[3] = OUTPUT(A1L891);


--seg_data[4] is seg_data[4] at PIN_113
--operation mode is output

seg_data[4] = OUTPUT(A1L302);


--seg_data[5] is seg_data[5] at PIN_111
--operation mode is output

seg_data[5] = OUTPUT(A1L602);


--seg_data[6] is seg_data[6] at PIN_108
--operation mode is output

seg_data[6] = OUTPUT(A1L902);


--seg_data[7] is seg_data[7] at PIN_109
--operation mode is output

seg_data[7] = OUTPUT(A1L312);


⌨️ 快捷键说明

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