Currently, I'm working on decoding a JP2 file via the ADV212 in HIPI mode. I'm adding an ADI header, as well as a JP2 header - since the tile is being extracted from a merged JPEG2000 frame. The tile is 256x256 and the full frame is 5120x5120.
The issue I'm seeing is, after programming the ADV212 chips (there are two in my test), I see both DREQ0n and DREQ1n assert for both chips. My state machine uses an arbiter and expects the ADV212 to be written before requesting to be read. Correct me if I'm wrong, but the ADV212 should not request to be read until after data has been written to it, and the decoded data is ready to send. This leads me to believe that my programming is wrong.
I'm wondering if you have some suggestions of what might cause the ADV212 to request simultaneous writes and reads. Attached is the script in case it's needed.