elasticai.creator.ir2verilog.templates#
Module Contents#
Classes#
Director for verilog templates. |
|
API#
- class elasticai.creator.ir2verilog.templates.TemplateDirector[source]#
Director for verilog templates.
Most methods correspond to verilog language constructs.
Initialization
- define_scoped_switch(name: str, default: bool) Self[source]#
Add a switch for a define that is scoped to the module name.
The switch will be prefixed with the value that users provide as
module_nameto the render call.- Parameters:
name – String with name of the switch/define name
default – Setting switch for defining output state (True=set, False=undefine)