CIRCT  19.0.0git
Public Member Functions | List of all members
hw.HWModuleOp Class Reference
Inheritance diagram for hw.HWModuleOp:
Inheritance graph
Collaboration diagram for hw.HWModuleOp:
Collaboration graph

Public Member Functions

def __init__ (self, name, input_ports=[], output_ports=[], *parameters=[], attributes={}, body_builder=None, loc=None, ip=None)
def body (self)
def entry_block (self)
def input_indices (self)
def __getattr__ (self, name)
dict[str:Value] inputs (self)
dict[str:Type] outputs (self)
def add_entry_block (self)
- Public Member Functions inherited from hw.ModuleLike
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)

Detailed Description

Specialization for the HW module op class.

Definition at line 294 of file

Constructor & Destructor Documentation

◆ __init__()

def hw.HWModuleOp.__init__ (   self,
  input_ports = [],
  output_ports = [],
parameters = [],
  attributes = {},
  body_builder = None,
  loc = None,
  ip = None 
Create a module-like with the provided `name`, `input_ports`, and
- `name` is a string representing the module name.
- `input_ports` is a list of pairs of string names and types.
- `output_ports` is a list of pairs of string names and 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 297 of file

Member Function Documentation

◆ __getattr__()

def hw.HWModuleOp.__getattr__ (   self,

Definition at line 337 of file

References hw.HWModuleOp.entry_block(), and hw.HWModuleOp.input_indices().

◆ add_entry_block()

def hw.HWModuleOp.add_entry_block (   self)

◆ body()

def hw.HWModuleOp.body (   self)

◆ entry_block()

def hw.HWModuleOp.entry_block (   self)

Definition at line 325 of file

Referenced by hw.HWModuleOp.__getattr__(), and hw.HWModuleOp.inputs().

◆ input_indices()

def hw.HWModuleOp.input_indices (   self)

◆ inputs()

dict[str:Value] hw.HWModuleOp.inputs (   self)

Definition at line 343 of file

References hw.HWModuleOp.entry_block(), and hw.HWModuleOp.input_indices().

◆ outputs()

dict[str:Type] hw.HWModuleOp.outputs (   self)

The documentation for this class was generated from the following file: