Class: RubyRTL::IntType
Instance Attribute Summary collapse
-
#bitwidth ⇒ Object
Returns the value of attribute bitwidth.
Attributes inherited from Ast
Instance Method Summary collapse
-
#initialize(nbits = 32) ⇒ IntType
constructor
A new instance of IntType.
- #to_s ⇒ Object
Methods inherited from Ast
Constructor Details
#initialize(nbits = 32) ⇒ IntType
Returns a new instance of IntType.
304 305 306 |
# File 'lib/ruby_rtl/ast.rb', line 304 def initialize nbits=32 @bitwidth=nbits end |
Instance Attribute Details
#bitwidth ⇒ Object
Returns the value of attribute bitwidth.
303 304 305 |
# File 'lib/ruby_rtl/ast.rb', line 303 def bitwidth @bitwidth end |
Instance Method Details
#to_s ⇒ Object
308 309 310 |
# File 'lib/ruby_rtl/ast.rb', line 308 def to_s "int#{bitwidth}" end |