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



2635
2636
2637
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2635

def initialize(sequencer)
  @sequencer = sequencer
end

Instance Method Details

#to_cObject

Convert to C code.



2645
2646
2647
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2645

def to_c
  return @sequencer.clk_up_c
end

#to_python(l = "") ⇒ Object

Convert to Python code.



2650
2651
2652
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2650

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

#to_rubyObject

Convert to Ruby code.



2640
2641
2642
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2640

def to_ruby
  return @sequencer.clk_up
end