Class: RubyHDL::High::Scontinue
- Defined in:
- lib/HDLRuby/std/sequencer_sw.rb
Overview
Describes a SW implementation of a continue statement.
Instance Method Summary collapse
-
#initialize ⇒ Scontinue
constructor
Create a new break statement in sequencer +sequencer+.
-
#to_c ⇒ Object
Convert to Ruby code.
-
#to_python(l = "") ⇒ Object
Convert to Python code.
-
#to_ruby ⇒ Object
Convert to Ruby code.
Methods inherited from Statement
#each_statement, #each_statement_deep
Constructor Details
Instance Method Details
#to_c ⇒ Object
Convert to Ruby code.
2691 2692 2693 |
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2691 def to_c return @sequencer.clk_up_c + "\ncontinue;" end |
#to_python(l = "") ⇒ Object
Convert to Python code.
2696 2697 2698 |
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2696 def to_python(l = "") return @sequencer.clk_up_python(l) + "\n#{l}continue" end |
#to_ruby ⇒ Object
Convert to Ruby code.
2686 2687 2688 |
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2686 def to_ruby return @sequencer.clk_up + "\ncontinue" end |