Class: HDLRuby::High::Code
- Defined in:
- lib/HDLRuby/hruby_high.rb
Overview
Decribes a set of non-HDLRuby code chunks.
Constant Summary
Constants included from Low::Low2Symbol
Low::Low2Symbol::Low2SymbolPrefix, Low::Low2Symbol::Low2SymbolTable, Low::Low2Symbol::Symbol2LowTable
Instance Attribute Summary
Attributes included from HDLRuby::Hdecorator
Attributes included from Low::Hparent
Instance Method Summary collapse
-
#to_low ⇒ Object
Converts the if to HDLRuby::Low.
Methods inherited from Low::Code
#add_chunk, #add_event, #c_code_allocate, #each_chunk, #each_deep, #each_event, #eql?, #has_event?, #hash, #initialize, #on_edge?, #set_content!, #set_type!, #to_c, #to_ch, #to_file, #to_high, #to_vhdl
Methods included from Low::Low2Symbol
Methods included from HDLRuby::Hdecorator
decorate_parent_id, dump, each, each_with_property, get, included, load, #properties
Methods included from Low::Hparent
Constructor Details
This class inherits a constructor from HDLRuby::Low::Code
Instance Method Details
#to_low ⇒ Object
Converts the if to HDLRuby::Low.
2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 |
# File 'lib/HDLRuby/hruby_high.rb', line 2116 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 # 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 |