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
#absolute_ref, #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.
2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 |
# File 'lib/HDLRuby/hruby_high.rb', line 2489 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 |