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

📄 testlatch.map.eqn

📁 用verilog编写的USB下载线程序 实现USB协议和JTAG接口的数据转换实现状态机。
💻 EQN
📖 第 1 页 / 共 2 页
字号:
--B1L03 is JTAGcore:inst4|To_FT245[1]~13
B1L03_p1_out = !B1_direct & DATAOUT;
B1L03_p2_out = B1_direct & D1_shifter[1];
B1L03_or_out = B1L03_p1_out # B1L03_p2_out;
B1L03 = B1L03_or_out;


--B1L92 is JTAGcore:inst4|To_FT245[0]~16
B1L92_p1_out = B1_direct & D1_shifter[0];
B1L92_p2_out = !B1_direct & CDONE;
B1L92_or_out = B1L92_p1_out # B1L92_p2_out;
B1L92 = B1L92_or_out;


--A1L72 is inst~0
A1L72_p1_out = !CFG0 & !CFG2 & !CFG1 & !CFG3;
A1L72_or_out = A1L72_p1_out;
A1L72 = !(A1L72_or_out);


--D1_shifter[7] is JTAGcore:inst4|shiftout:shifter|shifter[7]
D1_shifter[7]_p1_out = CDONE & D1_T_CLK & !N_PWREN & !D1_rdy & !D1_shifter[7];
D1_shifter[7]_p2_out = !N_PWREN & D1_rdy & !D1_shifter[7] & A1L81 & B1_ByteLoad;
D1_shifter[7]_p3_out = !CDONE & D1_T_CLK & !N_PWREN & !D1_rdy & D1_shifter[7];
D1_shifter[7]_p4_out = !N_PWREN & D1_rdy & D1_shifter[7] & !A1L81 & B1_ByteLoad;
D1_shifter[7]_or_out = D1_shifter[7]_p1_out # D1_shifter[7]_p2_out # D1_shifter[7]_p3_out # D1_shifter[7]_p4_out;
D1_shifter[7]_reg_input = D1_shifter[7]_or_out;
D1_shifter[7] = TFFE(D1_shifter[7]_reg_input, GLOBAL(CLK), , , );


--D1_shifter[5] is JTAGcore:inst4|shiftout:shifter|shifter[5]
D1_shifter[5]_p1_out = D1_shifter[6] & D1_T_CLK & !N_PWREN & !D1_rdy & !D1_shifter[5];
D1_shifter[5]_p2_out = !N_PWREN & D1_rdy & !D1_shifter[5] & A1L02 & B1_ByteLoad;
D1_shifter[5]_p3_out = !D1_shifter[6] & D1_T_CLK & !N_PWREN & !D1_rdy & D1_shifter[5];
D1_shifter[5]_p4_out = !N_PWREN & D1_rdy & D1_shifter[5] & !A1L02 & B1_ByteLoad;
D1_shifter[5]_or_out = D1_shifter[5]_p1_out # D1_shifter[5]_p2_out # D1_shifter[5]_p3_out # D1_shifter[5]_p4_out;
D1_shifter[5]_reg_input = D1_shifter[5]_or_out;
D1_shifter[5] = TFFE(D1_shifter[5]_reg_input, GLOBAL(CLK), , , );


--B1_WR is JTAGcore:inst4|WR
B1_WR_p1_out = !N_TXE & !B1L81Q & !B1L91Q & B1L12Q & !B1_WR;
B1_WR_p3_out = B1L81Q & !B1L91Q & !B1L12Q & B1_WR & !B1L02Q;
B1_WR_or_out = B1_WR_p1_out # B1_WR_p3_out;
B1_WR_reg_input = B1_WR_or_out;
B1_WR = TFFE(B1_WR_reg_input, GLOBAL(CLK), !N_PWREN, , );


--D1_shifter[4] is JTAGcore:inst4|shiftout:shifter|shifter[4]
D1_shifter[4]_p1_out = D1_shifter[5] & D1_T_CLK & !N_PWREN & !D1_rdy & !D1_shifter[4];
D1_shifter[4]_p2_out = !N_PWREN & D1_rdy & !D1_shifter[4] & A1L12 & B1_ByteLoad;
D1_shifter[4]_p3_out = !D1_shifter[5] & D1_T_CLK & !N_PWREN & !D1_rdy & D1_shifter[4];
D1_shifter[4]_p4_out = !N_PWREN & D1_rdy & D1_shifter[4] & !A1L12 & B1_ByteLoad;
D1_shifter[4]_or_out = D1_shifter[4]_p1_out # D1_shifter[4]_p2_out # D1_shifter[4]_p3_out # D1_shifter[4]_p4_out;
D1_shifter[4]_reg_input = D1_shifter[4]_or_out;
D1_shifter[4] = TFFE(D1_shifter[4]_reg_input, GLOBAL(CLK), , , );


--B1_direct is JTAGcore:inst4|direct
B1_direct_p1_out = !A1L81 & !B1_direct;
B1_direct_p4_out = !A1L81 & A1L02;
B1_direct_or_out = B1_direct_p1_out # B1_direct_p4_out;
B1_direct_reg_input = !(B1_direct_or_out);
B1_direct_p3_out = !B1L02Q & !B1L81Q & B1L91Q;
B1_direct = DFFE(B1_direct_reg_input, GLOBAL(CLK), !N_PWREN, , B1_direct_p3_out);


--B1L12Q is JTAGcore:inst4|SM~170
B1L12Q_p0_out = !B1L91Q & B1L81Q & B1L12Q & B1_echo;
B1L12Q_p1_out = A1L02 & !A1L81 & !B1L02Q & B1L91Q & !B1L81Q & !B1L12Q;
B1L12Q_p3_out = B1L02Q & B1L91Q & B1L81Q & !B1L12Q & D1_rdy & !B1_echo;
B1L12Q_p4_out = !B1L91Q & !B1L81Q & B1L12Q & !N_TXE;
B1L12Q_or_out = B1L12Q_p0_out # B1L12Q_p1_out # B1L12Q_p3_out # B1L12Q_p4_out;
B1L12Q_reg_input = B1L12Q_or_out;
B1L12Q = TFFE(B1L12Q_reg_input, GLOBAL(CLK), !N_PWREN, , );


--D1_shifter[3] is JTAGcore:inst4|shiftout:shifter|shifter[3]
D1_shifter[3]_p1_out = D1_shifter[4] & D1_T_CLK & !N_PWREN & !D1_rdy & !D1_shifter[3];
D1_shifter[3]_p2_out = !N_PWREN & D1_rdy & !D1_shifter[3] & A1L22 & B1_ByteLoad;
D1_shifter[3]_p3_out = !D1_shifter[4] & D1_T_CLK & !N_PWREN & !D1_rdy & D1_shifter[3];
D1_shifter[3]_p4_out = !N_PWREN & D1_rdy & D1_shifter[3] & !A1L22 & B1_ByteLoad;
D1_shifter[3]_or_out = D1_shifter[3]_p1_out # D1_shifter[3]_p2_out # D1_shifter[3]_p3_out # D1_shifter[3]_p4_out;
D1_shifter[3]_reg_input = D1_shifter[3]_or_out;
D1_shifter[3] = TFFE(D1_shifter[3]_reg_input, GLOBAL(CLK), , , );


--D1_shifter[2] is JTAGcore:inst4|shiftout:shifter|shifter[2]
D1_shifter[2]_p1_out = D1_shifter[3] & D1_T_CLK & !N_PWREN & !D1_rdy & !D1_shifter[2];
D1_shifter[2]_p2_out = !N_PWREN & D1_rdy & !D1_shifter[2] & A1L32 & B1_ByteLoad;
D1_shifter[2]_p3_out = !D1_shifter[3] & D1_T_CLK & !N_PWREN & !D1_rdy & D1_shifter[2];
D1_shifter[2]_p4_out = !N_PWREN & D1_rdy & D1_shifter[2] & !A1L32 & B1_ByteLoad;
D1_shifter[2]_or_out = D1_shifter[2]_p1_out # D1_shifter[2]_p2_out # D1_shifter[2]_p3_out # D1_shifter[2]_p4_out;
D1_shifter[2]_reg_input = D1_shifter[2]_or_out;
D1_shifter[2] = TFFE(D1_shifter[2]_reg_input, GLOBAL(CLK), , , );


--D1_shifter[1] is JTAGcore:inst4|shiftout:shifter|shifter[1]
D1_shifter[1]_p1_out = D1_shifter[2] & D1_T_CLK & !N_PWREN & !D1_rdy & !D1_shifter[1];
D1_shifter[1]_p2_out = !N_PWREN & D1_rdy & !D1_shifter[1] & A1L42 & B1_ByteLoad;
D1_shifter[1]_p3_out = !D1_shifter[2] & D1_T_CLK & !N_PWREN & !D1_rdy & D1_shifter[1];
D1_shifter[1]_p4_out = !N_PWREN & D1_rdy & D1_shifter[1] & !A1L42 & B1_ByteLoad;
D1_shifter[1]_or_out = D1_shifter[1]_p1_out # D1_shifter[1]_p2_out # D1_shifter[1]_p3_out # D1_shifter[1]_p4_out;
D1_shifter[1]_reg_input = D1_shifter[1]_or_out;
D1_shifter[1] = TFFE(D1_shifter[1]_reg_input, GLOBAL(CLK), , , );


--D1_shifter[0] is JTAGcore:inst4|shiftout:shifter|shifter[0]
D1_shifter[0]_p1_out = D1_shifter[1] & D1_T_CLK & !N_PWREN & !D1_rdy & !D1_shifter[0];
D1_shifter[0]_p2_out = !N_PWREN & D1_rdy & !D1_shifter[0] & A1L52 & B1_ByteLoad;
D1_shifter[0]_p3_out = !D1_shifter[1] & D1_T_CLK & !N_PWREN & !D1_rdy & D1_shifter[0];
D1_shifter[0]_p4_out = !N_PWREN & D1_rdy & D1_shifter[0] & !A1L52 & B1_ByteLoad;
D1_shifter[0]_or_out = D1_shifter[0]_p1_out # D1_shifter[0]_p2_out # D1_shifter[0]_p3_out # D1_shifter[0]_p4_out;
D1_shifter[0]_reg_input = D1_shifter[0]_or_out;
D1_shifter[0] = TFFE(D1_shifter[0]_reg_input, GLOBAL(CLK), , , );


--B1_RED_LED is JTAGcore:inst4|RED_LED
B1_RED_LED_p1_out = A1L52 & A1L22 & A1L32 & A1L42 & !B1_RED_LED;
B1_RED_LED_p2_out = !A1L52 & A1L22 & A1L32 & A1L42 & B1_RED_LED;
B1_RED_LED_or_out = B1_RED_LED_p1_out # B1_RED_LED_p2_out;
B1_RED_LED_reg_input = B1_RED_LED_or_out;
B1_RED_LED_p3_out = !B1L02Q & !B1L81Q & B1L91Q & !A1L81 & !A1L02 & A1L12;
B1_RED_LED = TFFE(B1_RED_LED_reg_input, GLOBAL(CLK), , !N_PWREN, B1_RED_LED_p3_out);


--B1_ByteCounter[0] is JTAGcore:inst4|ByteCounter[0]
B1_ByteCounter[0]_p1_out = !B1L02Q & !B1L81Q & B1L91Q & A1L81 & A1L52 & !B1_ByteCounter[0];
B1_ByteCounter[0]_p3_out = B1L02Q & B1L81Q & B1L91Q & D1_rdy;
B1_ByteCounter[0]_p4_out = !B1L02Q & !B1L81Q & B1L91Q & A1L81 & !A1L52 & B1_ByteCounter[0];
B1_ByteCounter[0]_or_out = B1_ByteCounter[0]_p1_out # B1_ByteCounter[0]_p3_out # B1_ByteCounter[0]_p4_out;
B1_ByteCounter[0]_reg_input = B1_ByteCounter[0]_or_out;
B1_ByteCounter[0] = TFFE(B1_ByteCounter[0]_reg_input, GLOBAL(CLK), !N_PWREN, , );


--B1_ByteCounter[1] is JTAGcore:inst4|ByteCounter[1]
B1_ByteCounter[1]_p1_out = !B1L02Q & !B1L81Q & B1L91Q & A1L81 & A1L42 & !B1_ByteCounter[1];
B1_ByteCounter[1]_p3_out = B1L02Q & B1L81Q & B1L91Q & D1_rdy & !B1_ByteCounter[0];
B1_ByteCounter[1]_p4_out = !B1L02Q & !B1L81Q & B1L91Q & A1L81 & !A1L42 & B1_ByteCounter[1];
B1_ByteCounter[1]_or_out = B1_ByteCounter[1]_p1_out # B1_ByteCounter[1]_p3_out # B1_ByteCounter[1]_p4_out;
B1_ByteCounter[1]_reg_input = B1_ByteCounter[1]_or_out;
B1_ByteCounter[1] = TFFE(B1_ByteCounter[1]_reg_input, GLOBAL(CLK), !N_PWREN, , );


--B1_ByteCounter[2] is JTAGcore:inst4|ByteCounter[2]
B1_ByteCounter[2]_p1_out = !B1L02Q & !B1L81Q & B1L91Q & A1L81 & A1L32 & !B1_ByteCounter[2];
B1_ByteCounter[2]_p3_out = B1L02Q & B1L81Q & B1L91Q & D1_rdy & !B1_ByteCounter[1] & !B1_ByteCounter[0];
B1_ByteCounter[2]_p4_out = !B1L02Q & !B1L81Q & B1L91Q & A1L81 & !A1L32 & B1_ByteCounter[2];
B1_ByteCounter[2]_or_out = B1_ByteCounter[2]_p1_out # B1_ByteCounter[2]_p3_out # B1_ByteCounter[2]_p4_out;
B1_ByteCounter[2]_reg_input = B1_ByteCounter[2]_or_out;
B1_ByteCounter[2] = TFFE(B1_ByteCounter[2]_reg_input, GLOBAL(CLK), !N_PWREN, , );


--B1_ByteCounter[3] is JTAGcore:inst4|ByteCounter[3]
B1_ByteCounter[3]_p1_out = !B1L02Q & !B1L81Q & B1L91Q & A1L81 & A1L22 & !B1_ByteCounter[3];
B1_ByteCounter[3]_p3_out = B1L02Q & B1L81Q & B1L91Q & D1_rdy & !B1_ByteCounter[2] & !B1_ByteCounter[1] & !B1_ByteCounter[0];
B1_ByteCounter[3]_p4_out = !B1L02Q & !B1L81Q & B1L91Q & A1L81 & !A1L22 & B1_ByteCounter[3];
B1_ByteCounter[3]_or_out = B1_ByteCounter[3]_p1_out # B1_ByteCounter[3]_p3_out # B1_ByteCounter[3]_p4_out;
B1_ByteCounter[3]_reg_input = B1_ByteCounter[3]_or_out;
B1_ByteCounter[3] = TFFE(B1_ByteCounter[3]_reg_input, GLOBAL(CLK), !N_PWREN, , );


--B1_ByteCounter[4] is JTAGcore:inst4|ByteCounter[4]
B1_ByteCounter[4]_p1_out = !B1L02Q & !B1L81Q & B1L91Q & A1L81 & A1L12 & !B1_ByteCounter[4];
B1_ByteCounter[4]_p3_out = B1L02Q & B1L81Q & B1L91Q & D1_rdy & !B1_ByteCounter[3] & !B1_ByteCounter[2] & !B1_ByteCounter[1] & !B1_ByteCounter[0];
B1_ByteCounter[4]_p4_out = !B1L02Q & !B1L81Q & B1L91Q & A1L81 & !A1L12 & B1_ByteCounter[4];
B1_ByteCounter[4]_or_out = B1_ByteCounter[4]_p1_out # B1_ByteCounter[4]_p3_out # B1_ByteCounter[4]_p4_out;
B1_ByteCounter[4]_reg_input = B1_ByteCounter[4]_or_out;
B1_ByteCounter[4] = TFFE(B1_ByteCounter[4]_reg_input, GLOBAL(CLK), !N_PWREN, , );


--B1_ByteCounter[5] is JTAGcore:inst4|ByteCounter[5]
B1_ByteCounter[5]_p1_out = !B1L02Q & !B1L81Q & B1L91Q & A1L81 & A1L02 & !B1_ByteCounter[5];
B1_ByteCounter[5]_p3_out = B1L02Q & B1L81Q & B1L91Q & D1_rdy & !B1_ByteCounter[4] & !B1_ByteCounter[3] & !B1_ByteCounter[2] & !B1_ByteCounter[1] & !B1_ByteCounter[0];
B1_ByteCounter[5]_p4_out = !B1L02Q & !B1L81Q & B1L91Q & A1L81 & !A1L02 & B1_ByteCounter[5];
B1_ByteCounter[5]_or_out = B1_ByteCounter[5]_p1_out # B1_ByteCounter[5]_p3_out # B1_ByteCounter[5]_p4_out;
B1_ByteCounter[5]_reg_input = B1_ByteCounter[5]_or_out;
B1_ByteCounter[5] = TFFE(B1_ByteCounter[5]_reg_input, GLOBAL(CLK), !N_PWREN, , );


--B1L91Q is JTAGcore:inst4|SM~168
B1L91Q_p0_out = !B1L02Q & !N_RXF & B1L81Q & B1L91Q;
B1L91Q_p1_out = !B1L02Q & !B1L81Q & !A1L81 & !A1L02 & A1L12 & N_TXE;
B1L91Q_p3_out = !B1L02Q & !B1L91Q & N_TXE & B1L12Q;
B1L91Q_p4_out = !B1L81Q & B1L91Q & !A1L81 & !A1L02 & A1L12;
B1L91Q_or_out = B1L32 # B1L91Q_p0_out # B1L91Q_p1_out # B1L91Q_p3_out # B1L91Q_p4_out;
B1L91Q_reg_input = !(B1L91Q_or_out);
B1L91Q = DFFE(B1L91Q_reg_input, GLOBAL(CLK), !N_PWREN, , );


--B1_N_CONF is JTAGcore:inst4|N_CONF
B1_N_CONF_or_out = A1L42;
B1_N_CONF_reg_input = B1_N_CONF_or_out;
B1_N_CONF_p3_out = B1L91Q & B1L12Q;
B1_N_CONF = DFFE(B1_N_CONF_reg_input, GLOBAL(CLK), !N_PWREN, , B1_N_CONF_p3_out);


--B1_R_JTCK is JTAGcore:inst4|R_JTCK
B1_R_JTCK_or_out = A1L52;
B1_R_JTCK_reg_input = B1_R_JTCK_or_out;
B1_R_JTCK_p3_out = B1L91Q & B1L12Q;
B1_R_JTCK = DFFE(B1_R_JTCK_reg_input, GLOBAL(CLK), !N_PWREN, , B1_R_JTCK_p3_out);


--B1_R_ASDI is JTAGcore:inst4|R_ASDI
B1_R_ASDI_or_out = A1L12;
B1_R_ASDI_reg_input = B1_R_ASDI_or_out;
B1_R_ASDI_p3_out = B1L91Q & B1L12Q;
B1_R_ASDI = DFFE(B1_R_ASDI_reg_input, GLOBAL(CLK), !N_PWREN, , B1_R_ASDI_p3_out);


--B1_N_CE is JTAGcore:inst4|N_CE
B1_N_CE_or_out = A1L32;
B1_N_CE_reg_input = B1_N_CE_or_out;
B1_N_CE_p3_out = B1L91Q & B1L12Q;
B1_N_CE = DFFE(B1_N_CE_reg_input, GLOBAL(CLK), , !N_PWREN, B1_N_CE_p3_out);


--B1_N_CS is JTAGcore:inst4|N_CS
B1_N_CS_or_out = A1L22;
B1_N_CS_reg_input = B1_N_CS_or_out;
B1_N_CS_p3_out = B1L91Q & B1L12Q;
B1_N_CS = DFFE(B1_N_CS_reg_input, GLOBAL(CLK), , !N_PWREN, B1_N_CS_p3_out);


--B1L81Q is JTAGcore:inst4|SM~167
B1L81Q_p0_out = B1L81Q & !B1L12Q & !B1L02Q & !B1_ByteCounter[1] & !B1_ByteCounter[2] & !B1_ByteCounter[3] & !B1_ByteCounter[4] & !B1_ByteCounter[5] & !B1_ByteCounter[0];
B1L81Q_p1_out = !B1L91Q & !B1L81Q;
B1L81Q_p3_out = !B1L91Q & B1L12Q & !B1L02Q;
B1L81Q_p4_out = !B1L81Q & !B1L12Q & !B1L02Q & !A1L81;
B1L81Q_or_out = B1L42 # B1L81Q_p0_out # B1L81Q_p1_out # B1L81Q_p3_out # B1L81Q_p4_out;
B1L81Q_reg_input = !(B1L81Q_or_out);
B1L81Q = DFFE(B1L81Q_reg_input, GLOBAL(CLK), !N_PWREN, , );


--B1L1 is JTAGcore:inst4|ASDI~21
B1L1_p1_out = B1_R_ASDI & !B1_direct;
B1L1_p2_out = B1_direct & D1_shifter[0];
B1L1_or_out = B1L1_p1_out # B1L1_p2_out;
B1L1 = B1L1_or_out;


--B1L02Q is JTAGcore:inst4|SM~169
B1L02Q_p0_out = B1L02Q & B1L81Q & B1L91Q & D1_rdy;
B1L02Q_p3_out = !B1_ByteCounter[5] & !B1_ByteCounter[4] & !B1_ByteCounter[3] & !B1_ByteCounter[2] & !B1_ByteCounter[1] & !B1_ByteCounter[0] & !B1L02Q & B1L81Q;
B1L02Q_p4_out = !B1L02Q & B1L81Q & !B1L91Q;
B1L02Q_or_out = B1L52 # B1L02Q_p0_out # B1L02Q_p3_out # B1L02Q_p4_out;
B1L02Q_reg_input = B1L81Q $ B1L02Q_or_out;
B1L02Q = DFFE(B1L02Q_reg_input, GLOBAL(CLK), !N_PWREN, , );


--B1_ByteLoad is JTAGcore:inst4|ByteLoad
B1_ByteLoad_or_out = D1_rdy;
B1_ByteLoad_reg_input = B1_ByteLoad_or_out;
B1_ByteLoad_p3_out = B1L02Q & B1L81Q & !B1L91Q;
B1_ByteLoad = DFFE(B1_ByteLoad_reg_input, GLOBAL(CLK), !N_PWREN, , B1_ByteLoad_p3_out);


--D1_bitcount[0] is JTAGcore:inst4|shiftout:shifter|bitcount[0]
D1_bitcount[0]_p0_out = !N_PWREN & D1_rdy & D1_bitcount[0] & !B1_ByteLoad;
D1_bitcount[0]_p1_out = D1_bitcount[3] & !D1_T_CLK & !N_PWREN & !D1_rdy & !D1_bitcount[0];
D1_bitcount[0]_p2_out = !D1_T_CLK & !N_PWREN & !D1_rdy & !D1_bitcount[0] & D1_bitcount[2];
D1_bitcount[0]_p3_out = !D1_T_CLK & !N_PWREN & !D1_rdy & !D1_bitcount[0] & D1_bitcount[1];
D1_bitcount[0]_p4_out = D1_T_CLK & !N_PWREN & !D1_rdy & D1_bitcount[0];
D1_bitcount[0]_or_out = D1_bitcount[0]_p0_out # D1_bitcount[0]_p1_out # D1_bitcount[0]_p2_out # D1_bitcount[0]_p3_out # D1_bitcount[0]_p4_out;
D1_bitcount[0]_reg_input = D1_bitcount[0]_or_out;
D1_bitcount[0] = DFFE(D1_bitcount[0]_reg_input, GLOBAL(CLK), , , );


--D1_bitcount[1] is JTAGcore:inst4|shiftout:shifter|bitcount[1]
D1_bitcount[1]_p0_out = !N_PWREN & D1_rdy & D1_bitcount[1] & !B1_ByteLoad;
D1_bitcount[1]_p1_out = D1_bitcount[3] & !D1_bitcount[0] & !D1_T_CLK & !N_PWREN & !D1_rdy & !D1_bitcount[1];
D1_bitcount[1]_p2_out = !D1_bitcount[0] & !D1_T_CLK & !N_PWREN & !D1_rdy & !D1_bitcount[1] & D1_bitcount[2];
D1_bitcount[1]_p3_out = D1_bitcount[0] & !N_PWREN & !D1_rdy & D1_bitcount[1];
D1_bitcount[1]_p4_out = D1_T_CLK & !N_PWREN & !D1_rdy & D1_bitcount[1];
D1_bitcount[1]_or_out = D1_bitcount[1]_p0_out # D1_bitcount[1]_p1_out # D1_bitcount[1]_p2_out # D1_bitcount[1]_p3_out # D1_bitcount[1]_p4_out;
D1_bitcount[1]_reg_input = D1_bitcount[1]_or_out;
D1_bitcount[1] = DFFE(D1_bitcount[1]_reg_input, GLOBAL(CLK), , , );


--D1_bitcount[2] is JTAGcore:inst4|shiftout:shifter|bitcount[2]
D1_bitcount[2]_p1_out = D1_bitcount[3] & !N_PWREN & !D1_rdy & !D1_T_CLK & !D1_bitcount[0] & !D1_bitcount[1];
D1_bitcount[2]_p2_out = N_PWREN & D1_bitcount[2];
D1_bitcount[2]_p3_out = D1_rdy & D1_bitcount[2] & B1_ByteLoad;
D1_bitcount[2]_p4_out = !D1_rdy & !D1_T_CLK & !D1_bitcount[0] & !D1_bitcount[1] & D1_bitcount[2];
D1_bitcount[2]_or_out = D1_bitcount[2]_p1_out # D1_bitcount[2]_p2_out # D1_bitcount[2]_p3_out # D1_bitcount[2]_p4_out;
D1_bitcount[2]_reg_input = D1_bitcount[2]_or_out;
D1_bitcount[2] = TFFE(D1_bitcount[2]_reg_input, GLOBAL(CLK), , , );


--D1_bitcount[3] is JTAGcore:inst4|shiftout:shifter|bitcount[3]
D1_bitcount[3]_p1_out = B1_ByteLoad & !N_PWREN & D1_rdy & !D1_bitcount[3];
D1_bitcount[3]_p2_out = N_PWREN & D1_bitcount[3];
D1_bitcount[3]_p3_out = !D1_rdy & D1_bitcount[3] & !D1_bitcount[2] & !D1_bitcount[1] & !D1_bitcount[0] & !D1_T_CLK;
D1_bitcount[3]_or_out = D1_bitcount[3]_p1_out # D1_bitcount[3]_p2_out # D1_bitcount[3]_p3_out;
D1_bitcount[3]_reg_input = D1_bitcount[3]_or_out;
D1_bitcount[3] = TFFE(D1_bitcount[3]_reg_input, GLOBAL(CLK), , , );


--D1_rdy is JTAGcore:inst4|shiftout:shifter|rdy
D1_rdy_p1_out = !B1_ByteLoad & D1_rdy;
D1_rdy_p2_out = !D1_rdy & !D1_bitcount[3] & !D1_bitcount[2] & !D1_bitcount[1] & !D1_bitcount[0] & !D1_T_CLK;
D1_rdy_or_out = D1_rdy_p1_out # D1_rdy_p2_out # N_PWREN;
D1_rdy_reg_input = D1_rdy_or_out;
D1_rdy = DFFE(D1_rdy_reg_input, GLOBAL(CLK), , , );

⌨️ 快捷键说明

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