Class: HDLRuby::High::TypeVector

Inherits:
Low::TypeVector show all
Includes:
Htype, HvectorType
Defined in:
lib/HDLRuby/hruby_high.rb,
lib/HDLRuby/hruby_rcsim.rb

Overview

Extends the TypeVector class for hybrid Ruby-C simulation.

Direct Known Subclasses

TypeFloat, TypeSigned, TypeUnsigned

Constant Summary collapse

High =
HDLRuby::High

Constants included from Low::Low2Symbol

Low::Low2Symbol::Low2SymbolPrefix, Low::Low2Symbol::Low2SymbolTable, Low::Low2Symbol::Symbol2LowTable

Instance Attribute Summary

Attributes inherited from Low::TypeVector

#base, #range

Attributes inherited from Low::Type

#name

Attributes included from Low::Hparent

#parent

Instance Method Summary collapse

Methods included from HvectorType

#to_low

Methods included from Htype

#[], #binary, #comp_operator, #constant, #define_operator, #each_overload, #htype?, included, #inner, #inout, #input, #left, #name=, #output, #register, #right, #to_type, #typedef, #unary

Methods included from Tprocess

#&, #*, #+, #+@, #-@, #/, #<<, #==, #abs, #lr, #make, #resolve, #slice, #~

Methods inherited from Low::TypeVector

#base?, #break_types!, #dir, #direction, #each_type_deep, #eql?, #equivalent?, #fixed?, #float?, #hash, #initialize, #max, #min, #set_base!, #set_range!, #signed?, #size, #to_c, #to_hdr, #to_high, #to_verilog, #to_vhdl, #unsigned?, #vector?, #width

Methods included from Low::Ltype

included, #ltype?

Methods inherited from Low::Type

#base, #base?, #boolean?, #break_types!, #direction, #each_type_deep, #eql?, #equivalent?, #fixed?, #float?, #hash, #hierarchical?, #initialize, #leaf?, #max, #min, #range, #range?, #regular?, #set_name!, #signed?, #struct?, #to_c, #to_hdr, #to_high, #to_vector, #to_verilog, #to_vhdl, #types?, #unsigned?, #vector?, #width

Methods included from Low::Low2Symbol

#to_sym

Methods included from Low::Hparent

#hierarchy, #no_parent!, #scope

Constructor Details

This class inherits a constructor from HDLRuby::Low::TypeVector

Instance Method Details

#to_rcsimObject

Generate the C description of the type.



274
275
276
277
278
# File 'lib/HDLRuby/hruby_rcsim.rb', line 274

def to_rcsim
    # Create the type C object.
    @rctype = RCSim.rcsim_get_type_vector(self.base.to_rcsim,self.size)
    return @rctype
end