Class: HDLRuby::High::Ref

Inherits:
Object
  • Object
show all
Defined in:
lib/HDLRuby/hruby_rsim.rb,
lib/HDLRuby/hruby_rcsim.rb

Overview

Extends the Ref class for hybrid Ruby-C simulation.

Instance Method Summary collapse

Instance Method Details

#assign(mode, value) ⇒ Object

Assigns +value+ to the reference. Must be overriden.



1014
1015
1016
# File 'lib/HDLRuby/hruby_rsim.rb', line 1014

def assign(mode,value)
    raise "assign must be implemented in class #{self.class}"
end

#assign_at(mode, value, index) ⇒ Object

Assigns +value+ at +index+ (integer or range).



1019
1020
1021
# File 'lib/HDLRuby/hruby_rsim.rb', line 1019

def assign_at(mode,value,index)
    raise "assign_at must be implemented in class #{self.class}"
end

#init_sim(systemT) ⇒ Object

Initialize the simulation for system +systemT+.



1008
1009
1010
# File 'lib/HDLRuby/hruby_rsim.rb', line 1008

def init_sim(systemT)
    raise "assign must be implemented in class #{self.class}"
end

#to_rcsimObject

Generate the C description of the reference.



926
927
928
# File 'lib/HDLRuby/hruby_rcsim.rb', line 926

def to_rcsim
    raise "to_rcsim must be implemented in #{self.class}"
end