ad_reg_1160 <= CQDma_RDATA;
            end if;
        end if;
    end process;
    process (ap_clk)
    begin
        if (ap_clk'event and ap_clk = '1') then
            if (((ap_start = ap_const_logic_1) and (ap_const_logic_1 = ap_CS_fsm_state1))) then
                CqBaseAddress_assign_fu_182 <= CqBaseAddress;
                CuBaseAddress_assign_fu_178 <= CuBaseAddress;
                CuDmaQueue_assign_fu_162 <= CuDmaQueue;
                CuOffset_assign_fu_170 <= CuOffset;
                NoOfSlots_assign_fu_174 <= NoOfSlots;
                SlotSize_assign_fu_166 <= SlotSize;
            end if;
        end if;
    end process;
    process (ap_clk)
    begin
        if (ap_clk'event and ap_clk = '1') then
            if (((ap_const_logic_1 = ap_CS_fsm_state3) and (tmp_3_fu_409_p2 = ap_const_lv1_1) and (bit_fu_435_p1 = ap_const_lv1_1))) then
                SlotBaseAddr_reg_998 <= SlotBaseAddr_fu_439_p2;
            end if;
        end if;
    end process;
    process (ap_clk)
    begin
        if (ap_clk'event and ap_clk = '1') then
            if (((ap_const_boolean_0 = ap_block_pp0_stage0_11001) and (ap_const_logic_1 = ap_CS_fsm_pp0_stage0))) then
                ap_reg_pp0_iter1_tmp_32_reg_1151 <= tmp_32_reg_1151;
                tmp_32_reg_1151 <= tmp_32_fu_884_p2;
            end if;
        end if;
    end process;
    process (ap_clk)
    begin
        if (ap_clk'event and ap_clk = '1') then
            if (((ap_const_logic_1 = ap_CS_fsm_state3) and (tmp_3_fu_409_p2 = ap_const_lv1_1))) then
                bit_reg_994 <= bit_fu_435_p1;
            end if;
        end if;
    end process;
    process (ap_clk)
    begin
        if (ap_clk'event and ap_clk = '1') then
            if ((not(((ap_const_logic_0 = CQDma_RVALID) and (tmp_9_fu_545_p2 = ap_const_lv1_1))) and (ap_const_logic_1 = ap_CS_fsm_state20) and (tmp_9_fu_545_p2 = ap_const_lv1_1))) then
                cubitmask_3_10_reg_1077 <= CQDma_RDATA;
                tmp_reg_1085 <= tmp_fu_556_p1;
            end if;
        end if;
    end process;
    process (ap_clk)
    begin
        if (ap_clk'event and ap_clk = '1') then
            if ((ap_const_logic_1 = ap_CS_fsm_state21)) then
                cubitmask_3_1_fu_142 <= cubitmask_3_8_fu_727_p3;
                cubitmask_3_3_fu_146 <= cubitmask_3_6_fu_719_p3;
                cubitmask_3_4_fu_150 <= cubitmask_3_2_fu_704_p3;
                cubitmask_3_7_fu_154 <= cubitmask_3_fu_689_p3;
            end if;
        end if;
    end process;
    process (ap_clk)
    begin
        if (ap_clk'event and ap_clk = '1') then
            if (((ap_const_logic_1 = CQDma_RVALID) and (ap_const_logic_1 = ap_CS_fsm_state11))) then
                header_reg_1011 <= CQDma_RDATA;
                noofcumasksread_tmp_reg_1021 <= CQDma_RDATA(11 downto 10);
                payload_reg_1016 <= CQDma_RDATA(19 downto 12);
            end if;
        end if;
    end process;
    process (ap_clk)
    begin
        if (ap_clk'event and ap_clk = '1') then
            if ((ap_const_logic_1 = ap_CS_fsm_state3)) then
         