Class: HDLRuby::High::Ref

Inherits:
Object
  • Object
show all
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

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_rcsimObject

Generate the C description of the reference.



944
945
946
# File 'lib/HDLRuby/hruby_rcsim.rb', line 944

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