refactor read/write pma from/to fifo
2 files changed