Class: HDLRuby::High::Ref
- Inherits:
-
Object
- Object
- HDLRuby::High::Ref
- 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
-
#assign(mode, value) ⇒ Object
Assigns +value+ to the reference.
-
#assign_at(mode, value, index) ⇒ Object
Assigns +value+ at +index+ (integer or range).
-
#init_sim(systemT) ⇒ Object
Initialize the simulation for system +systemT+.
-
#to_rcsim ⇒ Object
Generate the C description of the reference.
Instance Method Details
#assign(mode, value) ⇒ Object
Assigns +value+ to the reference. Must be overriden.
1152 1153 1154 |
# File 'lib/HDLRuby/hruby_rsim.rb', line 1152 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).
1157 1158 1159 |
# File 'lib/HDLRuby/hruby_rsim.rb', line 1157 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+.
1146 1147 1148 |
# File 'lib/HDLRuby/hruby_rsim.rb', line 1146 def init_sim(systemT) raise "assign must be implemented in class #{self.class}" end |
#to_rcsim ⇒ Object
Generate the C description of the reference.
929 930 931 |
# File 'lib/HDLRuby/hruby_rcsim.rb', line 929 def to_rcsim raise "to_rcsim must be implemented in #{self.class}" end |