Class: RubyHDL::High::Scontinue
- Inherits:
-
Object
- Object
- 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_ruby ⇒ Object
Convert to Ruby code.
Constructor Details
#initialize ⇒ Scontinue
Create a new break statement in sequencer +sequencer+.
2322 2323 2324 |
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2322 def initialize @sequencer = sequencer end |
Instance Method Details
#to_c ⇒ Object
Convert to Ruby code.
2332 2333 2334 |
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2332 def to_c return @sequencer.clk_up_c + "\ncontinue;" end |
#to_ruby ⇒ Object
Convert to Ruby code.
2327 2328 2329 |
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2327 def to_ruby return @sequencer.clk_up + "\ncontinue" end |