Class: RubyRTL::BitVectorType
Instance Attribute Summary collapse
-
#bitwidth ⇒ Object
Returns the value of attribute bitwidth.
Attributes inherited from Ast
Instance Method Summary collapse
-
#initialize(bitwidth) ⇒ BitVectorType
constructor
A new instance of BitVectorType.
- #to_s ⇒ Object
Methods inherited from Ast
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
#bitwidth ⇒ Object
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_s ⇒ Object
278 279 280 |
# File 'lib/ruby_rtl/ast.rb', line 278 def to_s "bv#{bitwidth}" end |