Class: RubyRTL::Indexed

Inherits:
Sig
  • Object
show all
Defined in:
lib/ruby_rtl/dsl.rb

Instance Attribute Summary collapse

Attributes inherited from Sig

#name, #subscript_of, #subsignals, #type

Attributes inherited from Ast

#comments

Instance Method Summary collapse

Methods inherited from Sig

#!=, #!@, #&, #*, #+, #-, #-@, #/, #<, #<=, #==, #>, #>=, #[], #^, #coerce, #treat_int, #|

Methods inherited from Ast

#accept

Constructor Details

#initialize(lhs, rhs, type) ⇒ Indexed

Returns a new instance of Indexed.



165
166
167
168
# File 'lib/ruby_rtl/dsl.rb', line 165

def initialize lhs,rhs,type
  super("foo",type)
  @lhs,@rhs=lhs,rhs
end

Instance Attribute Details

#lhsObject

Returns the value of attribute lhs.



164
165
166
# File 'lib/ruby_rtl/dsl.rb', line 164

def lhs
  @lhs
end

#rhsObject

Returns the value of attribute rhs.



164
165
166
# File 'lib/ruby_rtl/dsl.rb', line 164

def rhs
  @rhs
end