class HDLRuby::High::RefThis

Describes a this reference.

Constants

High

High-level libraries for describing digital hardware.

Public Instance Methods

behavior() click to toggle source

Gets the enclosing behavior if any.

# File lib/HDLRuby/hruby_high.rb, line 3154
def behavior
    return High.cur_behavior
end
system() click to toggle source

Gets the enclosing system type.

# File lib/HDLRuby/hruby_high.rb, line 3149
def system
    return High.cur_system
end
to_low() click to toggle source

Converts the this reference to HDLRuby::Low.

# File lib/HDLRuby/hruby_high.rb, line 3164
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_ref() click to toggle source

Converts to a new reference.

# File lib/HDLRuby/hruby_high.rb, line 3144
def to_ref
    return RefThis.new
end