Class: Float

Inherits:
Object
  • Object
show all
Defined in:
lib/HDLRuby/hruby_high.rb,
lib/HDLRuby/hruby_high.rb

Overview

Extends the Float class for computing the bit width and conversion to expression.

Instance Method Summary collapse

Instance Method Details

#to_exprObject

Converts to a new high-level expression.



4773
4774
4775
# File 'lib/HDLRuby/hruby_high.rb', line 4773

def to_expr
    return Value.new(Float,self)
end

#widthObject

Gets the bit width



4787
4788
4789
# File 'lib/HDLRuby/hruby_high.rb', line 4787

def width
    return 64
end