113: def get_value aFormat = VpiObjTypeVal
114: val = get_value_wrapper(resolve_prop_type(aFormat))
115:
116: case val.format
117: when VpiBinStrVal, VpiOctStrVal, VpiDecStrVal, VpiHexStrVal, VpiStringVal
118: val.value.str
119:
120: when VpiScalarVal
121: val.value.scalar
122:
123: when VpiIntVal
124: get_value_wrapper(VpiBinStrVal).value.str.gsub(/[^01]/, '0').to_i(2)
125:
126: when VpiRealVal
127: val.value.real
128:
129: when VpiTimeVal
130: val.value.time
131:
132: when VpiVectorVal
133: val.value.vector
134:
135: when VpiStrengthVal
136: val.value.strength
137:
138: else
139: raise "unknown S_vpi_value.format: #{val.format}"
140: end
141: end