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 Attribute Summary
Attributes inherited from Low::Chunk
Attributes included from Low::Hparent
Instance Method Summary collapse
-
#to_low ⇒ Object
Converts the if to HDLRuby::Low.
Methods inherited from Low::Chunk
#add_lump, #c_code_allocate!, #each_deep, #each_lump, #initialize, #to_c, #to_high
Methods included from Low::Hparent
#hierarchy, #no_parent!, #scope
Constructor Details
This class inherits a constructor from HDLRuby::Low::Chunk
Instance Method Details
#to_low ⇒ Object
Converts the if to HDLRuby::Low.
2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 |
# File 'lib/HDLRuby/hruby_high.rb', line 2458 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 |