Class: HDLRuby::High::Statement

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

Overview

Describes a statement.

NOTE: this is an abstract class which is not to be used directly.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#rcstatementObject (readonly)

Extends the Statement class for hybrid Ruby-C simulation.



527
528
529
# File 'lib/HDLRuby/hruby_rcsim.rb', line 527

def rcstatement
  @rcstatement
end

Instance Method Details

#execute(mode) ⇒ Object

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



703
704
705
# File 'lib/HDLRuby/hruby_rsim.rb', line 703

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

#init_sim(systemT) ⇒ Object

Initialize the simulation for system +systemT+.



697
698
699
# File 'lib/HDLRuby/hruby_rsim.rb', line 697

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

#to_rcsimObject

Generate the C description of the statement.



530
531
532
# File 'lib/HDLRuby/hruby_rcsim.rb', line 530

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