Class: RubyHDL::High::Sterminate
- Inherits:
-
Object
- Object
- RubyHDL::High::Sterminate
- Defined in:
- lib/HDLRuby/std/sequencer_sw.rb
Overview
Describes a SW implementation of a terminate statement.
Instance Method Summary collapse
-
#initialize ⇒ Sterminate
constructor
Create a new break statement in sequencer +sequencer+.
-
#to_ruby ⇒ Object
Convert to ruby code.
Constructor Details
#initialize ⇒ Sterminate
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_ruby ⇒ Object
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 |