Skip to main content

compile_to_full_words_w

Function compile_to_full_words_w 

Source
pub fn compile_to_full_words_w(
    source: &str,
    width: u32,
) -> Result<Vec<u32>, String>
Expand description

The WIDTH-PARAMETRIC form of compile_to_full_words: compile .lg source to full soft-core imem words for a datapath of width bits (32 = the tape-out core, byte-identical to the historical output; 64 = full-i64 VM parity — a constant that exceeds i32, like the benchmark PRNGs’ % 2147483648 / % 4294967296 moduli, is emitted as a 3-word LoadConstWide64 instead of being truncated). Pair with crate::codegen_sva::soft_core_model::run_soft_core_w at the SAME width.