add safequeue for fifo emu
implement packet process emu, but will dead lock