Sha256: 3c258612ef7bbafd11504da8c7deedaf5f74e735bbbb570104ec8d117394a0be
Contents?: true
Size: 1.52 KB
Versions: 6
Compression:
Stored size: 1.52 KB
Contents
# This file is the Ruby side of the bench. require 'rubygems' require 'ruby-vpi' RubyVpi.init_bench :Hw5_unit, :xUnit do ## # This block is executed whenever Vpi::simulate is invoked. # # It simulates the design under test by (typically) toggling # the clock signal, as demonstrated below. ## ## # We are currently here (marked by the ! signs): # # ! # ! # ! ____ ____ ____ ____ # ___!/ \____/ \____/ \____/ \ # ! # ! # ## Hw5_unit.clk.intVal = 1 ## # After setting the clock signal to high, we are here: # # ! # ! # !____ ____ ____ ____ # ____/! \____/ \____/ \____/ \ # ! # ! # ## advance_time ## # After advancing the time, we are here: # # ! # ! # ____! ____ ____ ____ # ____/ !\____/ \____/ \____/ \ # ! # ! # ## Hw5_unit.clk.intVal = 0 ## # After setting the clock signal to low, we are here: # # ! # ! # ____ ! ____ ____ ____ # ____/ \!____/ \____/ \____/ \ # ! # ! # ## advance_time ## # After advancing the time, we are here: # # # ! # ! # ____ ! ____ ____ ____ # ____/ \____!/ \____/ \____/ \ # ! # ! # ## ## # This process repeats when Vpi::simulate is invoked again. ## end
Version data entries
6 entries across 6 versions & 1 rubygems