Class: HDLRuby::High::RefThis

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

Overview

Describe a this reference.

This is the current system.

Constant Summary collapse

High =
HDLRuby::High

Constants included from Low::Low2Symbol

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

Instance Attribute Summary

Attributes inherited from Low::Expression

#type

Attributes included from Low::Hparent

#parent

Instance Method Summary collapse

Methods included from HRef

included, #objects, #to_event

Methods inherited from Low::RefThis

#boolean_in_assign2select, #casts_without_expression!, #each_deep, #eql?, #explicit_types, #hash, #map_nodes!, #to_another_verilog, #to_c, #to_c_signal, #to_hdr, #to_high, #to_viz_names, #to_viz_node

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!, #each_node, #each_node_deep, #each_ref_deep, #eql?, #explicit_types, #extract_selects_to!, #fix_scope_refnames!, #hash, #immutable?, #initialize, #leftvalue?, #map_nodes!, #replace_expressions!, #replace_names!, #rightvalue?, #set_type!, #signal2subs!, #statement, #to_c, #to_c_expr, #to_hdr, #to_high, #to_vhdl, #to_viz_names, #use_name?

Methods included from Low::Low2Symbol

#to_sym

Methods included from Low::Hparent

#absolute_ref, #hierarchy, #no_parent!, #scope

Constructor Details

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

Instance Method Details

#behaviorObject

Gets the enclosing behavior if any.



3929
3930
3931
# File 'lib/HDLRuby/hruby_high.rb', line 3929

def behavior
    return High.cur_behavior
end

#cloneObject

Clones.



3914
3915
3916
# File 'lib/HDLRuby/hruby_high.rb', line 3914

def clone
    return RefThis.new
end

#systemObject

Gets the enclosing system type.



3924
3925
3926
# File 'lib/HDLRuby/hruby_high.rb', line 3924

def system
    return High.cur_system
end

#to_lowObject

Converts the this reference to HDLRuby::Low.



3939
3940
3941
3942
3943
3944
3945
3946
# File 'lib/HDLRuby/hruby_high.rb', line 3939

def to_low
    # return HDLRuby::Low::RefThis.new
    refThisL = HDLRuby::Low::RefThis.new
    # # For debugging: set the source high object 
    # refThisL.properties[:low2high] = self.hdr_id
    # self.properties[:high2low] = refThisL
    return refThisL
end

#to_rcsimObject

Generate the C description of the reference range.



1132
1133
1134
# File 'lib/HDLRuby/hruby_rcsim.rb', line 1132

def to_rcsim
    return nil
end

#to_refObject

Converts to a new reference.



3919
3920
3921
# File 'lib/HDLRuby/hruby_high.rb', line 3919

def to_ref
    return RefThis.new
end