Class: HDLRuby::High::RefName

Inherits:
Low::RefName show all
Includes:
HRef
Defined in:
lib/HDLRuby/hruby_high.rb,
lib/HDLRuby/hruby_rsim.rb,
lib/HDLRuby/hruby_rcsim.rb

Overview

Extends the RefName class for hybrid Ruby-C simulation.

Constant Summary

Constants included from Low::Low2Symbol

Low::Low2Symbol::Low2SymbolPrefix, Low::Low2Symbol::Low2SymbolTable, Low::Low2Symbol::Symbol2LowTable

Instance Attribute Summary

Attributes inherited from Low::RefName

#name, #ref

Attributes inherited from Low::Expression

#type

Attributes included from Low::Hparent

#parent

Instance Method Summary collapse

Methods included from HRef

#each, included, #to_event

Methods inherited from Low::RefName

#ancestor, #boolean_in_assign2select, #casts_without_expression!, #clone, #each_deep, #each_node, #each_node_deep, #eql?, #explicit_types, #from_systemI?, #full_name, #get_systemI, #hash, #initialize, #map_nodes!, #path_each, #replace_expressions!, #resolve, #set_name!, #set_ref!, #to_another_verilog, #to_c, #to_c_signal, #to_hdr, #to_high, #to_verilog, #to_vhdl, #use_name?

Methods inherited from Low::Ref

#each_node, #each_node_deep, #eql?, #explicit_types, #hash, #map_nodes!, #path_each, #resolve, #to_c, #to_hdr, #to_vhdl

Methods inherited from Low::Expression

#boolean?, #break_types!, #clone, #each_node, #each_node_deep, #each_ref_deep, #eql?, #explicit_types, #extract_selects_to!, #hash, #immutable?, #initialize, #leftvalue?, #map_nodes!, #replace_expressions!, #replace_names!, #rightvalue?, #set_type!, #statement, #to_c, #to_c_expr, #to_hdr, #to_high, #to_vhdl, #use_name?

Methods included from Low::Low2Symbol

#to_sym

Methods included from Low::Hparent

#hierarchy, #no_parent!, #scope

Constructor Details

This class inherits a constructor from HDLRuby::Low::RefName

Instance Method Details

#to_lowObject

Converts the name reference to HDLRuby::Low.



3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
# File 'lib/HDLRuby/hruby_high.rb', line 3482

def to_low
    # return HDLRuby::Low::RefName.new(self.type.to_low,
    #                                  self.ref.to_low,self.name)
    refNameL = HDLRuby::Low::RefName.new(self.type.to_low,
                                     self.ref.to_low,self.name)
    # # For debugging: set the source high object 
    # refNameL.properties[:low2high] = self.hdr_id
    # self.properties[:high2low] = refNameL
    return refNameL
end

#to_refObject

Converts to a new reference.



3477
3478
3479
# File 'lib/HDLRuby/hruby_high.rb', line 3477

def to_ref
    return RefName.new(self.type,self.ref.to_ref,self.name)
end