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



2413
2414
2415
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2413

def initialize(sequencer)
  @sequencer = sequencer
end

Instance Method Details

#to_cObject

Convert to C code.



2423
2424
2425
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2423

def to_c
  return @sequencer.clk_up_c
end

#to_rubyObject

Convert to Ruby code.



2418
2419
2420
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2418

def to_ruby
  return @sequencer.clk_up
end