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.
2359 2360 |
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2359 def initialize end |
Instance Method Details
#to_c ⇒ Object
Convert to C code.
2368 2369 2370 |
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2368 def to_c return "yield();" end |
#to_ruby ⇒ Object
Convert to Ruby code.
2363 2364 2365 |
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2363 def to_ruby return "Fiber.yield" end |