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

Subversion Repositories lpffir

[/] [lpffir/] [trunk/] [uvm/] [lpffir_uvm/] [generated_tb/] [tb/] [top/] [sv/] [port_converter.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: port_converter.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: Analysis port type converter class for use with Syosil scoreboard
14
//=============================================================================
15
 
16
`ifndef PORT_CONVERTER_SV
17
`define PORT_CONVERTER_SV
18
 
19
 
20
class port_converter #(type T = uvm_sequence_item) extends uvm_subscriber #(T);
21
  `uvm_component_param_utils(port_converter#(T))
22
 
23
  // For connecting analysis port of monitor to analysis export of Syosil scoreboard
24
 
25
  uvm_analysis_port #(uvm_sequence_item) analysis_port;
26
 
27
  function new(string name, uvm_component parent);
28
    super.new(name, parent);
29
    analysis_port = new("a_port", this);
30
  endfunction
31
 
32
  function void write(T t);
33
    analysis_port.write(t);
34
  endfunction
35
 
36
endclass
37
 
38
 
39
`endif // PORT_CONVERTER_SV
40
 

powered by: WebSVN 2.1.0

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