class HDLRuby::High::Code
Decribes a set of non-HDLRuby code chunks.
Public Instance Methods
to_low()
click to toggle source
Converts the if to HDLRuby::Low
.
# File lib/HDLRuby/hruby_high.rb, line 2153 def to_low # Create the resulting code. codeL = HDLRuby::Low::Code.new # For debugging: set the source high object codeL.properties[:low2high] = self.hdr_id self.properties[:high2low] = codeL # Add the low-level events. self.each_event { |event| codeL.add_event(event.to_low) } # Add the low-level code chunks. self.each_chunk { |chunk| codeL.add_chunk(chunk.to_low) } # Return the resulting code. return codeL end