Class: HDLRuby::High::Statement
- Inherits:
-
Object
- Object
- HDLRuby::High::Statement
- Defined in:
- lib/HDLRuby/hruby_rsim.rb,
lib/HDLRuby/hruby_rcsim.rb
Overview
Extends the Statement class for hybrid Ruby-C simulation.
Instance Attribute Summary collapse
-
#rcstatement ⇒ Object
readonly
Returns the value of attribute rcstatement.
Instance Method Summary collapse
-
#execute(mode) ⇒ Object
Executes the statement in +mode+ (:blocking or :nonblocking) NOTE: to be overrided.
-
#init_sim(systemT) ⇒ Object
Initialize the simulation for system +systemT+.
-
#to_rcsim ⇒ Object
Generate the C description of the statement.
Instance Attribute Details
#rcstatement ⇒ Object (readonly)
Returns the value of attribute rcstatement.
516 517 518 |
# File 'lib/HDLRuby/hruby_rcsim.rb', line 516 def rcstatement @rcstatement end |
Instance Method Details
#execute(mode) ⇒ Object
Executes the statement in +mode+ (:blocking or :nonblocking) NOTE: to be overrided.
640 641 642 |
# File 'lib/HDLRuby/hruby_rsim.rb', line 640 def execute(mode) raise "execute must be implemented in class #{self.class}" end |
#init_sim(systemT) ⇒ Object
Initialize the simulation for system +systemT+.
634 635 636 |
# File 'lib/HDLRuby/hruby_rsim.rb', line 634 def init_sim(systemT) raise "init_sim must be implemented in class #{self.class}" end |
#to_rcsim ⇒ Object
Generate the C description of the statement.
519 520 521 |
# File 'lib/HDLRuby/hruby_rcsim.rb', line 519 def to_rcsim raise "to_rcsim must be implemented in #{self.class}" end |