Class: RubyHDL::High::Scontinue

Inherits:
Statement show all
Defined in:
lib/HDLRuby/std/sequencer_sw.rb

Overview

Describes a SW implementation of a continue statement.

Instance Method Summary collapse

Methods inherited from Statement

#each_statement, #each_statement_deep

Constructor Details

#initializeScontinue

Create a new break statement in sequencer +sequencer+.



2449
2450
2451
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2449

def initialize
  @sequencer = sequencer
end

Instance Method Details

#to_cObject

Convert to Ruby code.



2459
2460
2461
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2459

def to_c
  return @sequencer.clk_up_c + "\ncontinue;"
end

#to_rubyObject

Convert to Ruby code.



2454
2455
2456
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2454

def to_ruby
  return @sequencer.clk_up + "\ncontinue"
end