caches.py (11722:f15f02d8c79e) | caches.py (12072:2ee7f25dd00d) |
---|---|
1# -*- coding: utf-8 -*- 2# Copyright (c) 2015 Jason Power 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 19 unchanged lines hidden (view full) --- 28# Authors: Jason Power 29 30""" Caches with options for a simple gem5 configuration script 31 32This file contains L1 I/D and L2 caches to be used in the simple 33gem5 configuration script. It uses the SimpleOpts wrapper to set up command 34line options from each individual class. 35""" | 1# -*- coding: utf-8 -*- 2# Copyright (c) 2015 Jason Power 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 19 unchanged lines hidden (view full) --- 28# Authors: Jason Power 29 30""" Caches with options for a simple gem5 configuration script 31 32This file contains L1 I/D and L2 caches to be used in the simple 33gem5 configuration script. It uses the SimpleOpts wrapper to set up command 34line options from each individual class. 35""" |
36 | 36import m5 |
37from m5.objects import Cache 38 | 37from m5.objects import Cache 38 |
39# Add the common scripts to our path 40m5.util.addToPath('../../') 41 |
|
39from common import SimpleOpts 40 41# Some specific options for caches 42# For all options see src/mem/cache/BaseCache.py 43 44class L1Cache(Cache): 45 """Simple L1 Cache with default values""" 46 --- 83 unchanged lines hidden --- | 42from common import SimpleOpts 43 44# Some specific options for caches 45# For all options see src/mem/cache/BaseCache.py 46 47class L1Cache(Cache): 48 """Simple L1 Cache with default values""" 49 --- 83 unchanged lines hidden --- |