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

Public Member Functions

 __init__ (self, itf_meta)
 
 get_current_scope_type (self)
 
 push_current_scope_type (self, scope)
 
 pop_current_scope_type (self)
 
 interfaces (self, tree)
 
 interface (self, tree)
 
 start (self, tree)
 
 modulelist (self, tree)
 
 nonrefexp (self, tree)
 
 hmethodcall (self, tree)
 
 hwait (self, tree)
 
 hvarinitlist (self, tree)
 
 blkassign (self, tree)
 
 syscwrite (self, tree)
 
 numlitwidth (self, tree)
 
 hcondop (self, tree)
 
 hliteral (self, tree)
 
 hvarref (self, tree)
 
 syscread (self, tree)
 
 harrayref (self, tree)
 
 hsigassignl (self, tree)
 
 hbinop (self, tree)
 
 hpostfix (self, tree)
 
 hprefix (self, tree)
 
 hunop (self, tree)
 
 hcstmt (self, tree)
 
 continuestmt (self, tree)
 
 get_current_ind_prefix (self)
 
 casevalue (self, tree)
 
 switchbody (self, tree)
 
 casestmt (self, tree)
 
 switchcond (self, tree)
 
 switchstmt (self, tree)
 
 breakstmt (self, tree)
 
 stmt (self, tree)
 
 hnoop (self, tree)
 
 whilestmt (self, tree)
 
 dostmt (self, tree)
 
 stmts (self, tree)
 
 inc_indent (self)
 
 dec_indent (self)
 
 push_indent (self)
 
 pop_indent (self)
 
 ifstmt (self, tree)
 
 forinit (self, tree)
 
 forcond (self, tree)
 
 forpostcond (self, tree)
 
 forbody (self, tree)
 
 forstmt (self, tree)
 
 hsensvars (self, tree)
 
 npa (self, tree)
 
 hsensedge (self, tree)
 
 get_sense_list (self)
 
 hsenslist (self, tree)
 
 hvalchange (self, tree)
 
 set_current_proc_name (self, name)
 
 reset_current_proc_name (self)
 
 get_current_proc_name (self)
 
 hprocess (self, tree)
 
 htype (self, tree)
 
 hreturnstmt (self, tree)
 
 funcparami (self, tree)
 
 funcparamio (self, tree)
 
 vardeclinit (self, tree)
 
 hbindingarrayref (self, tree)
 
 expand_binding_ref (self, tree)
 
 modulearrayinst (self, tree)
 
 moduleinst (self, tree)
 
 hlrotate (self, tree)
 
 horreduce (self, tree)
 
 hconcat (self, tree)
 
 vardecl (self, tree)
 
 prevardecl (self, tree)
 
 htypeinfo (self, tree)
 
 func_param_name_stub (self, tree)
 
 hfunctionparams (self, tree)
 
 hfunctionrettype (self, tree)
 
 htouint (self, tree)
 
 htoint (self, tree)
 
 htoulong (self, tree)
 
 htolong (self, tree)
 
 hfunctionlocalvars (self, tree)
 
 hfunction (self, tree)
 
 collect_type (self, port_or_sig)
 
 sigdecltype (self, tree)
 
 portdecltype (self, tree)
 
 modportsiglist (self, tree)
 
 get_current_module_var_type (self, id)
 
 get_current_module_var_type_or_default (self, id, default=None)
 
 reset_current_module_var_type (self)
 
 insert_current_module_var_type (self, id, tpe)
 
 hthread (self, tree)
 
 hthreadsync (self, tree)
 
 hthreadswitch (self, tree)
 
 genbindinglist (self, tree)
 
 genvardecl (self, tree)
 
 genfor (self, tree)
 
 hmodule (self, tree)
 
 hbuiltin (self, tree)
 
 hscmax (self, tree)
 
 hscmin (self, tree)
 
 hgenvardecl (self, tree)
 
 hgenerateblock (self, tree)
 
- Public Member Functions inherited from parselib.transforms.top_down.TopDown
 __default__ (self, t)
 

Public Attributes

str indent_character = ' '
 
int current_indent = 0
 
int indent_inc = 2
 
 indent_stack = list()
 
 bindings = dict()
 
 local_variables = set()
 
bool in_for_init = False
 
 module_var_type = None
 
 current_proc_name = None
 
bool is_in_thread = False
 
bool thread_comb = False
 
 non_thread_comb_signals = set()
 
bool is_in_gen_block = False
 
 itf_meta = itf_meta
 
 ctx = ContextManager()
 
str non_thread_comb_signals = ''
 
list is_in_gen_block = []
 
dict senselist
 
 current_module
 
list bindings = []
 
 thread_name = tree.children[0]
 
list senselist = []
 

Protected Member Functions

 _clean_harrayref (self, harrayref_node)
 
 _get_interface_instance_decl (self, mod_name, mod_type_name, ind, is_array)
 
 _get_interface_instance (self, mod_name, mod_type_name, is_array)
 

Private Member Functions

 __get_var_name (self, tree)
 
 __get_var_names (self, tree)
 
 __check_const (self, tree)
 
 __is_local_variable (self, var_name)
 
 __all_local_variables (self, var_names)
 
 __is_synchronous_sensitivity_list (self, sense_list)
 
 __reset_local_variables (self)
 
 __add_local_variables (self, var_name)
 
 __gen_funcparam (self, tree)
 
 __generate_hthread_block (self, tree, is_sync)
 
 __is_generated_signal (self, name)
 
 __generate_vars_decl (self, ind, res, vars)
 
 __forstmt_gen_block (self, tree)
 

Private Attributes

list __current_scope_type = [None]
 

Detailed Description

Translate low-level format of the _hdl.txt into Verilog
Note that type defs are already expanded at this point, so all htypeinfo/htype should only include primitive types
This pass does not perform any tree transformation that alters the semantics, but **only** generates Verilog

Definition at line 25 of file verilog_tranlation.py.

Constructor & Destructor Documentation

◆ __init__()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.__init__ ( self,
itf_meta )

Reimplemented from parselib.transforms.top_down.TopDown.

Definition at line 30 of file verilog_tranlation.py.

Member Function Documentation

◆ __add_local_variables()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.__add_local_variables ( self,
var_name )
private

Definition at line 760 of file verilog_tranlation.py.

◆ __all_local_variables()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.__all_local_variables ( self,
var_names )
private

Definition at line 348 of file verilog_tranlation.py.

◆ __check_const()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.__check_const ( self,
tree )
private
check whether the tree valuates to constant

Definition at line 288 of file verilog_tranlation.py.

◆ __forstmt_gen_block()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.__forstmt_gen_block ( self,
tree )
private

Definition at line 1503 of file verilog_tranlation.py.

◆ __gen_funcparam()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.__gen_funcparam ( self,
tree )
private

Definition at line 786 of file verilog_tranlation.py.

◆ __generate_hthread_block()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.__generate_hthread_block ( self,
tree,
is_sync )
private

Definition at line 1227 of file verilog_tranlation.py.

◆ __generate_vars_decl()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.__generate_vars_decl ( self,
ind,
res,
vars )
private

Definition at line 1479 of file verilog_tranlation.py.

◆ __get_var_name()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.__get_var_name ( self,
tree )
private

Definition at line 120 of file verilog_tranlation.py.

◆ __get_var_names()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.__get_var_names ( self,
tree )
private
return a list of variable names

Definition at line 130 of file verilog_tranlation.py.

◆ __is_generated_signal()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.__is_generated_signal ( self,
name )
private

Definition at line 1476 of file verilog_tranlation.py.

◆ __is_local_variable()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.__is_local_variable ( self,
var_name )
private

Definition at line 345 of file verilog_tranlation.py.

◆ __is_synchronous_sensitivity_list()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.__is_synchronous_sensitivity_list ( self,
sense_list )
private

Definition at line 708 of file verilog_tranlation.py.

◆ __reset_local_variables()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.__reset_local_variables ( self)
private

Definition at line 757 of file verilog_tranlation.py.

◆ _clean_harrayref()

parselib.transforms.verilog_tranlation.VerilogTranslationPass._clean_harrayref ( self,
harrayref_node )
protected

Definition at line 298 of file verilog_tranlation.py.

◆ _get_interface_instance()

parselib.transforms.verilog_tranlation.VerilogTranslationPass._get_interface_instance ( self,
mod_name,
mod_type_name,
is_array )
protected

Definition at line 845 of file verilog_tranlation.py.

◆ _get_interface_instance_decl()

parselib.transforms.verilog_tranlation.VerilogTranslationPass._get_interface_instance_decl ( self,
mod_name,
mod_type_name,
ind,
is_array )
protected

Definition at line 835 of file verilog_tranlation.py.

◆ blkassign()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.blkassign ( self,
tree )

Definition at line 154 of file verilog_tranlation.py.

◆ breakstmt()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.breakstmt ( self,
tree )

Definition at line 451 of file verilog_tranlation.py.

◆ casestmt()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.casestmt ( self,
tree )

Definition at line 431 of file verilog_tranlation.py.

◆ casevalue()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.casevalue ( self,
tree )

Definition at line 421 of file verilog_tranlation.py.

◆ collect_type()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.collect_type ( self,
port_or_sig )

Definition at line 1175 of file verilog_tranlation.py.

◆ continuestmt()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.continuestmt ( self,
tree )

Definition at line 414 of file verilog_tranlation.py.

◆ dec_indent()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.dec_indent ( self)

Definition at line 568 of file verilog_tranlation.py.

◆ dostmt()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.dostmt ( self,
tree )

Definition at line 546 of file verilog_tranlation.py.

◆ expand_binding_ref()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.expand_binding_ref ( self,
tree )

Definition at line 829 of file verilog_tranlation.py.

◆ forbody()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.forbody ( self,
tree )

Definition at line 616 of file verilog_tranlation.py.

◆ forcond()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.forcond ( self,
tree )

Definition at line 608 of file verilog_tranlation.py.

◆ forinit()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.forinit ( self,
tree )

Definition at line 597 of file verilog_tranlation.py.

◆ forpostcond()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.forpostcond ( self,
tree )

Definition at line 612 of file verilog_tranlation.py.

◆ forstmt()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.forstmt ( self,
tree )

Definition at line 620 of file verilog_tranlation.py.

◆ func_param_name_stub()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.func_param_name_stub ( self,
tree )

Definition at line 1102 of file verilog_tranlation.py.

◆ funcparami()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.funcparami ( self,
tree )

Definition at line 797 of file verilog_tranlation.py.

◆ funcparamio()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.funcparamio ( self,
tree )

Definition at line 800 of file verilog_tranlation.py.

◆ genbindinglist()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.genbindinglist ( self,
tree )

Definition at line 1271 of file verilog_tranlation.py.

◆ genfor()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.genfor ( self,
tree )

Definition at line 1282 of file verilog_tranlation.py.

◆ genvardecl()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.genvardecl ( self,
tree )

Definition at line 1277 of file verilog_tranlation.py.

◆ get_current_ind_prefix()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.get_current_ind_prefix ( self)

Definition at line 417 of file verilog_tranlation.py.

◆ get_current_module_var_type()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.get_current_module_var_type ( self,
id )

Definition at line 1197 of file verilog_tranlation.py.

◆ get_current_module_var_type_or_default()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.get_current_module_var_type_or_default ( self,
id,
default = None )

Definition at line 1200 of file verilog_tranlation.py.

◆ get_current_proc_name()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.get_current_proc_name ( self)

Definition at line 705 of file verilog_tranlation.py.

◆ get_current_scope_type()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.get_current_scope_type ( self)
denotes one of four types of scope: loop, switch, branch, None
currently, this is only useful for determine the handling of breaks

Definition at line 49 of file verilog_tranlation.py.

◆ get_sense_list()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.get_sense_list ( self)

Definition at line 659 of file verilog_tranlation.py.

◆ harrayref()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.harrayref ( self,
tree )

Definition at line 305 of file verilog_tranlation.py.

◆ hbindingarrayref()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hbindingarrayref ( self,
tree )
this expansion should only be invoked by expanding_binding_ref and should not be invoked elsewhere
the reason is that we need to collect binding information per arry-like port

Definition at line 821 of file verilog_tranlation.py.

◆ hbinop()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hbinop ( self,
tree )

Definition at line 351 of file verilog_tranlation.py.

◆ hbuiltin()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hbuiltin ( self,
tree )

Definition at line 1458 of file verilog_tranlation.py.

◆ hconcat()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hconcat ( self,
tree )

Definition at line 1079 of file verilog_tranlation.py.

◆ hcondop()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hcondop ( self,
tree )

Definition at line 266 of file verilog_tranlation.py.

◆ hcstmt()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hcstmt ( self,
tree )

Definition at line 406 of file verilog_tranlation.py.

◆ hfunction()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hfunction ( self,
tree )

Definition at line 1143 of file verilog_tranlation.py.

◆ hfunctionlocalvars()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hfunctionlocalvars ( self,
tree )

Definition at line 1139 of file verilog_tranlation.py.

◆ hfunctionparams()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hfunctionparams ( self,
tree )

Definition at line 1110 of file verilog_tranlation.py.

◆ hfunctionrettype()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hfunctionrettype ( self,
tree )

Definition at line 1114 of file verilog_tranlation.py.

◆ hgenerateblock()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hgenerateblock ( self,
tree )

Definition at line 1530 of file verilog_tranlation.py.

◆ hgenvardecl()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hgenvardecl ( self,
tree )

Definition at line 1491 of file verilog_tranlation.py.

◆ hliteral()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hliteral ( self,
tree )
stops at literal, it is some kinds of terminal

Definition at line 270 of file verilog_tranlation.py.

◆ hlrotate()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hlrotate ( self,
tree )

Definition at line 1070 of file verilog_tranlation.py.

◆ hmethodcall()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hmethodcall ( self,
tree )

Definition at line 138 of file verilog_tranlation.py.

◆ hmodule()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hmodule ( self,
tree )

Definition at line 1286 of file verilog_tranlation.py.

◆ hnoop()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hnoop ( self,
tree )

Definition at line 530 of file verilog_tranlation.py.

◆ horreduce()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.horreduce ( self,
tree )

Definition at line 1074 of file verilog_tranlation.py.

◆ hpostfix()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hpostfix ( self,
tree )

Definition at line 378 of file verilog_tranlation.py.

◆ hprefix()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hprefix ( self,
tree )

Definition at line 382 of file verilog_tranlation.py.

◆ hprocess()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hprocess ( self,
tree )

Definition at line 711 of file verilog_tranlation.py.

◆ hreturnstmt()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hreturnstmt ( self,
tree )

Definition at line 771 of file verilog_tranlation.py.

◆ hscmax()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hscmax ( self,
tree )

Definition at line 1462 of file verilog_tranlation.py.

◆ hscmin()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hscmin ( self,
tree )

Definition at line 1469 of file verilog_tranlation.py.

◆ hsensedge()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hsensedge ( self,
tree )

Definition at line 655 of file verilog_tranlation.py.

◆ hsenslist()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hsenslist ( self,
tree )

Definition at line 662 of file verilog_tranlation.py.

◆ hsensvars()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hsensvars ( self,
tree )

Definition at line 648 of file verilog_tranlation.py.

◆ hsigassignl()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hsigassignl ( self,
tree )

Definition at line 341 of file verilog_tranlation.py.

◆ hthread()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hthread ( self,
tree )

Definition at line 1213 of file verilog_tranlation.py.

◆ hthreadswitch()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hthreadswitch ( self,
tree )

Definition at line 1265 of file verilog_tranlation.py.

◆ hthreadsync()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hthreadsync ( self,
tree )

Definition at line 1261 of file verilog_tranlation.py.

◆ htoint()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.htoint ( self,
tree )

Definition at line 1127 of file verilog_tranlation.py.

◆ htolong()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.htolong ( self,
tree )

Definition at line 1135 of file verilog_tranlation.py.

◆ htouint()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.htouint ( self,
tree )

Definition at line 1123 of file verilog_tranlation.py.

◆ htoulong()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.htoulong ( self,
tree )

Definition at line 1131 of file verilog_tranlation.py.

◆ htype()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.htype ( self,
tree )

Definition at line 764 of file verilog_tranlation.py.

◆ htypeinfo()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.htypeinfo ( self,
tree )

Definition at line 1097 of file verilog_tranlation.py.

◆ hunop()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hunop ( self,
tree )

Definition at line 386 of file verilog_tranlation.py.

◆ hvalchange()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hvalchange ( self,
tree )

Definition at line 694 of file verilog_tranlation.py.

◆ hvarinitlist()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hvarinitlist ( self,
tree )

Definition at line 150 of file verilog_tranlation.py.

◆ hvarref()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hvarref ( self,
tree )

Definition at line 276 of file verilog_tranlation.py.

◆ hwait()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.hwait ( self,
tree )

Definition at line 146 of file verilog_tranlation.py.

◆ ifstmt()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.ifstmt ( self,
tree )

Definition at line 578 of file verilog_tranlation.py.

◆ inc_indent()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.inc_indent ( self)

Definition at line 565 of file verilog_tranlation.py.

◆ insert_current_module_var_type()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.insert_current_module_var_type ( self,
id,
tpe )

Definition at line 1208 of file verilog_tranlation.py.

◆ interface()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.interface ( self,
tree )

Definition at line 66 of file verilog_tranlation.py.

◆ interfaces()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.interfaces ( self,
tree )

Definition at line 62 of file verilog_tranlation.py.

◆ modportsiglist()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.modportsiglist ( self,
tree )

Definition at line 1193 of file verilog_tranlation.py.

◆ modulearrayinst()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.modulearrayinst ( self,
tree )

Definition at line 851 of file verilog_tranlation.py.

◆ moduleinst()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.moduleinst ( self,
tree )

Definition at line 959 of file verilog_tranlation.py.

◆ modulelist()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.modulelist ( self,
tree )

Definition at line 110 of file verilog_tranlation.py.

◆ nonrefexp()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.nonrefexp ( self,
tree )

Definition at line 115 of file verilog_tranlation.py.

◆ npa()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.npa ( self,
tree )

Definition at line 652 of file verilog_tranlation.py.

◆ numlitwidth()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.numlitwidth ( self,
tree )

Definition at line 259 of file verilog_tranlation.py.

◆ pop_current_scope_type()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.pop_current_scope_type ( self)

Definition at line 59 of file verilog_tranlation.py.

◆ pop_indent()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.pop_indent ( self)

Definition at line 575 of file verilog_tranlation.py.

◆ portdecltype()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.portdecltype ( self,
tree )

Definition at line 1188 of file verilog_tranlation.py.

◆ prevardecl()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.prevardecl ( self,
tree )

Definition at line 1089 of file verilog_tranlation.py.

◆ push_current_scope_type()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.push_current_scope_type ( self,
scope )

Definition at line 55 of file verilog_tranlation.py.

◆ push_indent()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.push_indent ( self)
used to service temporary indent removal, such as that in for condition

Definition at line 571 of file verilog_tranlation.py.

◆ reset_current_module_var_type()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.reset_current_module_var_type ( self)

Definition at line 1205 of file verilog_tranlation.py.

◆ reset_current_proc_name()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.reset_current_proc_name ( self)

Definition at line 702 of file verilog_tranlation.py.

◆ set_current_proc_name()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.set_current_proc_name ( self,
name )

Definition at line 699 of file verilog_tranlation.py.

◆ sigdecltype()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.sigdecltype ( self,
tree )

Definition at line 1183 of file verilog_tranlation.py.

◆ start()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.start ( self,
tree )

Definition at line 105 of file verilog_tranlation.py.

◆ stmt()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.stmt ( self,
tree )

Definition at line 459 of file verilog_tranlation.py.

◆ stmts()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.stmts ( self,
tree )

Definition at line 560 of file verilog_tranlation.py.

◆ switchbody()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.switchbody ( self,
tree )

Definition at line 425 of file verilog_tranlation.py.

◆ switchcond()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.switchcond ( self,
tree )

Definition at line 439 of file verilog_tranlation.py.

◆ switchstmt()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.switchstmt ( self,
tree )

Definition at line 443 of file verilog_tranlation.py.

◆ syscread()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.syscread ( self,
tree )
syscread: hsigassignr, token

Definition at line 283 of file verilog_tranlation.py.

◆ syscwrite()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.syscwrite ( self,
tree )

Definition at line 252 of file verilog_tranlation.py.

◆ vardecl()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.vardecl ( self,
tree )

Definition at line 1085 of file verilog_tranlation.py.

◆ vardeclinit()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.vardeclinit ( self,
tree )

Definition at line 803 of file verilog_tranlation.py.

◆ whilestmt()

parselib.transforms.verilog_tranlation.VerilogTranslationPass.whilestmt ( self,
tree )

Definition at line 534 of file verilog_tranlation.py.

Member Data Documentation

◆ __current_scope_type

list parselib.transforms.verilog_tranlation.VerilogTranslationPass.__current_scope_type = [None]
private

Definition at line 41 of file verilog_tranlation.py.

◆ bindings [1/2]

list parselib.transforms.verilog_tranlation.VerilogTranslationPass.bindings = dict()

Definition at line 36 of file verilog_tranlation.py.

◆ bindings [2/2]

list parselib.transforms.verilog_tranlation.VerilogTranslationPass.bindings = []

Definition at line 879 of file verilog_tranlation.py.

◆ ctx

parselib.transforms.verilog_tranlation.VerilogTranslationPass.ctx = ContextManager()

Definition at line 47 of file verilog_tranlation.py.

◆ current_indent

parselib.transforms.verilog_tranlation.VerilogTranslationPass.current_indent = 0

Definition at line 33 of file verilog_tranlation.py.

◆ current_module

parselib.transforms.verilog_tranlation.VerilogTranslationPass.current_module

Definition at line 736 of file verilog_tranlation.py.

◆ current_proc_name

parselib.transforms.verilog_tranlation.VerilogTranslationPass.current_proc_name = None

Definition at line 40 of file verilog_tranlation.py.

◆ in_for_init

bool parselib.transforms.verilog_tranlation.VerilogTranslationPass.in_for_init = False

Definition at line 38 of file verilog_tranlation.py.

◆ indent_character

str parselib.transforms.verilog_tranlation.VerilogTranslationPass.indent_character = ' '

Definition at line 32 of file verilog_tranlation.py.

◆ indent_inc

int parselib.transforms.verilog_tranlation.VerilogTranslationPass.indent_inc = 2

Definition at line 34 of file verilog_tranlation.py.

◆ indent_stack

parselib.transforms.verilog_tranlation.VerilogTranslationPass.indent_stack = list()

Definition at line 35 of file verilog_tranlation.py.

◆ is_in_gen_block [1/2]

bool parselib.transforms.verilog_tranlation.VerilogTranslationPass.is_in_gen_block = False

Definition at line 45 of file verilog_tranlation.py.

◆ is_in_gen_block [2/2]

list parselib.transforms.verilog_tranlation.VerilogTranslationPass.is_in_gen_block = []

Definition at line 621 of file verilog_tranlation.py.

◆ is_in_thread

bool parselib.transforms.verilog_tranlation.VerilogTranslationPass.is_in_thread = False

Definition at line 42 of file verilog_tranlation.py.

◆ itf_meta

parselib.transforms.verilog_tranlation.VerilogTranslationPass.itf_meta = itf_meta

Definition at line 46 of file verilog_tranlation.py.

◆ local_variables

parselib.transforms.verilog_tranlation.VerilogTranslationPass.local_variables = set()

Definition at line 37 of file verilog_tranlation.py.

◆ module_var_type

parselib.transforms.verilog_tranlation.VerilogTranslationPass.module_var_type = None

Definition at line 39 of file verilog_tranlation.py.

◆ non_thread_comb_signals [1/2]

parselib.transforms.verilog_tranlation.VerilogTranslationPass.non_thread_comb_signals = set()

Definition at line 44 of file verilog_tranlation.py.

◆ non_thread_comb_signals [2/2]

str parselib.transforms.verilog_tranlation.VerilogTranslationPass.non_thread_comb_signals = ''

Definition at line 248 of file verilog_tranlation.py.

◆ senselist [1/2]

dict parselib.transforms.verilog_tranlation.VerilogTranslationPass.senselist

Definition at line 665 of file verilog_tranlation.py.

◆ senselist [2/2]

list parselib.transforms.verilog_tranlation.VerilogTranslationPass.senselist = []

Definition at line 1290 of file verilog_tranlation.py.

◆ thread_comb

bool parselib.transforms.verilog_tranlation.VerilogTranslationPass.thread_comb = False

Definition at line 43 of file verilog_tranlation.py.

◆ thread_name

parselib.transforms.verilog_tranlation.VerilogTranslationPass.thread_name = tree.children[0]

Definition at line 1221 of file verilog_tranlation.py.


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