Class: Float

Inherits:
Object
  • Object
show all
Defined in:
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.



5300
5301
5302
5303
# File 'lib/HDLRuby/hruby_high.rb', line 5300

def to_expr
  raise "Float not supported yet."
    return Value.new(Real,self)
end

#widthObject

Gets the bit width



5306
5307
5308
# File 'lib/HDLRuby/hruby_high.rb', line 5306

def width
    return 64
end