systemc-clang 2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
parselib.transforms.port_expansion.PortExpansion Class Reference
Inheritance diagram for parselib.transforms.port_expansion.PortExpansion:
Collaboration diagram for parselib.transforms.port_expansion.PortExpansion:

Public Member Functions

 __init__ (self)
 
 create_inport (self, t, meta)
 
 create_outport (self, t, meta)
 
 create_channel (self, t, meta)
 
 create_inport_decl (self, name, meta)
 
 create_outport_decl (self, name, meta)
 
 create_channel_decl (self, name, meta)
 
 modportsiglist (self, tree)
 
 hmodinitblock (self, tree)
 
 stmts (self, tree)
 
 forbody (self, tree)
 
 stmt (self, tree)
 
 portbinding (self, tree)
 
 portbindinglist (self, tree)
 
 hmodule (self, tree)
 
- Public Member Functions inherited from parselib.transforms.top_down.TopDown
 __default__ (self, t)
 

Public Attributes

 expanded = list()
 
bool is_in_initblock = True
 
list is_in_initblock = []
 
int is_in_initblock = 1
 

Private Member Functions

 __expand_sc_rvd (self, tree, inout=None)
 
 __expand_sc_rvd_binding_pair (self, tree)
 
 __expand_port (self, tree)
 
 __expand_vardecl (self, tree)
 
 __set_expanded (self, var_name, bundle_type_name)
 
 __get_expanded (self, var_name)
 
 __check_stmt_portbinding (self, stmt)
 

Detailed Description

Definition at line 9 of file port_expansion.py.

Constructor & Destructor Documentation

◆ __init__()

parselib.transforms.port_expansion.PortExpansion.__init__ ( self)
Expands mixed port objects such as sc_rvd into in-port and out-port
This pass should come **before** typedef expansion

Reimplemented from parselib.transforms.top_down.TopDown.

Definition at line 10 of file port_expansion.py.

Member Function Documentation

◆ __check_stmt_portbinding()

parselib.transforms.port_expansion.PortExpansion.__check_stmt_portbinding ( self,
stmt )
private

Definition at line 197 of file port_expansion.py.

◆ __expand_port()

parselib.transforms.port_expansion.PortExpansion.__expand_port ( self,
tree )
private

Definition at line 107 of file port_expansion.py.

◆ __expand_sc_rvd()

parselib.transforms.port_expansion.PortExpansion.__expand_sc_rvd ( self,
tree,
inout = None )
private

Definition at line 38 of file port_expansion.py.

◆ __expand_sc_rvd_binding_pair()

parselib.transforms.port_expansion.PortExpansion.__expand_sc_rvd_binding_pair ( self,
tree )
private

Definition at line 86 of file port_expansion.py.

◆ __expand_vardecl()

parselib.transforms.port_expansion.PortExpansion.__expand_vardecl ( self,
tree )
private

Definition at line 125 of file port_expansion.py.

◆ __get_expanded()

parselib.transforms.port_expansion.PortExpansion.__get_expanded ( self,
var_name )
private

Definition at line 143 of file port_expansion.py.

◆ __set_expanded()

parselib.transforms.port_expansion.PortExpansion.__set_expanded ( self,
var_name,
bundle_type_name )
private

Definition at line 138 of file port_expansion.py.

◆ create_channel()

parselib.transforms.port_expansion.PortExpansion.create_channel ( self,
t,
meta )

Definition at line 26 of file port_expansion.py.

◆ create_channel_decl()

parselib.transforms.port_expansion.PortExpansion.create_channel_decl ( self,
name,
meta )

Definition at line 35 of file port_expansion.py.

◆ create_inport()

parselib.transforms.port_expansion.PortExpansion.create_inport ( self,
t,
meta )

Definition at line 20 of file port_expansion.py.

◆ create_inport_decl()

parselib.transforms.port_expansion.PortExpansion.create_inport_decl ( self,
name,
meta )

Definition at line 29 of file port_expansion.py.

◆ create_outport()

parselib.transforms.port_expansion.PortExpansion.create_outport ( self,
t,
meta )

Definition at line 23 of file port_expansion.py.

◆ create_outport_decl()

parselib.transforms.port_expansion.PortExpansion.create_outport_decl ( self,
name,
meta )

Definition at line 32 of file port_expansion.py.

◆ forbody()

parselib.transforms.port_expansion.PortExpansion.forbody ( self,
tree )

Definition at line 183 of file port_expansion.py.

◆ hmodinitblock()

parselib.transforms.port_expansion.PortExpansion.hmodinitblock ( self,
tree )

Definition at line 164 of file port_expansion.py.

◆ hmodule()

parselib.transforms.port_expansion.PortExpansion.hmodule ( self,
tree )

Definition at line 237 of file port_expansion.py.

◆ modportsiglist()

parselib.transforms.port_expansion.PortExpansion.modportsiglist ( self,
tree )

Definition at line 149 of file port_expansion.py.

◆ portbinding()

parselib.transforms.port_expansion.PortExpansion.portbinding ( self,
tree )

Definition at line 224 of file port_expansion.py.

◆ portbindinglist()

parselib.transforms.port_expansion.PortExpansion.portbindinglist ( self,
tree )

Definition at line 228 of file port_expansion.py.

◆ stmt()

parselib.transforms.port_expansion.PortExpansion.stmt ( self,
tree )

Definition at line 204 of file port_expansion.py.

◆ stmts()

parselib.transforms.port_expansion.PortExpansion.stmts ( self,
tree )

Definition at line 170 of file port_expansion.py.

Member Data Documentation

◆ expanded

parselib.transforms.port_expansion.PortExpansion.expanded = list()

Definition at line 16 of file port_expansion.py.

◆ is_in_initblock [1/3]

list parselib.transforms.port_expansion.PortExpansion.is_in_initblock = True

Definition at line 17 of file port_expansion.py.

◆ is_in_initblock [2/3]

list parselib.transforms.port_expansion.PortExpansion.is_in_initblock = []

Definition at line 172 of file port_expansion.py.

◆ is_in_initblock [3/3]

int parselib.transforms.port_expansion.PortExpansion.is_in_initblock = 1

Definition at line 205 of file port_expansion.py.


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