Skip to main content

FRAME_STRIDE_LOG2

Constant FRAME_STRIDE_LOG2 

Source
pub const FRAME_STRIDE_LOG2: usize = 11;
Expand description

log2 of the frame stride in bytes (2 KiB).

Frame f starts at base + (f << 11). A power-of-two stride turns the address multiply into a free wire shift, and 2 KiB divides 4 KiB, so a 1,664-byte frame never crosses a 4 KiB AXI page.