elasticai.creator.ir2vhdl.language#
Module Contents#
Classes#
Represents an entity that we can/want instantiate. |
|
Automatically creates Instances from VhdlNodes based on their |
API#
- class elasticai.creator.ir2vhdl.language.Signal[source]#
Bases:
abc.ABC- types: set[type[elasticai.creator.ir2vhdl.language.Signal]]#
‘set(…)’
- abstract property name: str#
- classmethod from_code(code: str) elasticai.creator.ir2vhdl.language.Signal[source]#
- classmethod register_type(t: type[elasticai.creator.ir2vhdl.language.Signal]) None[source]#
- abstractmethod make_instance_specific(instance: str) elasticai.creator.ir2vhdl.language.Signal[source]#
- class elasticai.creator.ir2vhdl.language.LogicSignal(name: str)[source]#
Bases:
elasticai.creator.ir2vhdl.language.Signal- property name: str#
- classmethod from_code(code: str) elasticai.creator.ir2vhdl.language.Signal[source]#
- make_instance_specific(instance: str) elasticai.creator.ir2vhdl.language.Signal[source]#
- class elasticai.creator.ir2vhdl.language.LogicVectorSignal(name: str, width: int)[source]#
Bases:
elasticai.creator.ir2vhdl.language.Signal- property name: str#
- property width: int#
- classmethod from_code(code: str) elasticai.creator.ir2vhdl.language.Signal[source]#
- make_instance_specific(instance: str) elasticai.creator.ir2vhdl.language.Signal[source]#
- class elasticai.creator.ir2vhdl.language.NullDefinedLogicSignal(name)[source]#
Bases:
elasticai.creator.ir2vhdl.language.Signal- property name: str#
- classmethod from_code(code: str) elasticai.creator.ir2vhdl.language.Signal[source]#
- make_instance_specific(instance: str) elasticai.creator.ir2vhdl.language.Signal[source]#
- class elasticai.creator.ir2vhdl.language.PortMap(map: dict[str, elasticai.creator.ir2vhdl.language.Signal])[source]#
Initialization
- classmethod from_dict(data: dict[str, str]) elasticai.creator.ir2vhdl.language.PortMap[source]#
- class elasticai.creator.ir2vhdl.language.Instance(node: elasticai.creator.hdl_ir.Node, generic_map: dict[str, str], port_map: dict[str, elasticai.creator.ir2vhdl.language.Signal])[source]#
Represents an entity that we can/want instantiate.
The aggregates all the knowledge that is necessary to instantiate and use the corresponding entity programmatically, when generating vhdl code.
Initialization
- property input_shape: elasticai.creator.hdl_ir.Shape#
- property output_shape: elasticai.creator.hdl_ir.Shape#
- property name: str#
- property implementation: str#
- class elasticai.creator.ir2vhdl.language.InstanceFactory[source]#
Automatically creates Instances from VhdlNodes based on their
typefield.- register(type: str | None, fn: collections.abc.Callable[[elasticai.creator.hdl_ir.Node], elasticai.creator.ir2vhdl.language.Instance]) collections.abc.Callable[[elasticai.creator.hdl_ir.Node], elasticai.creator.ir2vhdl.language.Instance][source]#