OpenCores
URL https://opencores.org/ocsvn/sv_dir_tb/sv_dir_tb/trunk

Subversion Repositories sv_dir_tb

[/] [sv_dir_tb/] [trunk/] [examples/] [standard/] [sv/] [tb_top.sv] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 sckoarn
 
2
`include "../sv/tb_mod.sv"
3
 
4
module tb_top ();
5
 
6
  // default stimulus file name
7
  string stm_file  = "../stm/stimulus_file.stm";
8
  string tmp_fn;
9
  //  handle the plus args  Change stimulus file name.
10
  initial begin : file_select
11
    if($value$plusargs("STM_FILE=%s", tmp_fn)) begin
12
      stm_file = tmp_fn;
13
    end
14
  end
15
 
16
  dut_if theif();
17
 
18
  dut_module u1 (
19
    .rst_n    (theif.rst_n),
20
    .clk      (theif.clk),
21
    .out1     (theif.out1),
22
    .out2     (theif.out2),
23
    .addr     (theif.addr),
24
    .data_in  (theif.data_in),
25
    .data_out (theif.data_out),
26
    .sel      (theif.sel),
27
    .ack      (theif.ack)
28
  );
29
 
30
 
31
  tb_mod tb_inst(theif);
32
 
33
endmodule // tb_top

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.