Method: Integer#to_expr

Defined in:
lib/HDLRuby/hruby_high.rb

#to_exprObject

Converts to a new high-level expression.



4986
4987
4988
4989
4990
4991
4992
# File 'lib/HDLRuby/hruby_high.rb', line 4986

def to_expr
    if (self.bit_length <= 63) then
        return Value.new(Integer,self)
    else
        return Value.new(TypeSigned.new(:"",self.bit_length..0),self)
    end
end