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 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_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
Constructor Details
This class inherits a constructor from HDLRuby::Low::Code
Instance Method Details
#to_low ⇒ Object
Converts the if to HDLRuby::Low.
1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 |
# File 'lib/HDLRuby/hruby_high.rb', line 1958 def to_low # Create the resulting code. res = HDLRuby::Low::Code.new # Add the low-level events. self.each_event { |event| res.add_event(event.to_low) } # Add the low-level code chunks. self.each_chunk { |chunk| res.add_chunk(chunk.to_low) } # Return the resulting code. return res end |