Class: HDLRuby::High::Expression
- Inherits:
-
Object
- Object
- HDLRuby::High::Expression
- Defined in:
- lib/HDLRuby/hruby_rsim.rb,
lib/HDLRuby/hruby_rcsim.rb
Overview
Describes an expression.
NOTE: this is an abstract class which is not to be used directly.
Instance Method Summary collapse
-
#execute(mode) ⇒ Object
Executes the expression 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 expression.
Instance Method Details
#execute(mode) ⇒ Object
Executes the expression in +mode+ (:blocking or :nonblocking) NOTE: to be overrided.
1030 1031 1032 |
# File 'lib/HDLRuby/hruby_rsim.rb', line 1030 def execute(mode) raise "execute must be implemented in class #{self.class}" end |
#init_sim(systemT) ⇒ Object
Initialize the simulation for system +systemT+.
1024 1025 1026 |
# File 'lib/HDLRuby/hruby_rsim.rb', line 1024 def init_sim(systemT) # By default: do nothing. end |
#to_rcsim ⇒ Object
Generate the C description of the expression.
791 792 793 |
# File 'lib/HDLRuby/hruby_rcsim.rb', line 791 def to_rcsim raise "to_rcsim must be implemented in #{self.class}" end |