ter2 = ap_const_logic_1)) or ((ap_const_logic_0 = CQDma_RVALID) and (ap_enable_reg_pp0_iter1 = ap_const_logic_1) and (tmp_32_reg_1151 = ap_const_lv1_1)));
    end process;


    ap_block_state20_assign_proc : process(tmp_9_fu_545_p2, CQDma_RVALID)
    begin
                ap_block_state20 <= ((ap_const_logic_0 = CQDma_RVALID) and (tmp_9_fu_545_p2 = ap_const_lv1_1));
    end process;

        ap_block_state30_pp0_stage0_iter0 <= not((ap_const_boolean_1 = ap_const_boolean_1));

    ap_block_state31_pp0_stage0_iter1_assign_proc : process(tmp_32_reg_1151, CQDma_RVALID)
    begin
                ap_block_state31_pp0_stage0_iter1 <= ((ap_const_logic_0 = CQDma_RVALID) and (tmp_32_reg_1151 = ap_const_lv1_1));
    end process;


    ap_block_state32_io_assign_proc : process(ap_reg_pp0_iter1_tmp_32_reg_1151, ap_sig_ioackin_CUDma_WREADY)
    begin
                ap_block_state32_io <= ((ap_sig_ioackin_CUDma_WREADY = ap_const_logic_0) and (ap_reg_pp0_iter1_tmp_32_reg_1151 = ap_const_lv1_1));
    end process;

        ap_block_state32_pp0_stage0_iter2 <= not((ap_const_boolean_1 = ap_const_boolean_1));

    ap_block_state39_assign_proc : process(bit_reg_994, CUDma_BVALID)
    begin
                ap_block_state39 <= ((ap_const_logic_0 = CUDma_BVALID) and (bit_reg_994 = ap_const_lv1_1));
    end process;


    ap_condition_633_assign_proc : process(ap_enable_reg_pp0_iter2, ap_reg_pp0_iter1_tmp_32_reg_1151, ap_block_pp0_stage0_01001)
    begin
                ap_condition_633 <= ((ap_const_boolean_0 = ap_block_pp0_stage0_01001) and (ap_enable_reg_pp0_iter2 = ap_const_logic_1) and (ap_reg_pp0_iter1_tmp_32_reg_1151 = ap_const_lv1_1));
    end process;


    ap_condition_pp0_exit_iter0_state30_assign_proc : process(tmp_32_fu_884_p2)
    begin
        if ((tmp_32_fu_884_p2 = ap_const_lv1_0)) then 
            ap_condition_pp0_exit_iter0_state30 <= ap_const_logic_1;
        else 
            ap_condition_pp0_exit_iter0_state30 <= ap_const_logic_0;
        end if; 
    end process;


    ap_done_assign_proc : process(ap_CS_fsm_state3, tmp_3_fu_409_p2)
    begin
        if (((tmp_3_fu_409_p2 = ap_const_lv1_0) and (ap_const_logic_1 = ap_CS_fsm_state3))) then 
            ap_done <= ap_const_logic_1;
        else 
            ap_done <= ap_const_logic_0;
        end if; 
    end process;

    ap_enable_pp0 <= (ap_idle_pp0 xor ap_const_logic_1);

    ap_idle_assign_proc : process(ap_start, ap_CS_fsm_state1)
    begin
        if (((ap_start = ap_const_logic_0) and (ap_const_logic_1 = ap_CS_fsm_state1))) then 
            ap_idle <= ap_const_logic_1;
        else 
            ap_idle <= ap_const_logic_0;
        end if; 
    end process;


    ap_idle_pp0_assign_proc : process(ap_enable_reg_pp0_iter1, ap_enable_reg_pp0_iter2, ap_enable_reg_pp0_iter0)
    begin
        if (((ap_enable_reg_pp0_iter0 = ap_const_logic_0) and (ap_enable_reg_pp0_iter2 = ap_const_logic_0) and (ap_enable_reg_pp0_iter1 = ap_const_logic_0))) then 
            ap_idle_pp0 <= ap_const_logic_1;
        else 
            ap_idle_pp0 <= ap_const_logic_0;
        end if; 
    end process;


    ap_ready_assign_proc : process(ap_CS_fsm_state3, tmp_3_fu_409_p2)
    begin
        if (((tmp_3_fu_409_p2 = ap_const_lv1_0) and (ap_const_logic_1 = ap_CS_fsm_state3))) then 
            ap_ready <= ap_const_logic_1;
        else 
            ap_ready <= ap_const_logic_0;
        end if; 
    end process;


    ap_rst_n_inv_assign_proc : process(ap_rst_n)
    begin
                ap_rst_n_inv <= not(ap_rst_n);
    end process;


    ap_sig_ioackin_CQDma_ARREADY_assign_proc : process(CQDma_ARREADY, ap_reg_ioackin_CQDma_ARREADY)
    begin
        if ((ap_reg_ioackin_CQDma_ARREADY = ap_const_logic_0)) then 
            ap_sig_ioackin_CQDma_ARREADY <= CQDma_ARREADY;
        else 
            ap_sig_ioackin_CQDma_ARREADY <= ap_const_logic_1;
        end if; 
    end process;


    ap_sig_ioackin_CUDma_AWREADY_assign_proc : process(CUDma_AWREADY, ap_reg_ioackin_CUDma_AWREADY)
    begin
        if ((ap_reg_ioackin_CUDma_AWREADY = ap_const_logic_0)) then 
            ap_sig_ioackin_CUDma_AWREADY <= CUDma_AWREADY;
        else 
            ap_sig_ioackin_CUDma_AWREADY <= ap_const_logic_1;
        end if; 
    end process;


    ap_sig_ioackin_CUDma_WREADY_assign_proc : process(CUDma_WREADY, ap_reg_ioackin_CUDma_WREADY)
    begin
        if ((ap_reg_ioackin_CUDma_WREADY = ap_const_logic_0)) then 
            ap_sig_ioackin_CUDma_WREADY <= CUDma_WREADY;
        else 
            ap_sig_ioackin_CUDma_WREADY <= ap_const_logic_1;
        end if; 
    end process;

    bit_fu_435_p1 <= tmp_6_fu_429_p2(1 - 1 downto 0);
    cubitmask_3_2_fu_704_p3 <= 
        cubitmask_3_4_fu_150 when (or_cond_fu_676_p2(0) = '1') else 
        newSel2_fu_697_p3;
    cubitmask_3_5_fu_712_p3 <= 
        cubitmask_3_10_reg_1077 when (sel_tmp6_fu_666_p2(0) = '1') else 
        cubitmask_3_3_fu_146;
    cubitmask_3_6_fu_719_p3 <= 
        cubitmask_3_3_fu_146 when (sel_tmp8_fu_671_p2(0) = '1') else 
        cubitmask_3_5_fu_712_p3;
    cubitmask_3_8_fu_727_p3 <= 
        cubitmask_3_10_reg_1077 when (sel_tmp8_fu_671_p2(0) = '1') else 
        cubitmask_3_1_fu_142;
    cubitmask_3_fu_689_p3 <= 
        cubitmask_3_7_fu_154 when (or_cond_fu_676_p2(0) = '1') else 
        newSel_fu_682_p3;
    i_1_fu_415_p2 <= std_logic_vector(unsigned(i_reg_300) + unsigned(ap_const_lv8_1));
    idxbit_fu_803_p1 <= tmp_19_fu_797_p2(1 - 1 downto 0);
    idxloopcount_4_fu_649_p3 <= 
        sel_tmp9_cast_fu_635_p3 when (tmp_15_fu_643_p2(0) = '1') else 
        sel_tmp2_fu_597_p3;
    j_1_fu_550_p2 <= std_logic_vector(unsigned(j_reg_311) + unsigned(ap_const_lv3_1));
    k_1_fu_767_p2 <= std_logic_vector(unsigned(k_reg_322) + unsigned(ap_const_lv8_1));
    l_1_fu_889_p2 <= std_logic_vector(unsigned(l_reg_333) + unsigned(ap_const_lv8_1));
    newSel2_fu_697_p3 <= 
        cubitmask_3_10_reg_1077 when (sel_tmp_fu_661_p2(0) = '1') else 
        cubitmask_3_4_fu_150;
    newSel_fu_682_p3 <= 
        cubitmask_3_7_fu_154 when (sel_tmp_fu_661_p2(0) = '1') else 
        cubitmask_3_10_reg_1077;
    noofcumasksread_fu_487_p2 <= std_logic_vector(unsigned(noofcumasksread_tmp_s_fu_484_p1) + unsigned(ap_const_lv3_1));
    noofcumasksread_tmp_s_fu_484_p1 <= std_logic_vector(IEEE.numeric_std.resize(unsigned(noofcumasksread_tmp_reg_1021),3));
    or_cond_fu_676_p2 <= (sel_tmp8_fu_671_p2 or sel_tmp6_fu_666_p2);
    p_idxloopcount_fu_583_p3 <= 
        ap_const_lv8_20 when (tmp_10_fu_563_p2(0) = '1') else 
        ap_const_lv8_80;
    p_neg_fu_499_p2 <= (p_not_fu_493_p2 xor ap_const_lv8_3);
    p_not_fu_493_p2 <= (tmp_1_fu_475_p4 or ap_const_lv8_FC);
    payload_1_fu_511_p2 <= std_logic_vector(unsigned(payload_reg_1016) + unsigned(tmp1_fu_505_p2));
    sel_tmp2_fu_597_p3 <= 
        p_idxloopcount_fu_583_p3 when (tmp_14_fu_591_p2(0) = '1') else 
        idxloopcount_fu_158;
    sel_tmp35_demorgan_fu_617_p2 <= (tmp_11_fu_568_p2 or tmp_10_fu_563_p2);
    sel_tmp3_fu_605_p2 <= (tmp_10_fu_563_p2 xor ap_const_lv1_1);
    sel_tmp4_fu_611_p2 <= (tmp_11_fu_568_p2 and sel_tmp3_fu_605_p2);
    sel_tmp5_fu_623_p2 <= (sel_tmp35_demorgan_fu_617_p2 xor ap_const_lv1_1);
    sel_tmp6_fu_666_p2 <= "1" when (tmp_reg_1085 = ap_const_lv2_1) else "0";
    sel_tmp7_fu_629_p2 <= (tmp_12_fu_573_p2 and sel_tmp5_fu_623_p2);
    sel_tmp8_fu_671_p2 <= "1" when (tmp_reg_1085 = ap_const_lv2_0) else "0";
    sel_tmp9_cast_fu_635_p3 <= 
        ap_const_lv8_60 when (sel_tmp7_fu_629_p2(0) = '1') else 
        ap_const_lv8_40;
    sel_tmp_fu_661_p2 <= "1" when (tmp_reg_1085 = ap_const_lv2_2) else "0";
    tmp1_fu_505_p2 <= std_logic_vector(unsigned(p_neg_fu_499_p2) + unsigned(ap_const_lv8_FC));
    tmp_10_cast_fu_538_p1 <= std_logic_vector(IEEE.numeric_std.resize(unsigned(payload_1_reg_1036),9));
    tmp_10_fu_563_p2 <= "1" when (noofcumasksread_tmp_reg_1021 = ap_const_lv2_0) else "0";
        tmp_11_cast_fu_541_p1 <= std_logic_vector(IEEE.numeric_std.resize(signed(j_reg_311),4));

    tmp_11_fu_568_p2 <= "1" when (noofcumasksread_reg_1027 = ap_const_lv3_2) else "0";
    tmp_12_fu_573_p2 <= "1" when (noofcumasksread_reg_1027 = ap_const_lv3_3) else "0";
    tmp_13_fu_578_p2 <= "1" when (noofcumasksread_reg_1027 = ap_const_lv3_4) else "0";
    tmp_14_fu_591_p2 <= (tmp_13_fu_578_p2 or tmp_10_fu_563_p2);
    tmp_15_fu_643_p2 <= (sel_tmp7_fu_629_p2 or sel_tmp4_fu_611_p2);
        tmp_16_fu_754_p1 <= std_logic_vector(IEEE.numeric_std.resize(signed(k_reg_322),32));

    tmp_17_fu_762_p2 <= "1" when (signed(tmp_21_cast_fu_758_p1) < signed(tmp_20_cast_reg_1097)) else "0";
    tmp_18_fu_783_p5 <= k_reg_322(6 downto 5);
    tmp_19_fu_797_p2 <= std_logic_vector(shift_right(unsigned(tmp_18_fu_783_p6),to_integer(unsigned('0' & tmp_16_fu_754_p1(31-1 downto 0)))));
    tmp_1_fu_475_p4 <= header_reg_1011(17 downto 10);
    tmp_20_cast_fu_657_p1 <= std_logic_vector(IEEE.numeric_std.resize(unsigned(idxloopcount_4_fu_649_p3),9));
        tmp_20_fu_835_p1 <= std_logic_vector(IEEE.numeric_std.resize(signed(CuOffset_assign_fu_170),32));

        tmp_21_cast_fu_758_p1 <= std_logic_vector(IEEE.numeric_std.resize(signed(k_reg_322),9));

    tmp_21_fu_839_p2 <= std_logic_vector(shift_left(unsigned(tmp_16_reg_1102),to_integer(unsigned('0' & tmp_20_fu_835_p1(31-1 downto 0)))));
    tmp_22_fu_844_p4 <= tmp_21_fu_839_p2(31 downto 2);
        tmp_23_fu_854_p1 <= std_logic_vector(IEEE.numeric_std.resize(signed(tmp_22_fu_844_p4),32));

    tmp_24_fu_858_p2 <= std_logic_vector(unsigned(CuBaseAddress_assign_fu_178) + unsigned(tmp_23_fu_854_p1));
    tmp_25_fu_807_p2 <= std_logic_vector(unsigned(tmp_2_cast_reg_1058) + unsigned(ap_const_lv4_5));
    tmp_26_fu_812_p1 <= std_logic_vector(IEEE.numeric_std.resize(unsigned(tmp_25_fu_807_p2),32));
    tmp_27_fu_816_p2 <= std_logic_vector(unsigned(tmp_26_fu_812_p1) + unsigned(SlotBaseAddr_reg_998));
    tmp_28_fu_821_p1 <= std_logic_vector(IEEE.numeric_std.resize(unsigned(tmp_27_reg_1118),64));
    tmp_29_fu_864_p2 <= std_logic_vector(unsigned(tmp_24_fu_858_p2) + unsigned(ap_const_lv32_4));
    tmp_2_cast_fu_535_p1 <= std_logic_vector(IEEE.numeric_std.resize(unsigned(noofcumasksread_reg_1027),4));
    tmp_2_fu_521_p1 <= std_logic_vector(IEEE.numeric_std.resize(unsigned(tmp_s_reg_1042),64));
    tmp_30_fu_870_p1 <= std_logic_vector(IEEE.numeric_std.resize(unsigned(tmp_29_reg_1140),64));
        tmp_31_cast_fu_880_p1 <= std_logic_vector(IEEE.numeric_std.resize(signed(l_reg_333),9));

    tmp_31_fu_831_p1 <= std_logic_vector(IEEE.numeric_std.resize(unsigned(payload_1_reg_1036),32));
    tmp_32_fu_884_p2 <= "1" when (signed(tmp_31_cast_fu_880_p1) < signed(tmp_10_cast_reg_1064)) else "0";
    tmp_34_fu_895_p1 <= std_logic_vector(IEEE.numeric_std.resize(unsigned(tmp_24_reg_1135),64));
        tmp_35_fu_909_p1 <= std_logic_vector(IEEE.numeric_std.resize(signed(SlotSize_assign_fu_166),32));

    tmp_3_fu_409_p2 <= "1" when (signed(i_reg_300) < signed(NoOfSlots_assign_fu_174)) else "0";
        tmp_4_fu_421_p1 <= std_logic_vector(IEEE.numeric_std.resize(signed(i_reg_300),32));

    tmp_5_fu_425_p1 <= std_logic_vector(IEEE.numeric_std.resize(unsigned(tmp_4_fu_421_p1),128));
    tmp_6_fu_429_p2 <= std_logic_vector(shift_right(signed(CuDmaQueue_assign_fu_162),to_integer(unsigned('0' & tmp_5_fu_425_p1(31-1 downto 0)))));
    tmp_7_fu_531_p1 <= std_logic_vector(IEEE.numeric_std.resize(unsigned(noofcumasksread_reg_1027),32));
    tmp_8_fu_445_p1 <= std_logic_vector(IEEE.numeric_std.resize(unsigned(SlotBaseAddr_reg_998),64));
    tmp_9_fu_545_p2 <= "1" when (signed(tmp_11_cast_fu_541_p1) < signed(tmp_2_cast_reg_1058)) else "0";
    tmp_fu_556_p1 <= j_reg_311(2 - 1 downto 0);
    tmp_s_fu_516_p2 <= std_logic_vector(unsigned(SlotBaseAddr_reg_998) + unsigned(ap_const_lv32_1));
end behav;


