class HDLRuby::High::TypeTuple

Describes a tuple type. class TypeTuple < Tuple

Constants

High

High-level libraries for describing digital hardware.

Public Instance Methods

to_low(name = self.name) click to toggle source

Converts the type to HDLRuby::Low and set its name.

# File lib/HDLRuby/hruby_high.rb, line 1848
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