Class: HDLRuby::High::Ref
- Inherits:
-
Object
- Object
- HDLRuby::High::Ref
- Defined in:
- lib/HDLRuby/hruby_rsim.rb,
lib/HDLRuby/hruby_rcsim.rb
Overview
Describes a reference expression.
NOTE: this is an abstract class which is not to be used directly.
Instance Method Summary collapse
-
#assign(mode, value) ⇒ Object
Assigns
valueto the reference. -
#assign_at(mode, value, index) ⇒ Object
Assigns
valueatindex(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.
1201 1202 1203 |
# File 'lib/HDLRuby/hruby_rsim.rb', line 1201 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).
1206 1207 1208 |
# File 'lib/HDLRuby/hruby_rsim.rb', line 1206 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.
1195 1196 1197 |
# File 'lib/HDLRuby/hruby_rsim.rb', line 1195 def init_sim(systemT) raise "assign must be implemented in class #{self.class}" end |
#to_rcsim ⇒ Object
Generate the C description of the reference.
1032 1033 1034 |
# File 'lib/HDLRuby/hruby_rcsim.rb', line 1032 def to_rcsim raise "to_rcsim must be implemented in #{self.class}" end |