Class: RubyHDL::High::TypeUnsigned

Inherits:
TypeVector show all
Defined in:
lib/HDLRuby/std/sequencer_sw.rb

Overview

Describes an unsigned integer data type.

Instance Attribute Summary

Attributes inherited from TypeVector

#base, #range

Instance Method Summary collapse

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) ⇒ TypeUnsigned

Creates a new vector type named +name+ from +base+ type and with +range+.

NOTE:

  • The default range is 32-bit.


1173
1174
1175
1176
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 1173

def initialize(name,range = 31..0)
  # Initialize the type.
  super(name,Unsigned,range)
end