Slave fifo with non multiple of 4 byte sizes | Cypress Semiconductor
Slave fifo with non multiple of 4 byte sizes
We have an application where we're using the 32 bit gpif bus to stream data from an fpga. That works fine but for some reads, we'd like to read a number of bytes that are not a multiple of 4.
One we we experimented with this is to use manual commit mode and if the amount of data we wanted is not a multiple of 4 then to modify the buffer count to be less in order to truncate the unneeded extra bytes. This of course is much slower than auto commit mode and not ideal.
Does anyone have a solution to this problem or is everyone always simply reading data in multiples of 4 bytes? What if I wanted to read 510 instead of 512 bytes for instance?