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

Public Member Functions

 __init__ (self)
 
 hbinop (self, tree)
 
 blkassign (self, tree)
 
 hfunction (self, tree)
 
- Public Member Functions inherited from parselib.transforms.top_down.TopDown
 __default__ (self, t)
 

Public Attributes

 expanded = list()
 
str __is_in_function = '=':
 

Private Member Functions

 __clear_driven_signals (self)
 
 __record_driven_signal (self, sig_name)
 
 __get_driven_sig_name (self, Tree tree)
 

Private Attributes

bool __is_in_function = False
 
 __driven_signals = set()
 

Detailed Description

Definition at line 8 of file function_param_marker.py.

Constructor & Destructor Documentation

◆ __init__()

parselib.transforms.function_param_marker.FunctionParamMarker.__init__ ( self)
This pass marks the function parameters as input/output or inout, so that the synthesis tool can handle
function parameters correctly

Reimplemented from parselib.transforms.top_down.TopDown.

Definition at line 9 of file function_param_marker.py.

Member Function Documentation

◆ __clear_driven_signals()

parselib.transforms.function_param_marker.FunctionParamMarker.__clear_driven_signals ( self)
private

Definition at line 19 of file function_param_marker.py.

◆ __get_driven_sig_name()

parselib.transforms.function_param_marker.FunctionParamMarker.__get_driven_sig_name ( self,
Tree tree )
private
determines which signal is the signal that is being driven
currently, it returns the first hvarref node, which is true.
But this might be changed at a later point

Definition at line 26 of file function_param_marker.py.

◆ __record_driven_signal()

parselib.transforms.function_param_marker.FunctionParamMarker.__record_driven_signal ( self,
sig_name )
private
This function records which signal is driven in the process

Definition at line 22 of file function_param_marker.py.

◆ blkassign()

parselib.transforms.function_param_marker.FunctionParamMarker.blkassign ( self,
tree )
block assignment

Definition at line 44 of file function_param_marker.py.

◆ hbinop()

parselib.transforms.function_param_marker.FunctionParamMarker.hbinop ( self,
tree )
binary op

Definition at line 36 of file function_param_marker.py.

◆ hfunction()

parselib.transforms.function_param_marker.FunctionParamMarker.hfunction ( self,
tree )

Definition at line 51 of file function_param_marker.py.

Member Data Documentation

◆ __driven_signals

parselib.transforms.function_param_marker.FunctionParamMarker.__driven_signals = set()
private

Definition at line 17 of file function_param_marker.py.

◆ __is_in_function [1/2]

bool parselib.transforms.function_param_marker.FunctionParamMarker.__is_in_function = False
private

Definition at line 16 of file function_param_marker.py.

◆ __is_in_function [2/2]

str parselib.transforms.function_param_marker.FunctionParamMarker.__is_in_function = '=':

Definition at line 38 of file function_param_marker.py.

◆ expanded

parselib.transforms.function_param_marker.FunctionParamMarker.expanded = list()

Definition at line 15 of file function_param_marker.py.


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