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+.



3232
3233
3234
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 3232

def initialize
  @sequencer = sequencer
end

Instance Method Details

#to_cObject

Convert to Ruby code.



3242
3243
3244
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 3242

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

#to_python(l = "") ⇒ Object

Convert to Python code.



3247
3248
3249
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 3247

def to_python(l = "")
  return @sequencer.clk_up_python(l) + "\n#{l}continue"
end

#to_rubyObject

Convert to Ruby code.



3237
3238
3239
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 3237

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

#to_tf(l = "") ⇒ Object

Convert to TensorFlow code.



3252
3253
3254
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 3252

def to_tf(l = "")
  raise "continue not supported in TensorFlow yet."
end