::std::mem::

Entity clocked_memory_init

pub extern entity clocked_memory_init<#uint NumElements, #uint WritePorts, #uint AddrWidth, D>(clk: clock, writes: [(bool, uint<AddrWidth>, D); WritePorts], initial_values: [D; NumElements]) -> Memory<D, NumElements>
Expand

Same as clocked_memory but initializes the memory with the values specified in initial_values. The initial values must be evaluatable at compile time, otherwise an error is thrown