buf_IPU_DATAREADY_OUT <= '0';
end if;
if buf_APL_READ_IN(1) = '1' and buf_APL_DATAREADY_OUT(1) = '1' and buf_APL_TYP_OUT(5 downto 3) = TYPE_DAT then
- if buf_APL_PACKET_NUM_IN(5 downto 3) = c_F0 or buf_APL_PACKET_NUM_IN(5 downto 3) = c_F2 then
+ if buf_APL_PACKET_NUM_OUT(5 downto 3) = c_F0 or buf_APL_PACKET_NUM_OUT(5 downto 3) = c_F2 then
buf_IPU_DATA_OUT(31 downto 16) <= buf_APL_DATA_OUT(31 downto 16);
- elsif buf_APL_PACKET_NUM_IN(5 downto 3) = c_F1 or buf_APL_PACKET_NUM_IN(5 downto 3) = c_F3 then
+ elsif buf_APL_PACKET_NUM_OUT(5 downto 3) = c_F1 or buf_APL_PACKET_NUM_OUT(5 downto 3) = c_F3 then
buf_IPU_DATA_OUT(15 downto 0) <= buf_APL_DATA_OUT(31 downto 16);
buf_IPU_DATAREADY_OUT <= '1';
end if;