Sha256: 97e34a044a5cd9070e75fa5748b17a7ed9a6c0f6c008fe044634084b1b3cb345

Contents?: true

Size: 279 Bytes

Versions: 2

Compression:

Stored size: 279 Bytes

Contents

# This is a prototype of the design under test.

# When prototyping is enabled, Vpi::simulate invokes this method
# instead of transferring control to the Verilog simulator.
def Counter.simulate!
  if reset.intVal == 1
    count.intVal = 0
  else
    count.intVal += 1
  end
end

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
ruby-vpi-14.0.0 samp/counter/counter_rspec_proto.rb
ruby-vpi-14.0.0 samp/counter/counter_xunit_proto.rb