Class: RubyHDL::High::TypeFloat
- Inherits:
-
TypeVector
- Object
- Type
- TypeVector
- RubyHDL::High::TypeFloat
- Defined in:
- lib/HDLRuby/std/sequencer_sw.rb
Overview
Describes a float data type.
Instance Attribute Summary
Attributes inherited from TypeVector
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 inherited from TypeVector
#base?, #dir, #direction, #each_type_deep, #eql?, #equivalent?, #fixed?, #float?, #hash, #max, #min, #signed?, #size, #unsigned?, #vector?, #width
Methods inherited from Type
#[], #base, #base?, #binary, #comp_operator, #constant, #define_operator, #define_operator_with_context, #direction, #each_overload, #each_type_deep, #eql?, #equivalent?, #fixed?, #float?, #hash, #hierarchical?, #htype?, #inner, #leaf?, #left, #max, #min, #name=, #range, #range?, #register, #regular?, #right, #signed?, #struct?, #to_type, #to_vector, #typedef, #types?, #unary, #unsigned?, #vector?, #width
Methods included from HDLRuby::Tprocess
#&, #*, #+, #+@, #-@, #/, #<<, #==, #abs, #lr, #make, #resolve, #slice, #~
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
1189 1190 1191 1192 |
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 1189 def initialize(name,range = 52..-11) # Initialize the type. super(name,Float,range) end |