CommMonitor.py (9398:6a348f61220c) | CommMonitor.py (10129:eb34ae5204b8) |
---|---|
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 * | 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 * |
|
40from MemObject import MemObject | 41from MemObject import MemObject |
42from System import System |
|
41 42# The communication monitor will most typically be used in combination 43# with periodic dumping and resetting of stats using schedStatEvent 44class CommMonitor(MemObject): 45 type = 'CommMonitor' 46 cxx_header = "mem/comm_monitor.hh" 47 | 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 |
|
48 # one port in each direction 49 master = MasterPort("Master port") 50 slave = SlavePort("Slave port") 51 52 # packet trace output file, disabled by default 53 trace_file = Param.String("", "Packet trace output file") 54 55 # control the sample period window length of this monitor --- 46 unchanged lines hidden --- | 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 --- |