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

Public Member Functions

 __init__ (self, structure)
 
 portbinding (self, tree)
 
 hfieldaccess (self, tree)
 
 hvarref (self, tree)
 
 idlit (self, tree)
 
 numlit (self, tree)
 
 numlitwidth (self, tree)
 
 htypeint (self, tree)
 
 htype (self, tree)
 
 hsensvar (self, tree)
 
 hasync (self, tree)
 
 npa (self, tree)
 
 hmodule (self, tree)
 
- Public Member Functions inherited from parselib.transforms.top_down.TopDown
 __default__ (self, t)
 

Public Attributes

 structure = structure
 
bool is_port_binding = False
 
 port_binding_module = None
 
list field_access = None
 
 current_module = tree.children[0]
 

Protected Member Functions

 _get_port_binding_moduel (self, tree)
 

Detailed Description

Expands integer literal into int

Definition at line 11 of file literal_expansion.py.

Constructor & Destructor Documentation

◆ __init__()

parselib.transforms.literal_expansion.LiteralExpansion.__init__ ( self,
structure )

Reimplemented from parselib.transforms.top_down.TopDown.

Definition at line 13 of file literal_expansion.py.

Member Function Documentation

◆ _get_port_binding_moduel()

parselib.transforms.literal_expansion.LiteralExpansion._get_port_binding_moduel ( self,
tree )
protected
Get the name of the module that corresponds
to this port-binding

Definition at line 20 of file literal_expansion.py.

◆ hasync()

parselib.transforms.literal_expansion.LiteralExpansion.hasync ( self,
tree )

Definition at line 134 of file literal_expansion.py.

◆ hfieldaccess()

parselib.transforms.literal_expansion.LiteralExpansion.hfieldaccess ( self,
tree )
      hFieldaccess  NONAME [
        hBinop ARRAYSUBSCRIPT [
          hBinop ARRAYSUBSCRIPT [
            hVarref pa_scclang_global_15 NOLIST
            hVarref sig_scclang_global_1 NOLIST
          ]
          hVarref sig_scclang_global_1 NOLIST
        ]
        hField x NOLIST
      ]

Definition at line 44 of file literal_expansion.py.

◆ hmodule()

parselib.transforms.literal_expansion.LiteralExpansion.hmodule ( self,
tree )

Definition at line 146 of file literal_expansion.py.

◆ hsensvar()

parselib.transforms.literal_expansion.LiteralExpansion.hsensvar ( self,
tree )

Definition at line 126 of file literal_expansion.py.

◆ htype()

parselib.transforms.literal_expansion.LiteralExpansion.htype ( self,
tree )

Definition at line 119 of file literal_expansion.py.

◆ htypeint()

parselib.transforms.literal_expansion.LiteralExpansion.htypeint ( self,
tree )

Definition at line 116 of file literal_expansion.py.

◆ hvarref()

parselib.transforms.literal_expansion.LiteralExpansion.hvarref ( self,
tree )

Definition at line 67 of file literal_expansion.py.

◆ idlit()

parselib.transforms.literal_expansion.LiteralExpansion.idlit ( self,
tree )

Definition at line 103 of file literal_expansion.py.

◆ npa()

parselib.transforms.literal_expansion.LiteralExpansion.npa ( self,
tree )

Definition at line 143 of file literal_expansion.py.

◆ numlit()

parselib.transforms.literal_expansion.LiteralExpansion.numlit ( self,
tree )

Definition at line 107 of file literal_expansion.py.

◆ numlitwidth()

parselib.transforms.literal_expansion.LiteralExpansion.numlitwidth ( self,
tree )

Definition at line 111 of file literal_expansion.py.

◆ portbinding()

parselib.transforms.literal_expansion.LiteralExpansion.portbinding ( self,
tree )

Definition at line 35 of file literal_expansion.py.

Member Data Documentation

◆ current_module

parselib.transforms.literal_expansion.LiteralExpansion.current_module = tree.children[0]

Definition at line 147 of file literal_expansion.py.

◆ field_access

list parselib.transforms.literal_expansion.LiteralExpansion.field_access = None

Definition at line 18 of file literal_expansion.py.

◆ is_port_binding

bool parselib.transforms.literal_expansion.LiteralExpansion.is_port_binding = False

Definition at line 16 of file literal_expansion.py.

◆ port_binding_module

parselib.transforms.literal_expansion.LiteralExpansion.port_binding_module = None

Definition at line 17 of file literal_expansion.py.

◆ structure

parselib.transforms.literal_expansion.LiteralExpansion.structure = structure

Definition at line 15 of file literal_expansion.py.


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