Get rid of one unnecessary avalon_wait_ready.
Provide a suitable delay after sending the idle message to all avalon chips before clearing the read buffer completely.