Class: HDLRuby::High::Chunk
- Inherits:
-
Low::Chunk
- Object
- Low::Chunk
- HDLRuby::High::Chunk
- Defined in:
- lib/HDLRuby/hruby_high.rb,
lib/HDLRuby/hruby_rsim.rb,
lib/HDLRuby/hruby_rcsim.rb
Overview
Describes a non-HDLRuby code chunk.
Instance Method Summary collapse
-
#to_low ⇒ Object
Converts the if to HDLRuby::Low.
Instance Method Details
#to_low ⇒ Object
Converts the if to HDLRuby::Low.
2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 |
# File 'lib/HDLRuby/hruby_high.rb', line 2732 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 |