class HDLRuby::High::RefName

Describes a high-level name reference.

Public Instance Methods

to_low() click to toggle source

Converts the name reference to HDLRuby::Low.

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

Converts to a new reference.

# File lib/HDLRuby/hruby_high.rb, line 3120
def to_ref
    return RefName.new(self.type,self.ref.to_ref,self.name)
end