read_config.py (10458:64809024b924) | read_config.py (11228:021524c21cbc) |
---|---|
1# Copyright (c) 2014 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 --- 87 unchanged lines hidden (view full) --- 96# These parameters have trickier parsing from .ini files than might be 97# expected 98param_parsers = { 99 'Bool': simple_parser(), 100 'ParamValue': no_parser, 101 'NumericParamValue': simple_parser(cast=long), 102 'TickParamValue': tick_parser(), 103 'Frequency': tick_parser(cast=m5.objects.Latency), | 1# Copyright (c) 2014 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 --- 87 unchanged lines hidden (view full) --- 96# These parameters have trickier parsing from .ini files than might be 97# expected 98param_parsers = { 99 'Bool': simple_parser(), 100 'ParamValue': no_parser, 101 'NumericParamValue': simple_parser(cast=long), 102 'TickParamValue': tick_parser(), 103 'Frequency': tick_parser(cast=m5.objects.Latency), |
104 'Current': simple_parser(suffix='A'), |
|
104 'Voltage': simple_parser(suffix='V'), 105 'Enum': simple_parser(), 106 'MemorySize': simple_parser(suffix='B'), 107 'MemorySize32': simple_parser(suffix='B'), 108 'AddrRange': addr_range_parser, 109 'String': simple_parser(), 110 'MemoryBandwidth': memory_bandwidth_parser, | 105 'Voltage': simple_parser(suffix='V'), 106 'Enum': simple_parser(), 107 'MemorySize': simple_parser(suffix='B'), 108 'MemorySize32': simple_parser(suffix='B'), 109 'AddrRange': addr_range_parser, 110 'String': simple_parser(), 111 'MemoryBandwidth': memory_bandwidth_parser, |
111 'Time': simple_parser() | 112 'Time': simple_parser(), 113 'EthernetAddr': simple_parser() |
112 } 113 114for name, parser in param_parsers.iteritems(): 115 setattr(m5.params.__dict__[name], 'parse_ini', classmethod(parser)) 116 117class PortConnection(object): 118 """This class is similar to m5.params.PortRef but with just enough 119 information for ConfigManager""" --- 412 unchanged lines hidden --- | 114 } 115 116for name, parser in param_parsers.iteritems(): 117 setattr(m5.params.__dict__[name], 'parse_ini', classmethod(parser)) 118 119class PortConnection(object): 120 """This class is similar to m5.params.PortRef but with just enough 121 information for ConfigManager""" --- 412 unchanged lines hidden --- |