1 |
16 |
HanySalah |
//
|
2 |
|
|
//-----------------------------------------------------------------------------
|
3 |
|
|
// Copyright 2007-2011 Mentor Graphics Corporation
|
4 |
|
|
// Copyright 2007-2010 Cadence Design Systems, Inc.
|
5 |
|
|
// Copyright 2010 Synopsys, Inc.
|
6 |
|
|
// All Rights Reserved Worldwide
|
7 |
|
|
//
|
8 |
|
|
// Licensed under the Apache License, Version 2.0 (the
|
9 |
|
|
// "License"); you may not use this file except in
|
10 |
|
|
// compliance with the License. You may obtain a copy of
|
11 |
|
|
// the License at
|
12 |
|
|
//
|
13 |
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
14 |
|
|
//
|
15 |
|
|
// Unless required by applicable law or agreed to in
|
16 |
|
|
// writing, software distributed under the License is
|
17 |
|
|
// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
18 |
|
|
// CONDITIONS OF ANY KIND, either express or implied. See
|
19 |
|
|
// the License for the specific language governing
|
20 |
|
|
// permissions and limitations under the License.
|
21 |
|
|
//-----------------------------------------------------------------------------
|
22 |
|
|
|
23 |
|
|
//-----------------------------------------------------------------------------
|
24 |
|
|
// Title: Sequence Item Pull Ports
|
25 |
|
|
//
|
26 |
|
|
// This section defines the port, export, and imp port classes for
|
27 |
|
|
// communicating sequence items between and
|
28 |
|
|
// .
|
29 |
|
|
//-----------------------------------------------------------------------------
|
30 |
|
|
|
31 |
|
|
//-----------------------------------------------------------------------------
|
32 |
|
|
//
|
33 |
|
|
// Class: uvm_seq_item_pull_port #(REQ,RSP)
|
34 |
|
|
//
|
35 |
|
|
// UVM provides a port, export, and imp connector for use in sequencer-driver
|
36 |
|
|
// communication. All have standard port connector constructors, except that
|
37 |
|
|
// uvm_seq_item_pull_port's default min_size argument is 0; it can be left
|
38 |
|
|
// unconnected.
|
39 |
|
|
//
|
40 |
|
|
//-----------------------------------------------------------------------------
|
41 |
|
|
|
42 |
|
|
class uvm_seq_item_pull_port #(type REQ=int, type RSP=REQ)
|
43 |
|
|
extends uvm_port_base #(uvm_sqr_if_base #(REQ, RSP));
|
44 |
|
|
`UVM_SEQ_PORT(`UVM_SEQ_ITEM_PULL_MASK, "uvm_seq_item_pull_port")
|
45 |
|
|
`UVM_SEQ_ITEM_PULL_IMP(this.m_if, REQ, RSP, t, t)
|
46 |
|
|
|
47 |
|
|
bit print_enabled;
|
48 |
|
|
|
49 |
|
|
endclass
|
50 |
|
|
|
51 |
|
|
|
52 |
|
|
//-----------------------------------------------------------------------------
|
53 |
|
|
//
|
54 |
|
|
// Class: uvm_seq_item_pull_export #(REQ,RSP)
|
55 |
|
|
//
|
56 |
|
|
// This export type is used in sequencer-driver communication. It has the
|
57 |
|
|
// standard constructor for exports.
|
58 |
|
|
//
|
59 |
|
|
//-----------------------------------------------------------------------------
|
60 |
|
|
|
61 |
|
|
class uvm_seq_item_pull_export #(type REQ=int, type RSP=REQ)
|
62 |
|
|
extends uvm_port_base #(uvm_sqr_if_base #(REQ, RSP));
|
63 |
|
|
`UVM_EXPORT_COMMON(`UVM_SEQ_ITEM_PULL_MASK, "uvm_seq_item_pull_export")
|
64 |
|
|
`UVM_SEQ_ITEM_PULL_IMP(this.m_if, REQ, RSP, t, t)
|
65 |
|
|
endclass
|
66 |
|
|
|
67 |
|
|
|
68 |
|
|
//-----------------------------------------------------------------------------
|
69 |
|
|
//
|
70 |
|
|
// Class: uvm_seq_item_pull_imp #(REQ,RSP,IMP)
|
71 |
|
|
//
|
72 |
|
|
// This imp type is used in sequencer-driver communication. It has the
|
73 |
|
|
// standard constructor for imp-type ports.
|
74 |
|
|
//
|
75 |
|
|
//-----------------------------------------------------------------------------
|
76 |
|
|
|
77 |
|
|
class uvm_seq_item_pull_imp #(type REQ=int, type RSP=REQ, type IMP=int)
|
78 |
|
|
extends uvm_port_base #(uvm_sqr_if_base #(REQ, RSP));
|
79 |
|
|
// Function: new
|
80 |
|
|
`UVM_IMP_COMMON(`UVM_SEQ_ITEM_PULL_MASK, "uvm_seq_item_pull_imp",IMP)
|
81 |
|
|
`UVM_SEQ_ITEM_PULL_IMP(m_imp, REQ, RSP, t, t)
|
82 |
|
|
|
83 |
|
|
endclass
|