xlsynth-codegen 0.76.0

Rust-native SystemVerilog generation for XLS block IR
Documentation
// SPDX-License-Identifier: Apache-2.0

//! Deterministic, Rust-native SystemVerilog generation for XLS block IR and
//! DSLX types.

mod arithmetic;
mod block;
mod error;
mod hierarchy;
mod ops;
mod options;
mod priority;
mod slicing;
mod stages;
pub mod sv_bridge_builder;

pub use error::BlockCodegenError;
pub use options::{BlockCodegenOptions, BlockCodegenOutput, Layout};

use xlsynth_pir::ir::Package;

/// Emits the selected block and its transitive block dependencies.
pub fn emit_system_verilog(
    package: &Package,
    options: &BlockCodegenOptions,
) -> Result<BlockCodegenOutput, BlockCodegenError> {
    block::emit_package(package, options)
}