Class: HDLRuby::Low::TypeFloat
- Inherits:
-
TypeVector
- Object
- Base::Type
- Type
- TypeVector
- HDLRuby::Low::TypeFloat
- Includes:
- Ltype
- Defined in:
- lib/HDLRuby/hruby_db.rb,
lib/HDLRuby/hruby_low.rb
Overview
Describes a float data type.
Constant Summary
Constants included from Low2Symbol
Low2Symbol::Low2SymbolPrefix, Low2Symbol::Low2SymbolTable, Low2Symbol::Symbol2LowTable
Instance Attribute Summary
Attributes inherited from TypeVector
Attributes inherited from Type
Attributes included from Hparent
Instance Method Summary collapse
-
#initialize(name, range = 52..-11)) ⇒ TypeFloat
constructor
Creates a new vector type named +name+ from +base+ type and with +range+.
Methods included from Ltype
Methods inherited from TypeVector
#base?, #break_types!, #dir, #direction, #each_type_deep, #eql?, #equivalent?, #fixed?, #float?, #hash, #set_base!, #set_range!, #signed?, #size, #to_c, #to_high, #to_verilog, #to_vhdl, #unsigned?, #width
Methods inherited from Type
#base, #base?, #boolean?, #break_types!, #direction, #each_type_deep, #eql?, #equivalent?, #fixed?, #float?, #hash, #leaf?, #range, #range?, #regular?, #set_name!, #signed?, #struct?, #to_c, #to_high, #to_vector, #to_verilog, #to_vhdl, #types?, #unsigned?, #width
Methods included from Low2Symbol
Constructor Details
#initialize(name, range = 52..-11)) ⇒ TypeFloat
Creates a new vector type named +name+ from +base+ type and with +range+.
NOTE:
- The bits of negative range stands for the exponent
- The default range is for 64-bit IEEE 754 double precision standart
1601 1602 1603 1604 |
# File 'lib/HDLRuby/hruby_low.rb', line 1601 def initialize(name,range = 52..-11) # Initialize the type. super(name,Float,range) end |