Class: RubyHDL::High::TypeDef
- Defined in:
- lib/HDLRuby/std/sequencer_sw.rb
Overview
Describes a high-level type definition.
NOTE: type definition are actually type with a name refering to another type (and equivalent to it).
Instance Method Summary collapse
-
#initialize(name, type) ⇒ TypeDef
constructor
Creates a new type definition named +name+ refering +type+.
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, type) ⇒ TypeDef
Creates a new type definition named +name+ refering +type+.
943 944 945 946 947 948 |
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 943 def initialize(name,type) # Initialize the type structure. super(name) # Set the referenced type. @type = type.to_type end |