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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [bench/] [sysc/] [include/] [TraceSC.h] - Blame information for rev 6

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 julius
// ----------------------------------------------------------------------------
2
 
3
// SystemC trace header
4
 
5
// Copyright (C) 2008  Embecosm Limited <info@embecosm.com>
6
 
7
// Contributor Jeremy Bennett <jeremy.bennett@embecosm.com>
8
 
9
// This file is part of the cycle accurate model of the OpenRISC 1000 based
10
// system-on-chip, ORPSoC, built using Verilator.
11
 
12
// This program is free software: you can redistribute it and/or modify it
13
// under the terms of the GNU Lesser General Public License as published by
14
// the Free Software Foundation, either version 3 of the License, or (at your
15
// option) any later version.
16
 
17
// This program is distributed in the hope that it will be useful, but WITHOUT
18
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
20
// License for more details.
21
 
22
// You should have received a copy of the GNU Lesser General Public License
23
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
24
 
25
// ----------------------------------------------------------------------------
26
 
27
// $Id: TraceSC.h 302 2009-02-13 17:22:07Z jeremy $
28
 
29
// Drives the Verilator VCD trace interface
30
 
31
#ifndef TRACE_SC__H
32
#define TRACE_SC__H
33
 
34
#include "Vorpsoc_top.h"
35
 
36
#if VM_TRACE
37
#include <SpTraceVcdC.h>
38
#endif
39
 
40
 
41
//! Class to drive the Verilator VCD trace interface.
42
 
43
//! Substantive code is only implemented if trace is enabled.
44
 
45
class TraceSC
46
  : public sc_core::sc_module
47
{
48
public:
49
 
50
  // Constructor and destructor
51
  TraceSC (sc_core::sc_module_name  name,
52
           Vorpsoc_top        *_traceTarget,
53
           int argc,
54
           char * argv[]);
55
  ~TraceSC ();
56
 
57
    // Method to drive the trace
58
  void  driveTrace();
59
 
60
  /* The port */
61
  sc_in<bool>   clk;
62
 
63
private:
64
 
65
  //! The ORPSoC module we are tracing
66
  Vorpsoc_top *traceTarget;
67
 
68
#if VM_TRACE
69
  //! The System Perl Trace file
70
  SpTraceVcdCFile *spTraceFile;
71
#endif
72
 
73
  // Set the time resolution
74
  void setSpTimeResolution (sc_time  t);
75
 
76
};      // TraceSC ()
77
 
78
#endif  // TRACE_SC__H

powered by: WebSVN 2.1.0

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