Class: Float
- Inherits:
-
Object
- Object
- Float
- 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
-
#to_expr ⇒ Object
Converts to a new high-level expression.
-
#width ⇒ Object
Gets the bit width.
Instance Method Details
#to_expr ⇒ Object
Converts to a new high-level expression.
5249 5250 5251 |
# File 'lib/HDLRuby/hruby_high.rb', line 5249 def to_expr return Value.new(Real,self) end |
#width ⇒ Object
Gets the bit width
5254 5255 5256 |
# File 'lib/HDLRuby/hruby_high.rb', line 5254 def width return 64 end |