Class: HDLRuby::Low::TypeSigned
- Inherits:
- 
      TypeVector
      
        - Object
- Type
- TypeVector
- HDLRuby::Low::TypeSigned
 
- Defined in:
- lib/HDLRuby/hruby_low.rb,
 lib/HDLRuby/hruby_low2high.rb
Overview
Describes a signed integer data type.
Constant Summary
Constants included from Low2Symbol
Low2Symbol::Low2SymbolPrefix, Low2Symbol::Low2SymbolTable, Low2Symbol::Symbol2LowTable
Instance Attribute Summary
Attributes inherited from TypeVector
Attributes inherited from Type
Attributes included from Hparent
Instance Method Summary collapse
- 
  
    
      #initialize(name, range = 31..0)  ⇒ TypeSigned 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    Creates a new vector type named +name+ from +base+ type and with +range+. 
- 
  
    
      #to_high  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Creates a new high type signed. 
Methods inherited from TypeVector
#base?, #break_types!, #dir, #direction, #each_type_deep, #eql?, #equivalent?, #fixed?, #float?, #hash, #max, #min, #set_base!, #set_range!, #signed?, #size, #to_c, #to_hdr, #to_verilog, #to_vhdl, #to_viz_name, #unsigned?, #vector?, #width
Methods inherited from Type
#base, #base?, #boolean?, #break_types!, #direction, #each_type_deep, #eql?, #equivalent?, #fixed?, #float?, #hash, #hierarchical?, #leaf?, #max, #min, #range, #range?, #regular?, #set_name!, #signed?, #struct?, #to_c, #to_hdr, #to_vector, #to_verilog, #to_vhdl, #to_viz_name, #types?, #unsigned?, #vector?, #width
Methods included from Low2Symbol
Methods included from Hparent
#absolute_ref, #hierarchy, #no_parent!, #scope
Constructor Details
#initialize(name, range = 31..0) ⇒ TypeSigned
Creates a new vector type named +name+ from +base+ type and with +range+.
NOTE:
- The default range is 32-bit.
| 1978 1979 1980 1981 | # File 'lib/HDLRuby/hruby_low.rb', line 1978 def initialize(name,range = 31..0) # Initialize the type. super(name,Signed,range) end | 
Instance Method Details
#to_high ⇒ Object
Creates a new high type signed.
| 96 97 98 | # File 'lib/HDLRuby/hruby_low2high.rb', line 96 def to_high return HDLRuby::High::TypeSigned.new(self.name,self.range) end |