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

📄 i2c_altera.map.eqn

📁 程序实现的功能是通过I2C配置SAA7113芯片,然后通过逻辑分析仪器查看芯片的输出数据 可以通过视频口输出视频 redlogic的程序
💻 EQN
📖 第 1 页 / 共 5 页
字号:
--AB1_status_out[1] is sld_signaltap:auto_signaltap_0|sld_ela_control:ela_control|sld_ela_seg_state_machine:sm2|status_out[1]
--operation mode is normal

AB1_status_out[1] = AMPP_FUNCTION(PCLK, AB1L5, !B1_reset_all);


--Z1_buffer_write_enable is sld_signaltap:auto_signaltap_0|sld_ela_control:ela_control|sld_ela_state_machine:sm1|buffer_write_enable
--operation mode is normal

Z1_buffer_write_enable = AMPP_FUNCTION(PCLK, Z1L5, !B1_reset_all);


--N1L3 is sld_signaltap:auto_signaltap_0|sld_acquisition_buffer:sld_acquisition_buffer_inst|trigger_write_addr_latch_ena~50
--operation mode is normal

N1L3 = AMPP_FUNCTION(AB1_status_out[1], Z1_buffer_write_enable, Q3_dffs[5]);


--SB1_state[15] is sld_hub:sld_hub_inst|sld_jtag_state_machine:jtag_state_machine|state[15]
--operation mode is normal

SB1_state[15] = AMPP_FUNCTION(A1L5, SB1_state[12], SB1_state[14], VCC, !A1L7);


--TB1_dffe1a[7] is sld_hub:sld_hub_inst|lpm_decode:instruction_decoder|decode_9ie:auto_generated|dffe1a[7]
--operation mode is normal

TB1_dffe1a[7] = AMPP_FUNCTION(A1L5, QB6_Q[3], QB6_Q[2], QB6_Q[1], H1L82, !H1L2, H1L6);


--H1L3 is sld_hub:sld_hub_inst|comb~6
--operation mode is normal

H1L3 = AMPP_FUNCTION(SB1_state[8], H1_OK_TO_UPDATE_IR_Q, QB3_Q[0]);


--SB1_state[11] is sld_hub:sld_hub_inst|sld_jtag_state_machine:jtag_state_machine|state[11]
--operation mode is normal

SB1_state[11] = AMPP_FUNCTION(A1L5, SB1_state[11], SB1_state[10], SB1_state[14], VCC, A1L7);


--SB1_state[9] is sld_hub:sld_hub_inst|sld_jtag_state_machine:jtag_state_machine|state[9]
--operation mode is normal

SB1_state[9] = AMPP_FUNCTION(A1L5, A1L7, SB1_state[2], VCC);


--SB1_tms_cnt[2] is sld_hub:sld_hub_inst|sld_jtag_state_machine:jtag_state_machine|tms_cnt[2]
--operation mode is normal

SB1_tms_cnt[2] = AMPP_FUNCTION(A1L5, SB1_tms_cnt[2], SB1_tms_cnt[1], SB1_tms_cnt[0], VCC, !A1L7);


--SB1_tms_cnt[1] is sld_hub:sld_hub_inst|sld_jtag_state_machine:jtag_state_machine|tms_cnt[1]
--operation mode is normal

SB1_tms_cnt[1] = AMPP_FUNCTION(A1L5, SB1_tms_cnt[1], SB1_tms_cnt[0], VCC, !A1L7);


--SB1_tms_cnt[0] is sld_hub:sld_hub_inst|sld_jtag_state_machine:jtag_state_machine|tms_cnt[0]
--operation mode is normal

SB1_tms_cnt[0] = AMPP_FUNCTION(A1L5, A1L7, SB1_tms_cnt[0], VCC);


--SB1L91 is sld_hub:sld_hub_inst|sld_jtag_state_machine:jtag_state_machine|state~204
--operation mode is normal

SB1L91 = AMPP_FUNCTION(SB1_tms_cnt[2], SB1_tms_cnt[1], SB1_tms_cnt[0]);


--SB1_state[10] is sld_hub:sld_hub_inst|sld_jtag_state_machine:jtag_state_machine|state[10]
--operation mode is normal

SB1_state[10] = AMPP_FUNCTION(A1L5, SB1_state[9], A1L7, VCC);


--H1L8 is sld_hub:sld_hub_inst|GEN_SHADOW_IRF~0
--operation mode is normal

H1L8 = AMPP_FUNCTION(QB4_Q[0], H1_OK_TO_UPDATE_IR_Q, SB1_state[5]);


--TB1_dffe1a[1] is sld_hub:sld_hub_inst|lpm_decode:instruction_decoder|decode_9ie:auto_generated|dffe1a[1]
--operation mode is normal

TB1_dffe1a[1] = AMPP_FUNCTION(A1L5, QB6_Q[1], H1L82, QB6_Q[3], QB6_Q[2], !H1L2, H1L6);


--H1L7 is sld_hub:sld_hub_inst|comb~68
--operation mode is normal

H1L7 = AMPP_FUNCTION(SB1_state[8], H1_OK_TO_UPDATE_IR_Q);


--H1L1 is sld_hub:sld_hub_inst|BROADCAST_ENA~27
--operation mode is normal

H1L1 = AMPP_FUNCTION(QB5_Q[0], H1L7, TB1_dffe1a[2], TB1_dffe1a[1]);


--Q1_dffs[2] is sld_signaltap:auto_signaltap_0|sld_offload_buffer_mgr:\stp_non_zero_depth_offload_gen:stp_offload_buff_mgr_inst|lpm_shiftreg:info_data_shift_out|dffs[2]
--operation mode is normal

Q1_dffs[2] = AMPP_FUNCTION(A1L5, Q1_dffs[3], KB1_safe_q[1], SB1_state[4], B1L03, !B1_reset_all);


--KB1_safe_q[0] is sld_signaltap:auto_signaltap_0|sld_acquisition_buffer:sld_acquisition_buffer_inst|lpm_counter:\write_address_non_zero_gen:write_pointer_counter|cntr_vt9:auto_generated|safe_q[0]
--operation mode is arithmetic

KB1_safe_q[0] = AMPP_FUNCTION(PCLK, KB1_safe_q[0], !B1_reset_all, M1L1);

--KB1L2 is sld_signaltap:auto_signaltap_0|sld_acquisition_buffer:sld_acquisition_buffer_inst|lpm_counter:\write_address_non_zero_gen:write_pointer_counter|cntr_vt9:auto_generated|counter_cella0~COUT
--operation mode is arithmetic

KB1L2 = AMPP_FUNCTION(KB1_safe_q[0]);


--KB1_cout is sld_signaltap:auto_signaltap_0|sld_acquisition_buffer:sld_acquisition_buffer_inst|lpm_counter:\write_address_non_zero_gen:write_pointer_counter|cntr_vt9:auto_generated|cout
--operation mode is normal

KB1_cout = AMPP_FUNCTION(KB1L22);


--H1L92 is sld_hub:sld_hub_inst|jtag_debug_mode~171
--operation mode is normal

H1L92 = AMPP_FUNCTION(SB1_state[12], A1L7, SB1_state[2]);


--QB2_Q[0] is sld_hub:sld_hub_inst|sld_dffex:\GEN_SHADOW_IRF:1:S_IRF|Q[0]
--operation mode is normal

QB2_Q[0] = AMPP_FUNCTION(A1L5, QB6_Q[0], !H1L2, H1L8);


--AB1L5 is sld_signaltap:auto_signaltap_0|sld_ela_control:ela_control|sld_ela_seg_state_machine:sm2|status_out~110
--operation mode is normal

AB1L5 = AMPP_FUNCTION(QB1_Q[1], KB1_cout, N1_is_buffer_wrapped_once);


--Q3_dffs[3] is sld_signaltap:auto_signaltap_0|sld_ela_control:ela_control|lpm_shiftreg:trigger_config_deserialize|dffs[3]
--operation mode is normal

Q3_dffs[3] = AMPP_FUNCTION(A1L5, Q3_dffs[4], !B1_reset_all, M1_trigger_setup_ena);


--CB1_counter_cella8 is sld_signaltap:auto_signaltap_0|sld_ela_control:ela_control|sld_ela_post_trigger_counter:\gen_non_zero_sample_depth:tc1|lpm_counter:post_trigger_counter|cntr_no8:auto_generated|counter_cella8
--operation mode is arithmetic

CB1_counter_cella8 = AMPP_FUNCTION(PCLK, CB1_counter_cella8, !B1_reset_all, Z1_post_trigger_count_enable, CB1L61);

--CB1L81 is sld_signaltap:auto_signaltap_0|sld_ela_control:ela_control|sld_ela_post_trigger_counter:\gen_non_zero_sample_depth:tc1|lpm_counter:post_trigger_counter|cntr_no8:auto_generated|counter_cella8~COUT
--operation mode is arithmetic

CB1L81 = AMPP_FUNCTION(CB1_counter_cella8, CB1L61);


--Q3_dffs[4] is sld_signaltap:auto_signaltap_0|sld_ela_control:ela_control|lpm_shiftreg:trigger_config_deserialize|dffs[4]
--operation mode is normal

Q3_dffs[4] = AMPP_FUNCTION(A1L5, Q3_dffs[5], !B1_reset_all, M1_trigger_setup_ena);


--Z1L2 is sld_signaltap:auto_signaltap_0|sld_ela_control:ela_control|sld_ela_state_machine:sm1|edq~69
--operation mode is normal

Z1L2 = AMPP_FUNCTION(Q3_dffs[3], CB1_counter_cella8, Q3_dffs[4], Z1_ela_done);


--CB1_counter_cella10 is sld_signaltap:auto_signaltap_0|sld_ela_control:ela_control|sld_ela_post_trigger_counter:\gen_non_zero_sample_depth:tc1|lpm_counter:post_trigger_counter|cntr_no8:auto_generated|counter_cella10
--operation mode is normal

CB1_counter_cella10 = AMPP_FUNCTION(PCLK, CB1_counter_cella10, !B1_reset_all, Z1_post_trigger_count_enable, CB1L02);


--CB1_counter_cella9 is sld_signaltap:auto_signaltap_0|sld_ela_control:ela_control|sld_ela_post_trigger_counter:\gen_non_zero_sample_depth:tc1|lpm_counter:post_trigger_counter|cntr_no8:auto_generated|counter_cella9
--operation mode is arithmetic

CB1_counter_cella9 = AMPP_FUNCTION(PCLK, CB1_counter_cella9, !B1_reset_all, Z1_post_trigger_count_enable, CB1L81);

--CB1L02 is sld_signaltap:auto_signaltap_0|sld_ela_control:ela_control|sld_ela_post_trigger_counter:\gen_non_zero_sample_depth:tc1|lpm_counter:post_trigger_counter|cntr_no8:auto_generated|counter_cella9~COUT
--operation mode is arithmetic

CB1L02 = AMPP_FUNCTION(CB1_counter_cella9, CB1L81);


--V1L1 is sld_signaltap:auto_signaltap_0|sld_ela_control:ela_control|sld_ela_post_trigger_counter:\gen_non_zero_sample_depth:tc1|stop_acquisition~100
--operation mode is normal

V1L1 = AMPP_FUNCTION(CB1_counter_cella8, CB1_counter_cella9, Q3_dffs[3], Q3_dffs[4]);


--Z1L5 is sld_signaltap:auto_signaltap_0|sld_ela_control:ela_control|sld_ela_state_machine:sm1|post_trigger_count_enable~107
--operation mode is normal

Z1L5 = AMPP_FUNCTION(QB1_Q[1], Z1L2, CB1_counter_cella10, V1L1);


--Q3_dffs[6] is sld_signaltap:auto_signaltap_0|sld_ela_control:ela_control|lpm_shiftreg:trigger_config_deserialize|dffs[6]
--operation mode is normal

Q3_dffs[6] = AMPP_FUNCTION(A1L5, Q3_dffs[7], !B1_reset_all, M1_trigger_setup_ena);


--H1_IRSR_ENA is sld_hub:sld_hub_inst|IRSR_ENA
--operation mode is normal

H1_IRSR_ENA = AMPP_FUNCTION(H1_jtag_debug_mode_usr1, SB1_state[4], SB1_state[3]);


--QB6_Q[6] is sld_hub:sld_hub_inst|sld_dffex:IRSR|Q[6]
--operation mode is normal

QB6_Q[6] = AMPP_FUNCTION(A1L5, SB1_state[4], QB6_Q[7], !H1L2, QB6L4);


--L1_WORD_SR[2] is sld_signaltap:auto_signaltap_0|sld_rom_sr:crc_rom_sr|WORD_SR[2]
--operation mode is normal

L1_WORD_SR[2] = AMPP_FUNCTION(A1L5, L1L81, L1L91, L1L02, L1_word_counter[2], !L1_clear_signal, B1L82);


--L1L71 is sld_signaltap:auto_signaltap_0|sld_rom_sr:crc_rom_sr|WORD_SR~393
--operation mode is normal

L1L71 = AMPP_FUNCTION(L1_word_counter[1], L1_word_counter[2], L1_word_counter[0]);


--L1L5 is sld_signaltap:auto_signaltap_0|sld_rom_sr:crc_rom_sr|word_counter[0]~6
--operation mode is normal

L1L5 = AMPP_FUNCTION(SB1_state[3], B1L03, SB1_state[4]);


--L1L9 is sld_signaltap:auto_signaltap_0|sld_rom_sr:crc_rom_sr|word_counter[2]~197
--operation mode is normal

L1L9 = AMPP_FUNCTION(L1_word_counter[1], L1_word_counter[0], L1L5);


--L1L7 is sld_signaltap:auto_signaltap_0|sld_rom_sr:crc_rom_sr|word_counter[1]~198
--operation mode is normal

L1L7 = AMPP_FUNCTION(SB1_state[3], B1L03, L1_word_counter[0], SB1_state[4]);


--L1L2 is sld_signaltap:auto_signaltap_0|sld_rom_sr:crc_rom_sr|reduce_nor~19
--operation mode is normal

L1L2 = AMPP_FUNCTION(L1_word_counter[2], L1_word_counter[1]);


--SB1_state[6] is sld_hub:sld_hub_inst|sld_jtag_state_machine:jtag_state_machine|state[6]
--operation mode is normal

SB1_state[6] = AMPP_FUNCTION(A1L5, SB1_state[5], SB1_state[6], VCC, A1L7);


--C1_cmd_stop is i2c_cmd:inst|cmd_stop
--operation mode is normal

C1_cmd_stop_lut_out = C1_STATE.GEN_P # !C1_STATE.P_WAIT & (C1_cmd_stop);
C1_cmd_stop = DFFEAS(C1_cmd_stop_lut_out, PB1__clk0, VCC, , , , , !G1_rst_out, );


--C1_execute is i2c_cmd:inst|execute
--operation mode is normal

C1_execute_lut_out = C1L31;
C1_execute = DFFEAS(C1_execute_lut_out, PB1__clk0, VCC, , , , , !G1_rst_out, );


--D1_x1 is I2C:inst1|x1
--operation mode is normal

D1_x1_lut_out = D1_Cmd_reg[0] # D1_Cmd_reg[1] # C1_execute # D1_Cmd_reg[2];
D1_x1 = DFFEAS(D1_x1_lut_out, PB1__clk0, G1_rst_out, , , C1_execute, , , !D1_x1);


--D1L2 is I2C:inst1|Ack_tx_reg~0
--operation mode is normal

D1L2 = C1_execute & (!D1_x1);


--D1_y3 is I2C:inst1|y3
--operation mode is normal

D1_y3_lut_out = D1_y2;
D1_y3 = DFFEAS(D1_y3_lut_out, PB1__clk0, G1_rst_out, , LB1_Deglitch, , , , );


--D1L41 is I2C:inst1|Cmd_reg[2]~50
--operation mode is normal

D1L41 = D1_t6 # D1_y3;


--D1L51 is I2C:inst1|Cmd_reg[2]~51
--operation mode is normal

D1L51 = D1L2 # LB1_Deglitch & (D1_s1a # D1L41);


--G1_cnt[15] is filter:inst8|cnt[15]
--operation mode is normal

G1_cnt[15]_carry_eqn = G1L13;
G1_cnt[15]_lut_out = G1_cnt[15] $ (G1_cnt[15]_carry_eqn);
G1_cnt[15] = DFFEAS(G1_cnt[15]_lut_out, SYSCLK, VCC, , , , , , );


--MB1_safe_q[4] is I2C:inst1|div_by_n:div_by_x|lpm_counter:counter|cntr_986:auto_generated|safe_q[4]
--operation mode is normal

MB1_safe_q[4]_carry_eqn = MB1L8;
MB1_safe_q[4]_lut_out = MB1_safe_q[4] $ (!MB1_safe_q[4]_carry_eqn);
MB1_safe_q[4] = DFFEAS(MB1_safe_q[4]_lut_out, PB1__clk0, VCC, , , , , LB1L1, );


--MB1_safe_q[3] is I2C:inst1|div_by_n:div_by_x|lpm_counter:counter|cntr_986:auto_generated|safe_q[3]
--operation mode is arithmetic

MB1_safe_q[3]_carry_eqn = MB1L6;
MB1_safe_q[3]_lut_out = MB1_safe_q[3] $ (MB1_safe_q[3]_carry_eqn);
MB1_safe_q[3] = DFFEAS(MB1_safe_q[3]_lut_out, PB1__clk0, VCC, , , , , LB1L1, );

--MB1L8 is I2C:inst1|div_by_n:div_by_x|lpm_counter:counter|cntr_986:auto_generated|counter_cella3~COUT
--operation mode is arithmetic

MB1L8 = CARRY(!MB1L6 # !MB1_safe_q[3]);


--GB71L2 is I2C:inst1|div_by_n:div_by_x|lpm_compare:$00002|comptree:comparator|cmpchain:cmp_end|comptree:comp|comptree:sub_comptree|cmpchain:cmp_end|aeb_out~38
--operation mode is normal

GB71L2 = MB1_safe_q[4] & MB1_safe_q[3];


--MB1_safe_q[1] is I2C:inst1|div_by_n:div_by_x|lpm_counter:counter|cntr_986:auto_generated|safe_q[1]
--operation mode is arithmetic

MB1_safe_q[1]_carry_eqn = MB1L2;
MB1_safe_q[1]_lut_out = MB1_safe_q[1] $ (MB1_safe_q[1]_carry_eqn);
MB1_safe_q[1] = DFFEAS(MB1_safe_q[1]_lut_out, PB1__clk0, VCC, , , , , LB1L1, );

--MB1L4 is I2C:inst1|div_by_n:div_by_x|lpm_counter:counter|cntr_986:auto_generated|counter_cella1~COUT
--operation mode is arithmetic

MB1L4 = CARRY(!MB1L2 # !MB1_safe_q[1]);


--MB1_safe_q[2] is I2C:inst1|div_by_n:div_by_x|lpm_counter:counter|cntr_986:auto_generated|safe_q[2]
--operation mode is arithmetic

MB1_safe_q[2]_carry_eqn = MB1L4;
MB1_safe_q[2]_lut_out = MB1_safe_q[2] $ (!MB1_safe_q[2]_carry_eqn);

⌨️ 快捷键说明

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