Class: HDLRuby::High::Expression

Inherits:
Object
  • Object
show all
Defined in:
lib/HDLRuby/hruby_rsim.rb,
lib/HDLRuby/hruby_rcsim.rb

Overview

Extends the Expression class for hybrid Ruby-C simulation.

Instance Method Summary collapse

Instance Method Details

#execute(mode) ⇒ Object

Executes the expression in +mode+ (:blocking or :nonblocking) NOTE: to be overrided.



814
815
816
# File 'lib/HDLRuby/hruby_rsim.rb', line 814

def execute(mode)
    raise "execute must be implemented in class #{self.class}"
end

#to_rcsimObject

Generate the C description of the expression.



736
737
738
# File 'lib/HDLRuby/hruby_rcsim.rb', line 736

def to_rcsim
    raise "to_rcsim must be implemented in #{self.class}"
end