rust_hdl_lib_core 0.44.1

Write firmware for FPGAs in Rust - core crate
Documentation
#[macro_export]
macro_rules! target_path {
    ($name: expr) => {
        &std::path::PathBuf::from(env!("CARGO_TARGET_TMPDIR"))
            .join("firmware")
            .join($name)
            .to_string_lossy()
            .to_string()
    };
}

#[macro_export]
macro_rules! vcd_path {
    ($name: expr) => {{
        let env = option_env!("CARGO_TARGET_TMPDIR").unwrap_or(env!("CARGO_MANIFEST_DIR"));
        let dest = &std::path::PathBuf::from(env).join("sims");
        let _ = std::fs::create_dir(dest);
        dest.join($name).to_string_lossy().to_string()
    }};
}