Open jameshegarty opened 7 years ago
With commit #105 , this sort of works, but is broken. Cycle count doesn't work if data is not byte aligned.
Order is: OverUnder(CycleCount(ChangeRate(DUT))) we use changerate to size the FN in/out to bus width. round up to next burst alignment cycleCount waits for a burst aligned write. The reader will read burst aligned, and start to read a second frame into the DUT. If DUT doesn't produce data, it may stall. When cycleCount writes out at burst aligned address (but this is NOT what the scripts expect).
Better idea perhaps is: OverUnder(padToBurst(cycleCount(ChangeRate(DUT))))
We need: A test that gets a non-burst aligned size due to decimation. IE reads 16x16 image, writes 15x15 (and is invalid on the first cycle, not the last)
implement a wrapper to bring to nearest AXI burst size. Need to add a pad & crop to bring any pixel size up to burst size. Need to add infrastructure to pad/crop the input image & output image.