BankedArray.hh (10969:a588fceeb834) | BankedArray.hh (10978:436d5dde4bb7) |
---|---|
1/* 2 * Copyright (c) 2012 Advanced Micro Devices, Inc. 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; --- 56 unchanged lines hidden (view full) --- 65 public: 66 BankedArray(unsigned int banks, Cycles accessLatency, 67 unsigned int startIndexBit, RubySystem *rs); 68 69 // Note: We try the access based on the cache index, not the address 70 // This is so we don't get aliasing on blocks being replaced 71 bool tryAccess(int64 idx); 72 | 1/* 2 * Copyright (c) 2012 Advanced Micro Devices, Inc. 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; --- 56 unchanged lines hidden (view full) --- 65 public: 66 BankedArray(unsigned int banks, Cycles accessLatency, 67 unsigned int startIndexBit, RubySystem *rs); 68 69 // Note: We try the access based on the cache index, not the address 70 // This is so we don't get aliasing on blocks being replaced 71 bool tryAccess(int64 idx); 72 |
73 void reserve(int64 idx); 74 |
|
73 Cycles getLatency() const { return accessLatency; } 74}; 75 76#endif | 75 Cycles getLatency() const { return accessLatency; } 76}; 77 78#endif |