# File lib/ruby-vpi/vpi.rb, line 118
118:     def get_value aFormat = VpiIntVal
119:       val = get_value_wrapper(resolve_prop_type(aFormat))
120: 
121:       case val.format
122:       when VpiBinStrVal, VpiOctStrVal, VpiDecStrVal, VpiHexStrVal, VpiStringVal
123:         val.value.str.to_s
124: 
125:       when VpiScalarVal
126:         val.value.scalar.to_i
127: 
128:       when VpiIntVal
129:         @size ||= vpi_get(VpiSize, self)
130: 
131:         if @size < INTEGER_BITS
132:           val.value.integer.to_i
133:         else
134:           get_value_wrapper(VpiHexStrVal).value.str.to_s.to_i(16)
135:         end
136: 
137:       when VpiRealVal
138:         val.value.real.to_f
139: 
140:       when VpiTimeVal
141:         val.value.time
142: 
143:       when VpiVectorVal
144:         val.value.vector
145: 
146:       when VpiStrengthVal
147:         val.value.strength
148: 
149:       else
150:         raise "unknown S_vpi_value.format: #{val.format.inspect}"
151:       end
152:     end