Skip to main content

emit_fifo_verilog

Function emit_fifo_verilog 

Source
pub fn emit_fifo_verilog(name: &str, depth: usize, width: usize) -> String
Expand description

A bounded FIFO of depth entries of width bits: FIFO order, full refuses a sender, empty refuses a receiver, dout is the oldest buffered value. Power-of-two depths wrap their pointers naturally; other depths compare explicitly.