1# Copyright (c) 2012-2013, 2015 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 --- 55 unchanged lines hidden (view full) --- 64 O3_ARM_v7a_DCache, O3_ARM_v7a_ICache, O3_ARM_v7aL2 65 else: 66 dcache_class, icache_class, l2_cache_class = \ 67 L1_DCache, L1_ICache, L2Cache 68 69 # Set the cache line size of the system 70 system.cache_line_size = options.cacheline_size 71 |
72 # If elastic trace generation is enabled, make sure the memory system is 73 # minimal so that compute delays do not include memory access latencies. 74 # Configure the compulsory L1 caches for the O3CPU, do not configure 75 # any more caches. 76 if options.l2cache and options.elastic_trace_en: 77 fatal("When elastic trace is enabled, do not configure L2 caches.") 78 |
79 if options.l2cache: 80 # Provide a clock for the L2 and the L1-to-L2 bus here as they 81 # are not connected using addTwoLevelCacheHierarchy. Use the 82 # same clock as the CPUs. 83 system.l2 = l2_cache_class(clk_domain=system.cpu_clk_domain, 84 size=options.l2_size, 85 assoc=options.l2_assoc) 86 --- 91 unchanged lines hidden --- |