Class: RubyRTL::BitVectorType

Inherits:
Type
  • Object
show all
Defined in:
lib/ruby_rtl/ast.rb

Instance Attribute Summary collapse

Attributes inherited from Ast

#comments

Instance Method Summary collapse

Methods inherited from Ast

#accept

Constructor Details

#initialize(bitwidth) ⇒ BitVectorType

Returns a new instance of BitVectorType.



275
276
277
# File 'lib/ruby_rtl/ast.rb', line 275

def initialize bitwidth
  @bitwidth=bitwidth
end

Instance Attribute Details

#bitwidthObject

Returns the value of attribute bitwidth.



274
275
276
# File 'lib/ruby_rtl/ast.rb', line 274

def bitwidth
  @bitwidth
end

Instance Method Details

#to_sObject



278
279
280
# File 'lib/ruby_rtl/ast.rb', line 278

def to_s
  "bv#{bitwidth}"
end