|
def | __init__ (self, name, input_ports=[], output_ports=[], *parameters=[], attributes={}, body_builder=None, loc=None, ip=None) |
|
def | type (self) |
|
def | name (self) |
|
def | is_external (self) |
|
list[ParamDeclAttr] | parameters (self) |
|
def | instantiate (self, str name, Dict[str, object] parameters={}, results=None, sym_name=None, loc=None, ip=None, **kwargs) |
|
Specialization for the HW module op class.
Definition at line 362 of file hw.py.
◆ __init__()
def hw.HWModuleExternOp.__init__ |
( |
|
self, |
|
|
|
name, |
|
|
|
input_ports = [] , |
|
|
|
output_ports = [] , |
|
|
* |
parameters = [] , |
|
|
|
attributes = {} , |
|
|
|
body_builder = None , |
|
|
|
loc = None , |
|
|
|
ip = None |
|
) |
| |
Create a module-like with the provided `name`, `input_ports`, and
`output_ports`.
- `name` is a string representing the module name.
- `input_ports` is a list of pairs of string names and mlir.ir types.
- `output_ports` is a list of pairs of string names and mlir.ir types.
- `body_builder` is an optional callback, when provided a new entry block
is created and the callback is invoked with the new op as argument within
an InsertionPoint context already set for the block. The callback is
expected to insert a terminator in the block.
Reimplemented from hw.ModuleLike.
Definition at line 365 of file hw.py.
The documentation for this class was generated from the following file:
- /home/runner/work/circt-www/circt-www/circt_src/lib/Bindings/Python/dialects/hw.py