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

Subversion Repositories lpffir

[/] [lpffir/] [trunk/] [uvm/] [lpffir_uvm/] [generated_tb/] [tb/] [top_tb/] [sv/] [top_th.sv] - Blame information for rev 11

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 11 vladimirar
// You can insert code here by setting file_header_inc in file common.tpl
2
 
3
//=============================================================================
4
// Project  : generated_tb
5
//
6
// File Name: top_th.sv
7
//
8
//
9
// Version:   1.0
10
//
11
// Code created by Easier UVM Code Generator version 2016-04-18-EP on Sat Apr 27 13:59:59 2019
12
//=============================================================================
13
// Description: Test Harness
14
//=============================================================================
15
 
16
module top_th;
17
 
18
  timeunit      1ns;
19
  timeprecision 1ps;
20
 
21
 
22
  // You can remove clock and reset below by setting th_generate_clock_and_reset = no in file common.tpl
23
 
24
  // Example clock and reset declarations
25
  logic clock = 0;
26
  logic reset;
27
 
28
  // Example clock generator process
29
  always #10 clock = ~clock;
30
 
31
  // Example reset generator process
32
  initial
33
  begin
34
    reset = 0;         // Active low reset in this example
35
    #75 reset = 1;
36
  end
37
 
38
  assign data_input_if_0.reset  = reset;
39
  assign data_output_if_0.reset = reset;
40
 
41
  assign data_input_if_0.clk    = clock;
42
  assign data_output_if_0.clk   = clock;
43
 
44
  // You can insert code here by setting th_inc_inside_module in file common.tpl
45
 
46
  // Pin-level interfaces connected to DUT
47
  // You can remove interface instances by setting generate_interface_instance = no in the interface template file
48
 
49
  data_input_if   data_input_if_0 ();
50
  data_output_if  data_output_if_0 ();
51
 
52
  lpffir_axis uut (
53
    .rx_tlast_i (data_input_if_0.last),
54
    .rx_tvalid_i(data_input_if_0.valid),
55
    .rx_tready_o(data_input_if_0.ready),
56
    .rx_tdata_i (data_input_if_0.data),
57
    .tx_tlast_o (data_output_if_0.last),
58
    .tx_tvalid_o(data_output_if_0.valid),
59
    .tx_tready_i(data_output_if_0.ready),
60
    .tx_tdata_o (data_output_if_0.data),
61
    .aclk_i     (clock),
62
    .aresetn_i  (reset)
63
  );
64
 
65
endmodule
66
 

powered by: WebSVN 2.1.0

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