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

Public Member Functions

 __init__ (self)
 
 harrayref (self, tree)
 
 hslice (self, tree)
 
- Public Member Functions inherited from parselib.transforms.top_down.TopDown
 __default__ (self, t)
 

Private Member Functions

 __to_seq (self, tree)
 
 __is_literal_node (self, t)
 
 __check_part_select_left (self, tr)
 
 __check_part_select_right (self, tr)
 

Detailed Description

recognize slice patterns and convert slicing into synthesizable index part select

Definition at line 7 of file slice_merge.py.

Constructor & Destructor Documentation

◆ __init__()

parselib.transforms.slice_merge.SliceMerge.__init__ ( self)

Reimplemented from parselib.transforms.top_down.TopDown.

Definition at line 9 of file slice_merge.py.

Member Function Documentation

◆ __check_part_select_left()

parselib.transforms.slice_merge.SliceMerge.__check_part_select_left ( self,
tr )
private
check if the left hand side is width * (ID + 1) - 1
returns result, width, ID

Definition at line 18 of file slice_merge.py.

◆ __check_part_select_right()

parselib.transforms.slice_merge.SliceMerge.__check_part_select_right ( self,
tr )
private
check if the right hand-side is width * ID
returns result, width, ID

Definition at line 53 of file slice_merge.py.

◆ __is_literal_node()

parselib.transforms.slice_merge.SliceMerge.__is_literal_node ( self,
t )
private

Definition at line 15 of file slice_merge.py.

◆ __to_seq()

parselib.transforms.slice_merge.SliceMerge.__to_seq ( self,
tree )
private

Definition at line 12 of file slice_merge.py.

◆ harrayref()

parselib.transforms.slice_merge.SliceMerge.harrayref ( self,
tree )

Definition at line 71 of file slice_merge.py.

◆ hslice()

parselib.transforms.slice_merge.SliceMerge.hslice ( self,
tree )

Definition at line 80 of file slice_merge.py.


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