lat_mem_rd.py (12564:2778478ca882) | lat_mem_rd.py (13731:67cd980cb20f) |
---|---|
1# Copyright (c) 2015-2016 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 --- 174 unchanged lines hidden (view full) --- 183 # add the packet header 184 header = packet_pb2.PacketHeader() 185 header.obj_id = "lat_mem_rd for range 0:" + str(max_addr) 186 # assume the default tick rate (1 ps) 187 header.tick_freq = 1000000000000 188 protolib.encodeMessage(proto_out, header) 189 190 # create a list of every single address to touch | 1# Copyright (c) 2015-2016 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 --- 174 unchanged lines hidden (view full) --- 183 # add the packet header 184 header = packet_pb2.PacketHeader() 185 header.obj_id = "lat_mem_rd for range 0:" + str(max_addr) 186 # assume the default tick rate (1 ps) 187 header.tick_freq = 1000000000000 188 protolib.encodeMessage(proto_out, header) 189 190 # create a list of every single address to touch |
191 addrs = range(0, max_addr, burst_size) | 191 addrs = list(range(0, max_addr, burst_size)) |
192 193 import random 194 random.shuffle(addrs) 195 196 tick = 0 197 198 # create a packet we can re-use for all the addresses 199 packet = packet_pb2.Packet() --- 112 unchanged lines hidden --- | 192 193 import random 194 random.shuffle(addrs) 195 196 tick = 0 197 198 # create a packet we can re-use for all the addresses 199 packet = packet_pb2.Packet() --- 112 unchanged lines hidden --- |