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.
939 940 941 |
# File 'lib/HDLRuby/hruby_rsim.rb', line 939 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).
944 945 946 |
# File 'lib/HDLRuby/hruby_rsim.rb', line 944 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+.
933 934 935 |
# File 'lib/HDLRuby/hruby_rsim.rb', line 933 def init_sim(systemT) raise "assign must be implemented in class #{self.class}" end |
#to_rcsim ⇒ Object
Generate the C description of the reference.
883 884 885 |
# File 'lib/HDLRuby/hruby_rcsim.rb', line 883 def to_rcsim raise "to_rcsim must be implemented in #{self.class}" end |