Class: RubyHDL::High::Sync

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

Overview

Describes a SW synchronization of a signal.

Instance Method Summary collapse

Constructor Details

#initializeSync

Returns a new instance of Sync.



2359
2360
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2359

def initialize
end

Instance Method Details

#to_cObject

Convert to C code.



2368
2369
2370
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2368

def to_c
  return "yield();"
end

#to_rubyObject

Convert to Ruby code.



2363
2364
2365
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2363

def to_ruby
  return "Fiber.yield"
end