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.



1064
1065
1066
# File 'lib/HDLRuby/hruby_rsim.rb', line 1064

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).



1069
1070
1071
# File 'lib/HDLRuby/hruby_rsim.rb', line 1069

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+.



1058
1059
1060
# File 'lib/HDLRuby/hruby_rsim.rb', line 1058

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

#to_rcsimObject

Generate the C description of the reference.



936
937
938
# File 'lib/HDLRuby/hruby_rcsim.rb', line 936

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