1# Copyright (c) 2012 ARM Limited 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 23 unchanged lines hidden (view full) --- 32# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 33# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 34# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 35# 36# Authors: Thomas Grass 37# Andreas Hansson 38 39from m5.params import * |
40from m5.proxy import * |
41from MemObject import MemObject |
42from System import System |
43 44# The communication monitor will most typically be used in combination 45# with periodic dumping and resetting of stats using schedStatEvent 46class CommMonitor(MemObject): 47 type = 'CommMonitor' 48 cxx_header = "mem/comm_monitor.hh" 49 |
50 system = Param.System(Parent.any, "System that the monitor belongs to.") 51 |
52 # one port in each direction 53 master = MasterPort("Master port") 54 slave = SlavePort("Slave port") 55 56 # packet trace output file, disabled by default 57 trace_file = Param.String("", "Packet trace output file") 58 59 # control the sample period window length of this monitor --- 46 unchanged lines hidden --- |