test_counter.v 286 Bytes
Newer Older
1 2
`include "tvm_marcos.v"

3
module main();
4
   `TVM_DEFINE_TEST_SIGNAL(clk, rst)
5

6
   wire[3:0] counter;
7
   counter counter_unit1(.clk(clk), .rst(rst), .out(counter));
8

9 10 11 12 13
   initial begin
      // This will allow tvm session to be called every cycle.
      $tvm_session(clk);
   end
endmodule