Sha256: f703bedaf5773a40c7f2f41ec3316caadc7146c4c98cbabd403ccaca99b96615

Contents?: true

Size: 440 Bytes

Versions: 3

Compression:

Stored size: 440 Bytes

Contents

if RubyVPI::USE_PROTOTYPE
  always do
    wait until
      DUT.rdReg.change? or
      DUT.wtReg.change? or
      DUT.rw.change? or
      DUT.enable.change?

    if DUT.rw.f?
      target            = DUT.register.memoryWord_a[DUT.rdReg.intVal]
      DUT.outBus.intVal = target.intVal

    elsif DUT.enable.t?
      target            = DUT.register.memoryWord_a[DUT.wtReg.intVal]
      target.intVal     = DUT.inBus.intVal
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-vpi-20.0.0 examples/register_file/register_file_proto.rb
ruby-vpi-21.0.0 examples/register_file/register_file_proto.rb
ruby-vpi-21.1.0 examples/register_file/register_file_proto.rb