Class: RubyHDL::High::TypeSigned
- Inherits:
-
TypeVector
- Object
- Type
- TypeVector
- RubyHDL::High::TypeSigned
- Defined in:
- lib/HDLRuby/std/sequencer_sw.rb
Overview
Describes a signed integer data type.
Instance Attribute Summary
Attributes inherited from TypeVector
Instance Method Summary collapse
-
#initialize(name, range = 31..0) ⇒ TypeSigned
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 = 31..0) ⇒ TypeSigned
Creates a new vector type named +name+ from +base+ type and with +range+.
NOTE:
- The default range is 32-bit.
1158 1159 1160 1161 |
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 1158 def initialize(name,range = 31..0) # Initialize the type. super(name,Signed,range) end |