Module: HDLRuby::High::HvectorType
- Included in:
- TypeVector
- Defined in:
- lib/HDLRuby/hruby_high.rb
Overview
Methods for vector types.
Instance Method Summary collapse
-
#to_low(name = self.name) ⇒ Object
Converts the type to HDLRuby::Low and set its +name+.
Instance Method Details
#to_low(name = self.name) ⇒ Object
Converts the type to HDLRuby::Low and set its +name+.
2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 |
# File 'lib/HDLRuby/hruby_high.rb', line 2006 def to_low(name = self.name) # Generate and return the new type. # return HDLRuby::Low::TypeVector.new(name,self.base.to_low, # self.range.to_low) typeVectorL = HDLRuby::Low::TypeVector.new(name,self.base.to_low, self.range.to_low) # # For debugging: set the source high object # typeVectorL.properties[:low2high] = self.hdr_id # self.properties[:high2low] = typeVectorL return typeVectorL end |