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_expr ⇒ Object

Converts to a new high-level expression.



5402
5403
5404
5405
# File 'lib/HDLRuby/hruby_high.rb', line 5402

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

#width ⇒ Object

Gets the bit width



5408
5409
5410
# File 'lib/HDLRuby/hruby_high.rb', line 5408

def width
    return 64
end