samp/counter/counter_xunit_bench.v in ruby-vpi-13.0.0 vs samp/counter/counter_xunit_bench.v in ruby-vpi-14.0.0
- old
+ new
@@ -1,16 +1,9 @@
// This file is the Verilog side of the bench.
module counter_xunit_bench;
+ parameter Size = 5;
+ reg clock;
+ reg reset;
+ wire [Size - 1 : 0] count;
- // instantiate the design under test
- parameter Size = 5;
- reg clock;
- reg reset;
- wire [Size - 1 : 0] count;
-
- counter #(.Size(Size)) counter_xunit_bench_design(.clock(clock), .reset(reset), .count(count));
-
- // generate clock for the design under test
- initial clock = 0;
- always #5 clock = !clock;
-
+ counter #(.Size(Size)) counter_xunit_bench_design(.clock(clock), .reset(reset), .count(count));
endmodule