Class: RubyHDL::High::Sterminate

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

Overview

Describes a SW implementation of a terminate statement.

Instance Method Summary collapse

Constructor Details

#initializeSterminate

Create a new break statement in sequencer +sequencer+.



2089
2090
2091
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2089

def initialize
  @sequencer = sequencer
end

Instance Method Details

#to_rubyObject

Convert to ruby code.



2094
2095
2096
2097
2098
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2094

def to_ruby
  # Implemented as returning from a function since a sequencer
  # is implemented as one.
  return @sequencer.clk_up + "\nreturn"
end