ovm_driver.svh

Go to the documentation of this file.
00001 // $Id: ovm__driver_8svh-source.html,v 1.1 2008/10/07 21:54:17 alex.marin Exp $
00002 //----------------------------------------------------------------------
00003 //   Copyright 2007-2008 Mentor Graphics Corporation
00004 //   Copyright 2007-2008 Cadence Design Systems, Inc.
00005 //   All Rights Reserved Worldwide
00006 //
00007 //   Licensed under the Apache License, Version 2.0 (the
00008 //   "License"); you may not use this file except in
00009 //   compliance with the License.  You may obtain a copy of
00010 //   the License at
00011 //
00012 //       http://www.apache.org/licenses/LICENSE-2.0
00013 //
00014 //   Unless required by applicable law or agreed to in
00015 //   writing, software distributed under the License is
00016 //   distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
00017 //   CONDITIONS OF ANY KIND, either express or implied.  See
00018 //   the License for the specific language governing
00019 //   permissions and limitations under the License.
00020 //----------------------------------------------------------------------
00021 
00022 
00023 class ovm_driver #(type REQ = ovm_sequence_item,
00024                    type RSP = REQ) extends ovm_component;
00025 
00026   ovm_seq_item_pull_port #(REQ, RSP) seq_item_port;
00027   ovm_seq_item_pull_port #(REQ, RSP) seq_item_prod_if;
00028 
00029   ovm_analysis_port #(RSP) rsp_port;
00030 
00031   REQ req;
00032   RSP rsp;
00033 
00034   function new (string name, ovm_component parent);
00035     super.new(name, parent);
00036     seq_item_port    = new("sqr_pull_port", this);
00037     seq_item_prod_if = seq_item_port;
00038     rsp_port    = new("rsp_port", this);
00039   endfunction // new
00040 
00041   task run();
00042     return;
00043   endtask // run
00044 
00045 endclass
00046 

Intelligent Design Verification
Intelligent Design Verification
Project: OVM, Revision: 1.1.0
Copyright (c) 2008 Intelligent Design Verification.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
A copy of the license is included here:
http://www.intelligentdv.com/licenses/fdl.txt
doxygen
Doxygen Version: 1.4.6
Mon Sep 29 14:23:29 2008
Find a documentation bug? Report bugs to: bugs.intelligentdv.com Project: DoxygenFilterSV