Class: HDLRuby::High::TypeTuple
- Inherits:
-
Low::TypeTuple
- Object
- Base::Type
- Low::Type
- Low::TypeTuple
- HDLRuby::High::TypeTuple
- Includes:
- Htype
- Defined in:
- lib/HDLRuby/hruby_high.rb
Overview
Describes a tuple type. class TypeTuple < Tuple
Constant Summary collapse
Constants included from Low::Low2Symbol
Low::Low2Symbol::Low2SymbolPrefix, Low::Low2Symbol::Low2SymbolTable, Low::Low2Symbol::Symbol2LowTable
Instance Attribute Summary
Attributes inherited from Low::Type
Attributes included from Low::Hparent
Instance Method Summary collapse
-
#to_low(name = self.name) ⇒ Object
Converts the type to HDLRuby::Low and set its +name+.
Methods included from Htype
#[], #binary, #comp_operator, #constant, #define_operator, #each_overload, #htype?, included, #inner, #inout, #input, #left, #name=, #output, #register, #right, #to_type, #typedef, #unary
Methods included from Tprocess
#&, #*, #+, #+@, #-@, #/, #<<, #==, #abs, #lr, #make, #resolve, #slice, #~
Methods inherited from Low::TypeTuple
#add_type, #base, #base?, #break_types!, #delete_type!, #direction, #each, #each_type, #each_type_deep, #eql?, #equivalent?, #get_all_types, #get_type, #hash, #initialize, #map_types!, #range, #regular?, #to_c, #to_hdr, #to_high, #to_vhdl, #types?, #width
Methods included from Low::Ltype
Methods inherited from Low::Type
#base, #base?, #boolean?, #break_types!, #direction, #each_type_deep, #eql?, #equivalent?, #fixed?, #float?, #hash, #hierarchical?, #initialize, #leaf?, #max, #min, #range, #range?, #regular?, #set_name!, #signed?, #struct?, #to_c, #to_hdr, #to_high, #to_vector, #to_verilog, #to_vhdl, #types?, #unsigned?, #vector?, #width
Methods included from Low::Low2Symbol
Methods included from Low::Hparent
Constructor Details
This class inherits a constructor from HDLRuby::Low::TypeTuple
Instance Method Details
#to_low(name = self.name) ⇒ Object
Converts the type to HDLRuby::Low and set its +name+.
1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 |
# File 'lib/HDLRuby/hruby_high.rb', line 1872 def to_low(name = self.name) # return HDLRuby::Low::TypeTuple.new(name,self.direction, # *@types.map { |type| type.to_low } ) typeTupleL = HDLRuby::Low::TypeTuple.new(name,self.direction, *@types.map { |type| type.to_low } ) # # For debugging: set the source high object # typeTupleL.properties[:low2high] = self.hdr_id # self.properties[:high2low] = typeTupleL return typeTupleL end |