state machine works for simulator but not on the actual board, the data isn't being correctly written/read to/from bram and arrays.