read_config.py (14050:09be542e022f) | read_config.py (14051:aff599136be8) |
---|---|
1# Copyright (c) 2014,2019 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 --- 75 unchanged lines hidden (view full) --- 84 def body(cls, flags, param): 85 old_param = param 86 ret = cls(cast(str(param) + 't')) 87 return ret 88 return body 89 90def addr_range_parser(cls, flags, param): 91 sys.stdout.flush() | 1# Copyright (c) 2014,2019 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 --- 75 unchanged lines hidden (view full) --- 84 def body(cls, flags, param): 85 old_param = param 86 ret = cls(cast(str(param) + 't')) 87 return ret 88 return body 89 90def addr_range_parser(cls, flags, param): 91 sys.stdout.flush() |
92 (low, high, intlv_high_bit, xor_high_bit, 93 intlv_bits, intlv_match) = param.split(':') 94 return m5.objects.AddrRange( 95 start=long(low), end=long(high), 96 intlvHighBit=long(intlv_high_bit), xorHighBit=long(xor_high_bit), 97 intlvBits=long(intlv_bits), intlvMatch=long(intlv_match)) | 92 _param = param.split(':') 93 (start, end) = _param[0:2] 94 if len(_param) == 2: 95 return m5.objects.AddrRange(start=long(start), end=long(end)) 96 else: 97 assert len(_param) > 2 98 intlv_match = _param[2] 99 masks = [ long(m) for m in _param[3:] ] 100 return m5.objects.AddrRange(start=long(start), end=long(end), 101 masks=masks, intlvMatch=long(intlv_match)) |
98 | 102 |
103 |
|
99def memory_bandwidth_parser(cls, flags, param): 100 # The string will be in tick/byte 101 # Convert to byte/tick 102 value = 1.0 / float(param) 103 # Convert to byte/s 104 value = ticks.fromSeconds(value) 105 return cls('%fB/s' % value) 106 --- 444 unchanged lines hidden --- | 104def memory_bandwidth_parser(cls, flags, param): 105 # The string will be in tick/byte 106 # Convert to byte/tick 107 value = 1.0 / float(param) 108 # Convert to byte/s 109 value = ticks.fromSeconds(value) 110 return cls('%fB/s' % value) 111 --- 444 unchanged lines hidden --- |