Skip to main content

Crate xlsynth_codegen

Crate xlsynth_codegen 

Source
Expand description

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

Modules§

sv_bridge_builder
Builder that creates SystemVerilog type definitions from DSLX type definitions.

Structs§

BlockCodegenOptions
Configures faithful SystemVerilog emission of an existing block.
BlockCodegenOutput
Contains the emitted SystemVerilog source.
BlockCodegenWithRegisterNames
Generated RTL together with the signal names needed to initialize top block state in a simulator.

Enums§

BlockCodegenError
Explains why a block cannot be represented as supported SystemVerilog.
Layout
Controls whether a block is presented in register-delimited stage sections.

Functions§

emit_system_verilog
Emits the selected block and its transitive block dependencies. Call inline_invokes_for_codegen first if those blocks contain function calls.
emit_system_verilog_with_register_names
Emits the RTL and records the allocated signal name for each representable register in the selected top block. The same input requirements apply as for emit_system_verilog.
inline_invokes_for_codegen
Inlines function calls in the selected top and its transitive child blocks.