Class: HDLRuby::High::TypeStruct
- Inherits:
-
Low::TypeStruct
- Object
- Base::Type
- Low::Type
- Low::TypeStruct
- HDLRuby::High::TypeStruct
- Includes:
- Htype
- Defined in:
- lib/HDLRuby/hruby_high.rb
Overview
Describes a structure type.
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::TypeStruct
#break_types!, #delete_type!, #each, #each_name, #each_type, #each_type_deep, #eql?, #equivalent?, #get_all_types, #get_type, #hash, #initialize, #map_types!, #struct?, #to_c, #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, #initialize, #leaf?, #range, #range?, #regular?, #set_name!, #signed?, #struct?, #to_c, #to_high, #to_vector, #to_verilog, #to_vhdl, #types?, #unsigned?, #width
Methods included from Low::Low2Symbol
Methods included from Low::Hparent
Constructor Details
This class inherits a constructor from HDLRuby::Low::TypeStruct
Instance Method Details
#to_low(name = self.name) ⇒ Object
Converts the type to HDLRuby::Low and set its +name+.
1780 1781 1782 1783 |
# File 'lib/HDLRuby/hruby_high.rb', line 1780 def to_low(name = self.name) return HDLRuby::Low::TypeStruct.new(name,self.direction, @types.map { |name,type| [name,type.to_low] } ) end |