Skip to main content

resize_operand_fifos

Function resize_operand_fifos 

Source
pub fn resize_operand_fifos(
    p: &SpatialProgram,
    target: &SpatialTarget,
    depth: usize,
) -> Result<SpatialProgram, SpatialReject>
Expand description

Re-size every operand FIFO to depth pages and lay the site out again.

Depth is the one buffering choice the cost model cannot yet score, so it is also the one that has to be MEASURED rather than argued. This is the instrument that measures it: it takes a program the passes have already sized and re-runs the layout at a pinned depth, so two runs differ in exactly that number.