class String

Extends the String class for computing conversion to expression.

Public Instance Methods

to_expr() click to toggle source

Convert to a new high-level string expression

# File lib/HDLRuby/hruby_high.rb, line 4305
def to_expr
    return StringE.new(self)
end
to_value() click to toggle source

Converts to a new high-level value.

# File lib/HDLRuby/hruby_high.rb, line 4297
def to_value
    # Convert the string to a bit string.
    bstr = BitString.new(self)
    # Use it to create the new value.
    return Value.new(Bit[bstr.width],self)
end