Module: HDLRuby::Low::Hparent

Included in:
Behavior, Chunk, Code, Delay, Event, Expression, Scope, SignalI, Statement, SystemI, SystemT, Type, When
Defined in:
lib/HDLRuby/hruby_low.rb

Overview

Gives parent definition and access properties to an hardware object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#parentObject

The parent.



41
42
43
# File 'lib/HDLRuby/hruby_low.rb', line 41

def parent
  @parent
end

Instance Method Details

#scopeObject

Get the parent scope.



57
58
59
60
61
# File 'lib/HDLRuby/hruby_low.rb', line 57

def scope
    cur = self.parent
    cur = cur.parent until cur.is_a?(Scope)
    return cur
end