Open barawn opened 5 months ago
@cozzyd 2 questions:
If I split the FIFO up into a big buffer + small clock cross FIFO, the prog_full will only count data in the big buffer and not that clock cross, so functionally there will be a "minimum size" on the threshold (as in if you set it to 1, it might require 33 bytes to hit that threshold). And the TX fifo count obviously won't count anything in the clock cross FIFO so it'd be off a bit as well.
OK, it doesn't look like either of those will matter, then, and besides you can just drop the FIFO count down to like, 480 or something and it'd be functionally identical.
The TX fifo is the only one with the extra logic so it's probably the only one that needs to be split. Not high priority but want to leave this here in case timing becomes more of a problem later.
The diciest timing in the design seems to reliably be the SPI RX/TX FIFOs and they don't actually have to be as big/fast as they are. The TX FIFO can probably be a large wb_clk FIFO coupled with a smaller cross-clock FIFO since it can only output 37.5 MB/s anyway.