Class: RubyHDL::High::Sync
- Inherits:
-
Object
- Object
- RubyHDL::High::Sync
- Defined in:
- lib/HDLRuby/std/sequencer_sw.rb
Overview
Describes a SW synchronization of a signal.
Instance Method Summary collapse
-
#initialize ⇒ Sync
constructor
A new instance of Sync.
-
#to_c ⇒ Object
Convert to C code.
-
#to_ruby ⇒ Object
Convert to Ruby code.
Constructor Details
#initialize ⇒ Sync
Returns a new instance of Sync.
2306 2307 |
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2306 def initialize end |
Instance Method Details
#to_c ⇒ Object
Convert to C code.
2315 2316 2317 |
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2315 def to_c return "yield();" end |
#to_ruby ⇒ Object
Convert to Ruby code.
2310 2311 2312 |
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2310 def to_ruby return "Fiber.yield" end |