class HDLRuby::High::Chunk
Describes a non-HDLRuby code chunk.
Public Instance Methods
to_low()
click to toggle source
Converts the if to HDLRuby::Low
.
# File lib/HDLRuby/hruby_high.rb, line 2131 def to_low # return HDLRuby::Low::Chunk.new(self.name, # *self.each_lump.map do |lump| # lump = lump.respond_to?(:to_low) ? lump.to_low : lump.to_s # lump # end) chunkL = HDLRuby::Low::Chunk.new(self.name, *self.each_lump.map do |lump| lump = lump.respond_to?(:to_low) ? lump.to_low : lump.to_s lump end) # For debugging: set the source high object chunkL.properties[:low2high] = self.hdr_id self.properties[:high2low] = chunkL return chunkL end