# File lib/ruby-vpi/vpi.rb, line 276 276: def cbValueChange aOptions = {}, &aHandler 277: raise ArgumentError unless block_given? 278: 279: aOptions[:time] ||= S_vpi_time.new(:type => VpiSuppressTime) 280: aOptions[:value] ||= S_vpi_value.new(:format => VpiSuppressVal) 281: 282: alarm = S_cb_data.new( 283: :reason => CbValueChange, 284: :obj => self, 285: :time => aOptions[:time], 286: :value => aOptions[:value], 287: :index => 0 288: ) 289: 290: vpi_register_cb alarm, &aHandler 291: end