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

Subversion Repositories openrisc_me

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

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 49 julius
 
37 6 julius
#if VM_TRACE
38
#include <SpTraceVcdC.h>
39
#endif
40
 
41
 
42
//! Class to drive the Verilator VCD trace interface.
43
 
44
//! Substantive code is only implemented if trace is enabled.
45
 
46
class TraceSC
47
  : public sc_core::sc_module
48
{
49
public:
50
 
51
  // Constructor and destructor
52
  TraceSC (sc_core::sc_module_name  name,
53
           Vorpsoc_top        *_traceTarget,
54
           int argc,
55
           char * argv[]);
56
  ~TraceSC ();
57
 
58
    // Method to drive the trace
59
  void  driveTrace();
60
 
61 49 julius
  // VCD dump controling vars
62
  int dump_start_delay, dump_stop_set;
63
  int dumping_now;
64
  sc_time dump_start,dump_stop;
65
 
66 6 julius
  /* The port */
67 49 julius
  //sc_in<bool>   clk;
68 6 julius
 
69
private:
70
 
71
  //! The ORPSoC module we are tracing
72
  Vorpsoc_top *traceTarget;
73
 
74 49 julius
 
75 6 julius
#if VM_TRACE
76
  //! The System Perl Trace file
77
  SpTraceVcdCFile *spTraceFile;
78
#endif
79
 
80
  // Set the time resolution
81
  void setSpTimeResolution (sc_time  t);
82
 
83
};      // TraceSC ()
84
 
85
#endif  // TRACE_SC__H

powered by: WebSVN 2.1.0

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