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.



2306
2307
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2306

def initialize
end

Instance Method Details

#to_cObject

Convert to C code.



2315
2316
2317
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2315

def to_c
  return "yield();"
end

#to_rubyObject

Convert to Ruby code.



2310
2311
2312
# File 'lib/HDLRuby/std/sequencer_sw.rb', line 2310

def to_ruby
  return "Fiber.yield"
end