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

📄 i2c_master_top.fit.eqn

📁 verilog在cpld上实现i2c主从设备通讯功能
💻 EQN
📖 第 1 页 / 共 5 页
字号:

C1_dcmd_stop_lut_out = !wb_rst_i & C1_cmd_stop;
C1_dcmd_stop = DFFEAS(C1_dcmd_stop_lut_out, GLOBAL(wb_clk_i), GLOBAL(arst_i), , , , , , );


--C1L2 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|Decoder~129 at LC_X33_Y18_N9
--operation mode is normal

C1L2 = !B1_core_cmd[2] & !B1_core_cmd[1] & !B1_core_cmd[0] & B1_core_cmd[3];


--C1L32 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|c_state~1600 at LC_X33_Y18_N4
--operation mode is normal

C1L32 = C1_clk_en & (C1_c_state.rd_a) # !C1_clk_en & !C1_c_state.idle & (C1L2);


--C1_c_state.start_d is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|c_state.start_d at LC_X32_Y20_N7
--operation mode is normal

C1_c_state.start_d_lut_out = B1L5 & (C1_clk_en & C1_c_state.start_d # !C1_clk_en & (C1_c_state.start_c));
C1_c_state.start_d = DFFEAS(C1_c_state.start_d_lut_out, GLOBAL(wb_clk_i), GLOBAL(arst_i), , , , , , );


--C1L3 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|Decoder~130 at LC_X32_Y21_N2
--operation mode is normal

C1L3 = !B1_core_cmd[0] & !B1_core_cmd[3] & !B1_core_cmd[1] & B1_core_cmd[2];


--C1L33 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|c_state~1604 at LC_X32_Y21_N8
--operation mode is normal

C1L33 = C1_clk_en & (C1_c_state.wr_a) # !C1_clk_en & !C1_c_state.idle & (C1L3);


--C1L4 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|Decoder~131 at LC_X33_Y18_N3
--operation mode is normal

C1L4 = !B1_core_cmd[2] & B1_core_cmd[1] & !B1_core_cmd[0] & !B1_core_cmd[3];


--C1L34 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|c_state~1605 at LC_X32_Y20_N9
--operation mode is normal

C1L34 = C1_clk_en & C1_c_state.stop_a # !C1_clk_en & (!C1_c_state.idle & C1L4);


--C1_cnt[0] is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[0] at LC_X40_Y21_N2
--operation mode is arithmetic

C1_cnt[0]_lut_out = !C1_cnt[0];
C1_cnt[0] = DFFEAS(C1_cnt[0]_lut_out, GLOBAL(wb_clk_i), GLOBAL(arst_i), , C1L87, A1L67, , wb_rst_i, C1L6);

--C1L40 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[0]~641 at LC_X40_Y21_N2
--operation mode is arithmetic

C1L40_cout_0 = C1_cnt[0];
C1L40 = CARRY(C1L40_cout_0);

--C1L41 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[0]~641COUT1_712 at LC_X40_Y21_N2
--operation mode is arithmetic

C1L41_cout_1 = C1_cnt[0];
C1L41 = CARRY(C1L41_cout_1);


--C1_cnt[1] is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[1] at LC_X40_Y21_N3
--operation mode is arithmetic

C1_cnt[1]_lut_out = C1_cnt[1] $ (!C1L40);
C1_cnt[1] = DFFEAS(C1_cnt[1]_lut_out, GLOBAL(wb_clk_i), GLOBAL(arst_i), , C1L87, A1L69, , wb_rst_i, C1L6);

--C1L43 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[1]~645 at LC_X40_Y21_N3
--operation mode is arithmetic

C1L43_cout_0 = !C1_cnt[1] & (!C1L40);
C1L43 = CARRY(C1L43_cout_0);

--C1L44 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[1]~645COUT1_713 at LC_X40_Y21_N3
--operation mode is arithmetic

C1L44_cout_1 = !C1_cnt[1] & (!C1L41);
C1L44 = CARRY(C1L44_cout_1);


--C1L82 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[15]~648 at LC_X41_Y21_N2
--operation mode is normal

C1L82 = !C1_cnt[1] & !C1_cnt[0];


--C1_cnt[4] is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[4] at LC_X40_Y21_N6
--operation mode is arithmetic

C1_cnt[4]_carry_eqn = (!C1L46 & C1L48) # (C1L46 & C1L49);
C1_cnt[4]_lut_out = C1_cnt[4] $ C1_cnt[4]_carry_eqn;
C1_cnt[4] = DFFEAS(C1_cnt[4]_lut_out, GLOBAL(wb_clk_i), GLOBAL(arst_i), , C1L87, A1L76, , wb_rst_i, C1L6);

--C1L51 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[4]~650 at LC_X40_Y21_N6
--operation mode is arithmetic

C1L51_cout_0 = C1_cnt[4] # !C1L48;
C1L51 = CARRY(C1L51_cout_0);

--C1L52 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[4]~650COUT1_715 at LC_X40_Y21_N6
--operation mode is arithmetic

C1L52_cout_1 = C1_cnt[4] # !C1L49;
C1L52 = CARRY(C1L52_cout_1);


--C1_cnt[5] is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[5] at LC_X40_Y21_N7
--operation mode is arithmetic

C1_cnt[5]_carry_eqn = (!C1L46 & C1L51) # (C1L46 & C1L52);
C1_cnt[5]_lut_out = C1_cnt[5] $ (!C1_cnt[5]_carry_eqn);
C1_cnt[5] = DFFEAS(C1_cnt[5]_lut_out, GLOBAL(wb_clk_i), GLOBAL(arst_i), , C1L87, A1L78, , wb_rst_i, C1L6);

--C1L54 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[5]~654 at LC_X40_Y21_N7
--operation mode is arithmetic

C1L54_cout_0 = !C1_cnt[5] & (!C1L51);
C1L54 = CARRY(C1L54_cout_0);

--C1L55 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[5]~654COUT1_716 at LC_X40_Y21_N7
--operation mode is arithmetic

C1L55_cout_1 = !C1_cnt[5] & (!C1L52);
C1L55 = CARRY(C1L55_cout_1);


--C1_cnt[6] is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[6] at LC_X40_Y21_N8
--operation mode is arithmetic

C1_cnt[6]_carry_eqn = (!C1L46 & C1L54) # (C1L46 & C1L55);
C1_cnt[6]_lut_out = C1_cnt[6] $ (C1_cnt[6]_carry_eqn);
C1_cnt[6] = DFFEAS(C1_cnt[6]_lut_out, GLOBAL(wb_clk_i), GLOBAL(arst_i), , C1L87, A1L80, , wb_rst_i, C1L6);

--C1L57 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[6]~658 at LC_X40_Y21_N8
--operation mode is arithmetic

C1L57_cout_0 = C1_cnt[6] # !C1L54;
C1L57 = CARRY(C1L57_cout_0);

--C1L58 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[6]~658COUT1_717 at LC_X40_Y21_N8
--operation mode is arithmetic

C1L58_cout_1 = C1_cnt[6] # !C1L55;
C1L58 = CARRY(C1L58_cout_1);


--C1_cnt[7] is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[7] at LC_X40_Y21_N9
--operation mode is arithmetic

C1_cnt[7]_carry_eqn = (!C1L46 & C1L57) # (C1L46 & C1L58);
C1_cnt[7]_lut_out = C1_cnt[7] $ !C1_cnt[7]_carry_eqn;
C1_cnt[7] = DFFEAS(C1_cnt[7]_lut_out, GLOBAL(wb_clk_i), GLOBAL(arst_i), , C1L87, A1L82, , wb_rst_i, C1L6);

--C1L60 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[7]~662 at LC_X40_Y21_N9
--operation mode is arithmetic

C1L60 = CARRY(!C1_cnt[7] & !C1L58);


--C1L83 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[15]~665 at LC_X40_Y21_N0
--operation mode is normal

C1L83 = !C1_cnt[6] & !C1_cnt[4] & !C1_cnt[5] & !C1_cnt[7];


--C1_cnt[2] is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[2] at LC_X40_Y21_N4
--operation mode is arithmetic

C1_cnt[2]_lut_out = C1_cnt[2] $ (C1L43);
C1_cnt[2] = DFFEAS(C1_cnt[2]_lut_out, GLOBAL(wb_clk_i), GLOBAL(arst_i), , C1L87, A1L71, , wb_rst_i, C1L6);

--C1L46 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[2]~667 at LC_X40_Y21_N4
--operation mode is arithmetic

C1L46 = CARRY(C1_cnt[2] # !C1L44);


--C1_cnt[3] is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[3] at LC_X40_Y21_N5
--operation mode is arithmetic

C1_cnt[3]_carry_eqn = C1L46;
C1_cnt[3]_lut_out = C1_cnt[3] $ !C1_cnt[3]_carry_eqn;
C1_cnt[3] = DFFEAS(C1_cnt[3]_lut_out, GLOBAL(wb_clk_i), GLOBAL(arst_i), , C1L87, A1L73, , wb_rst_i, C1L6);

--C1L48 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[3]~671 at LC_X40_Y21_N5
--operation mode is arithmetic

C1L48_cout_0 = !C1_cnt[3] & !C1L46;
C1L48 = CARRY(C1L48_cout_0);

--C1L49 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[3]~671COUT1_714 at LC_X40_Y21_N5
--operation mode is arithmetic

C1L49_cout_1 = !C1_cnt[3] & !C1L46;
C1L49 = CARRY(C1L49_cout_1);


--C1L84 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[15]~674 at LC_X40_Y21_N1
--operation mode is normal

C1L84 = !C1_cnt[2] & C1L83 & !C1_cnt[3] & C1L82;


--C1_cnt[8] is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[8] at LC_X40_Y20_N0
--operation mode is arithmetic

C1_cnt[8]_carry_eqn = C1L60;
C1_cnt[8]_lut_out = C1_cnt[8] $ C1_cnt[8]_carry_eqn;
C1_cnt[8] = DFFEAS(C1_cnt[8]_lut_out, GLOBAL(wb_clk_i), GLOBAL(arst_i), , C1L87, A1L84, , wb_rst_i, C1L6);

--C1L62 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[8]~676 at LC_X40_Y20_N0
--operation mode is arithmetic

C1L62_cout_0 = C1_cnt[8] # !C1L60;
C1L62 = CARRY(C1L62_cout_0);

--C1L63 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[8]~676COUT1_718 at LC_X40_Y20_N0
--operation mode is arithmetic

C1L63_cout_1 = C1_cnt[8] # !C1L60;
C1L63 = CARRY(C1L63_cout_1);


--C1_cnt[9] is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[9] at LC_X40_Y20_N1
--operation mode is arithmetic

C1_cnt[9]_carry_eqn = (!C1L60 & C1L62) # (C1L60 & C1L63);
C1_cnt[9]_lut_out = C1_cnt[9] $ !C1_cnt[9]_carry_eqn;
C1_cnt[9] = DFFEAS(C1_cnt[9]_lut_out, GLOBAL(wb_clk_i), GLOBAL(arst_i), , C1L87, A1L87, , wb_rst_i, C1L6);

--C1L65 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[9]~680 at LC_X40_Y20_N1
--operation mode is arithmetic

C1L65_cout_0 = !C1_cnt[9] & !C1L62;
C1L65 = CARRY(C1L65_cout_0);

--C1L66 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[9]~680COUT1_719 at LC_X40_Y20_N1
--operation mode is arithmetic

C1L66_cout_1 = !C1_cnt[9] & !C1L63;
C1L66 = CARRY(C1L66_cout_1);


--C1_cnt[10] is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[10] at LC_X40_Y20_N2
--operation mode is arithmetic

C1_cnt[10]_carry_eqn = (!C1L60 & C1L65) # (C1L60 & C1L66);
C1_cnt[10]_lut_out = C1_cnt[10] $ (C1_cnt[10]_carry_eqn);
C1_cnt[10] = DFFEAS(C1_cnt[10]_lut_out, GLOBAL(wb_clk_i), GLOBAL(arst_i), , C1L87, A1L89, , wb_rst_i, C1L6);

--C1L68 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[10]~684 at LC_X40_Y20_N2
--operation mode is arithmetic

C1L68_cout_0 = C1_cnt[10] # !C1L65;
C1L68 = CARRY(C1L68_cout_0);

--C1L69 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[10]~684COUT1_720 at LC_X40_Y20_N2
--operation mode is arithmetic

C1L69_cout_1 = C1_cnt[10] # !C1L66;
C1L69 = CARRY(C1L69_cout_1);


--C1_cnt[11] is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[11] at LC_X40_Y20_N3
--operation mode is arithmetic

C1_cnt[11]_carry_eqn = (!C1L60 & C1L68) # (C1L60 & C1L69);
C1_cnt[11]_lut_out = C1_cnt[11] $ (!C1_cnt[11]_carry_eqn);
C1_cnt[11] = DFFEAS(C1_cnt[11]_lut_out, GLOBAL(wb_clk_i), GLOBAL(arst_i), , C1L87, A1L91, , wb_rst_i, C1L6);

--C1L71 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[11]~688 at LC_X40_Y20_N3
--operation mode is arithmetic

C1L71_cout_0 = !C1_cnt[11] & (!C1L68);
C1L71 = CARRY(C1L71_cout_0);

--C1L72 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[11]~688COUT1_721 at LC_X40_Y20_N3
--operation mode is arithmetic

C1L72_cout_1 = !C1_cnt[11] & (!C1L69);
C1L72 = CARRY(C1L72_cout_1);


--C1L85 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[15]~691 at LC_X39_Y20_N2
--operation mode is normal

C1L85 = !C1_cnt[9] & !C1_cnt[10] & !C1_cnt[8] & !C1_cnt[11];


--C1_cnt[12] is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[12] at LC_X40_Y20_N4
--operation mode is arithmetic

C1_cnt[12]_carry_eqn = (!C1L60 & C1L71) # (C1L60 & C1L72);
C1_cnt[12]_lut_out = C1_cnt[12] $ (C1_cnt[12]_carry_eqn);
C1_cnt[12] = DFFEAS(C1_cnt[12]_lut_out, GLOBAL(wb_clk_i), GLOBAL(arst_i), , C1L87, A1L93, , wb_rst_i, C1L6);

--C1L74 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[12]~693 at LC_X40_Y20_N4
--operation mode is arithmetic

C1L74 = CARRY(C1_cnt[12] # !C1L72);


--C1_cnt[13] is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[13] at LC_X40_Y20_N5
--operation mode is arithmetic

C1_cnt[13]_carry_eqn = C1L74;
C1_cnt[13]_lut_out = C1_cnt[13] $ !C1_cnt[13]_carry_eqn;
C1_cnt[13] = DFFEAS(C1_cnt[13]_lut_out, GLOBAL(wb_clk_i), GLOBAL(arst_i), , C1L87, A1L95, , wb_rst_i, C1L6);

--C1L76 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[13]~697 at LC_X40_Y20_N5
--operation mode is arithmetic

C1L76_cout_0 = !C1_cnt[13] & !C1L74;
C1L76 = CARRY(C1L76_cout_0);

--C1L77 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[13]~697COUT1_722 at LC_X40_Y20_N5
--operation mode is arithmetic

C1L77_cout_1 = !C1_cnt[13] & !C1L74;
C1L77 = CARRY(C1L77_cout_1);


--C1_cnt[14] is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[14] at LC_X40_Y20_N6
--operation mode is arithmetic

C1_cnt[14]_carry_eqn = (!C1L74 & C1L76) # (C1L74 & C1L77);
C1_cnt[14]_lut_out = C1_cnt[14] $ C1_cnt[14]_carry_eqn;
C1_cnt[14] = DFFEAS(C1_cnt[14]_lut_out, GLOBAL(wb_clk_i), GLOBAL(arst_i), , C1L87, A1L97, , wb_rst_i, C1L6);

--C1L79 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[14]~701 at LC_X40_Y20_N6
--operation mode is arithmetic

C1L79_cout_0 = C1_cnt[14] # !C1L76;
C1L79 = CARRY(C1L79_cout_0);

--C1L80 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[14]~701COUT1_723 at LC_X40_Y20_N6
--operation mode is arithmetic

C1L80_cout_1 = C1_cnt[14] # !C1L77;
C1L80 = CARRY(C1L80_cout_1);


--C1_cnt[15] is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[15] at LC_X40_Y20_N7
--operation mode is normal

C1_cnt[15]_carry_eqn = (!C1L74 & C1L79) # (C1L74 & C1L80);
C1_cnt[15]_lut_out = C1_cnt[15] $ (!C1_cnt[15]_carry_eqn);
C1_cnt[15] = DFFEAS(C1_cnt[15]_lut_out, GLOBAL(wb_clk_i), GLOBAL(arst_i), , C1L87, A1L99, , wb_rst_i, C1L6);


--C1L86 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cnt[15]~708 at LC_X41_Y20_N2
--operation mode is normal

C1L86 = !C1_cnt[13] & !C1_cnt[14] & !C1_cnt[12] & !C1_cnt[15];


--C1L6 is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|always1~0 at LC_X40_Y20_N9
--operation mode is normal

C1L6 = C1L84 & C1L85 & C1L86 # !ctr[7];


--C1_dscl_oen is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|dscl_oen at LC_X32_Y20_N5
--operation mode is normal

C1_dscl_oen_lut_out = !C1_scl_oen;
C1_dscl_oen = DFFEAS(C1_dscl_oen_lut_out, GLOBAL(wb_clk_i), VCC, , , , , , );


--C1_sSCL is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|sSCL at LC_X33_Y21_N6
--operation mode is normal

C1_sSCL_lut_out = !wb_rst_i & !scl_pad_i;
C1_sSCL = DFFEAS(C1_sSCL_lut_out, GLOBAL(wb_clk_i), GLOBAL(arst_i), , , , , , );


--C1_cmd_ack is i2c_master_byte_ctrl:byte_controller|i2c_master_bit_ctrl:bit_controller|cmd_ack at LC_X34_Y20_N8
--operation mode is normal

C1_cmd_ack_lut_out = !C1_al & !C1_clk_en & C1L93 & !wb_rst_i;

⌨️ 快捷键说明

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