summaryrefslogtreecommitdiff
path: root/src/mem/ruby/common/Debug.py
blob: 09886d0c651afec792f58f9fa46345cf00ccef7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from m5.params import *
from m5.SimObject import SimObject

class RubyDebug(SimObject):
    type = 'RubyDebug'
    cxx_class = 'Debug'

    filter_string = Param.String('none',
        "a string for filtering debugging output (see Debug.h)")
    verbosity_string = Param.String('none',
        "filters debugging messages based on priority (low, med, high)")
    output_filename = Param.String('none',
        "sends debugging messages to a file")
    start_time = Param.Tick(1,
        "filters debugging messages based on a ruby time")
    # For debugging purposes, one can enable a trace of all the protocol
    # state machine changes. Unfortunately, the code to generate the
    # trace is protocol specific. To enable the code for some of the
    # standard protocols,
    #   1. change protocol_trace = true
    #   2. enable debug in the Ruby Makefile
    protocol_trace = Param.Bool(False,
        "enable protocol state machine trace")