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_c ⇒ Object
Convert to C code.
-
#to_ruby ⇒ Object
Convert to Ruby code.
Constructor Details
#initialize ⇒ Sterminate
Create a new break statement in sequencer +sequencer+.
2287 2288 2289 |
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2287 def initialize @sequencer = sequencer end |
Instance Method Details
#to_c ⇒ Object
Convert to C code.
2299 2300 2301 |
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2299 def to_c return @sequencer.clk_up_c + "\nreturn;" end |
#to_ruby ⇒ Object
Convert to Ruby code.
2292 2293 2294 2295 2296 |
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2292 def to_ruby # Implemented as returning from a function since a sequencer # is implemented as one. return @sequencer.clk_up + "\nreturn" end |