Sha256: 2b14c24592c10dac3e9719fc73d14316550df304b3771dc883add75fbf0b212a
Contents?: true
Size: 619 Bytes
Versions: 1
Compression:
Stored size: 619 Bytes
Contents
/* This is the Verilog side of the bench. */ `include "counter.v" module counter_unitTest_bench; // instantiate the design under test parameter Size = 5; reg clock; reg reset; wire [Size - 1 : 0] count; counter #(.Size(Size)) counter_unitTest_bench_design(.clock(clock), .reset(reset), .count(count)); // connect to the Ruby side of this bench initial begin clock = 0; $ruby_init("ruby", "-w", "-rubygems", "counter_unitTest_bench.rb"); end always begin #5 clock = ~clock; end always @(posedge clock) begin #1 $ruby_relay; end endmodule
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-vpi-8.2.0 | samp/counter/counter_unitTest_bench.v |