Class: Idl::XregType

Inherits:
Type
  • Object
show all
Defined in:
lib/idl/type.rb

Overview

XReg is really a Bits<> type, so we override it just to get prettier prints

Instance Method Summary collapse

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_cxxObject



823
824
825
# File 'lib/idl/type.rb', line 823

def to_cxx
  'XReg'
end

#to_sObject



819
820
821
# File 'lib/idl/type.rb', line 819

def to_s
  'XReg'
end