A hardware/software framework for instruction and data scratchpad memory allocation
Authors:
Open Access
- 1 April 2010
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Architecture and Code Optimization
- Vol. 7 (1) , 1-27
Abstract
Previous researches show that a scratchpad memory device consumed less energy than a cache device with the same capacity. In this article, we locate the scratchpad memory (SPM) in the top level of the memory hierarchy to reduce the energy consumption. To take the advantage of a SPM, we address two issues of utilizing a SPM. First, the program's locality should be improved. The second issue is SPM management. To tackle these two issues, we present a hardware/software framework for dynamically allocating both instructions and data in SPM. The software flow could be divided into three phases: locality improving, locality extraction, and runtime SPM management. Without modifying the original compiler and the source code, we improve the locality of a program. An optimization algorithm is proposed to extract the SPM allocations. At runtime, an SPM management program is employed. In hardware, an address translation logic (ATL) is proposed to reduce the overhead of SPM management. The results show that the proposed framework can reduce energy delay product (EDP) by 63%, on average, when compared with the traditional cache architecture. The reduction in EDP is contributed by properly allocating both instructions and data in SPM. By allocating only instructions in SPM, the EDPs are reduced by 45%, on average. By allocating only data in SPM, the EDPs are reduced by 14%, on average.Keywords
Funding Information
- National Science Council Taiwan (98-2622-E-006-036-CC2)
This publication has 27 references indexed in Scilit:
- Dynamic allocation for scratch-pad memory using compile-time decisionsACM Transactions on Embedded Computing Systems, 2006
- An optimal memory allocation scheme for scratch-pad-based embedded systemsACM Transactions on Embedded Computing Systems, 2002
- On-chip vs. off-chip memoryACM Transactions on Design Automation of Electronic Systems, 2000
- A fully associative software-managed cache designACM SIGARCH Computer Architecture News, 2000
- Application-driven synthesis of memory-intensive systems-on-chipIEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 1999
- CACTI: an enhanced cache access and cycle time modelIEEE Journal of Solid-State Circuits, 1996
- Effective hardware-based data prefetching for high-performance processorsIEEE Transactions on Computers, 1995
- A retargetable compiler for ANSI CACM SIGPLAN Notices, 1991
- A data locality optimizing algorithmACM SIGPLAN Notices, 1991
- Profile guided code positioningACM SIGPLAN Notices, 1990