Class: RubyRTL::UIntType
Instance Attribute Summary collapse
-
#bitwidth ⇒ Object
Returns the value of attribute bitwidth.
Attributes inherited from Ast
Instance Method Summary collapse
-
#initialize(nbits) ⇒ UIntType
constructor
A new instance of UIntType.
- #to_s ⇒ Object
Methods inherited from Ast
Constructor Details
#initialize(nbits) ⇒ UIntType
Returns a new instance of UIntType.
315 316 317 |
# File 'lib/ruby_rtl/ast.rb', line 315 def initialize nbits @bitwidth=nbits end |
Instance Attribute Details
#bitwidth ⇒ Object
Returns the value of attribute bitwidth.
314 315 316 |
# File 'lib/ruby_rtl/ast.rb', line 314 def bitwidth @bitwidth end |
Instance Method Details
#to_s ⇒ Object
319 320 321 |
# File 'lib/ruby_rtl/ast.rb', line 319 def to_s "uint#{bitwidth}" end |