Class: RubyHDL::High::Step

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

Overview

Describes a SW implementation of a step statement.

Instance Method Summary collapse

Methods inherited from Statement

#each_statement, #each_statement_deep

Constructor Details

#initialize(sequencer) ⇒ Step

Create a new step statement in sequencer +sequencer+.



3176
3177
3178
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 3176

def initialize(sequencer)
  @sequencer = sequencer
end

Instance Method Details

#to_cObject

Convert to C code.



3186
3187
3188
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 3186

def to_c
  return @sequencer.clk_up_c
end

#to_python(l = "") ⇒ Object

Convert to Python code.



3191
3192
3193
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 3191

def to_python(l = "")
  return @sequencer.clk_up_python(l)
end

#to_rubyObject

Convert to Ruby code.



3181
3182
3183
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 3181

def to_ruby
  return @sequencer.clk_up
end

#to_tf(l = "") ⇒ Object

Convert to TensorFlow code.



3196
3197
3198
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 3196

def to_tf(l = "")
  return ""
end