hwt.synthesizer package

Sythesizer converts hwt.hwModule.HwModule instances to HDL objects.

hwt.synth.to_rtl() function is one of examples how to use this module. The conversion of hwt.hwModule.HwModule instances happens mainly in hwt.hwModule.Hmodule._to_rtl() which calls other optimization and transformations stored in :hwt.hwModule.HwModule._target_platform.

Subpackages

Submodules

hwt.synthesizer.componentPath module

hwt.synthesizer.dummyPlatform module

hwt.synthesizer.exceptions module

exception hwt.synthesizer.exceptions.ConfErr[source]

Bases: Exception

exception hwt.synthesizer.exceptions.InterfaceStructureErr(dst: HwIOBase, src: HwIOBase, exclude: Set[HwIOBase])[source]

Bases: IntfLvlConfErr

An exception which means that the two interfaces have non compatible sub-interfaces. (E.g. they do have a differently named signals)

Variables:

exclude – a set of sub-interfaces which should be excluded during the comparison

__init__(dst: HwIOBase, src: HwIOBase, exclude: Set[HwIOBase])[source]
exception hwt.synthesizer.exceptions.IntfLvlConfErr[source]

Bases: ConfErr

Interface level synthesizer user configuration error

exception hwt.synthesizer.exceptions.SigLvlConfErr[source]

Bases: ConfErr

Signal level synthesizer user configuration error

exception hwt.synthesizer.exceptions.TypeConversionErr[source]

Bases: TypeError

hwt.synthesizer.typePath module

class hwt.synthesizer.typePath.TypePath(*objs)[source]

Bases: tuple[str | int, …]

A path in hierarchy of structuralized type

getOnObject(o)[source]
setOnObject(o, newV)[source]

hwt.synthesizer.vectorUtils module