Class: Idl::XregType
Overview
XReg is really a Bits<> type, so we override it just to get prettier prints
Instance Method Summary collapse
-
#initialize(xlen) ⇒ XregType
constructor
A new instance of XregType.
- #to_cxx ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(xlen) ⇒ XregType
Returns a new instance of XregType.
815 816 817 |
# File 'lib/idl/type.rb', line 815 def initialize(xlen) super(:bits, width: xlen) end |
Instance Method Details
#to_cxx ⇒ Object
823 824 825 |
# File 'lib/idl/type.rb', line 823 def to_cxx 'XReg' end |
#to_s ⇒ Object
819 820 821 |
# File 'lib/idl/type.rb', line 819 def to_s 'XReg' end |