A Versatile Data Cache for Trace Buffer Support
Authors:
- 15 October 2014
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Circuits and Systems I: Regular Papers
- Vol. 61 (11) , 3145-3154
Abstract
Since the cache system has been a predominant part in modern SoC's and its capacity is sometimes larger than necessary for specific applications, it is desirable to enhance the role of the cache system to beyond its original purpose (performance improvement). In this paper we propose a versatile data cache, called DT (data/trace) cache, by making it to function simultaneously as a regular data cache and as a trace buffer for real time software debugging and monitoring. It is accomplished by modifying the cache organization such that a portion of the cache ways can be configured as a trace buffer during the run time. The trace buffer stores the trace produced by some trace generation hardware while the rest portion of the data cache keeps its original role. The trace can be dumped out using the existing cache write back circuitry. The integration of a DT cache with an instruction cache, an academic ARM7 processor and a trace generator has been accomplished at RTL level. The hardware overhead is very minor and does not impair the global critical path delay. For a 16 KB (8 ways, 512 lines, 8 words) DT cache with only 1 way as the trace buffer, it is capable of storing 12771 cycles of the program trace at the cost of merely 553 gates and slight increase in cache miss rate on the average. The experiments show that the DT cache is a highly cost-effective approach for real time on-chip trace buffering.Keywords
This publication has 19 references indexed in Scilit:
- Trace Buffer-Based Silicon Debug with Lossless Compression2011
- A Trace-Capable Instruction Cache for Cost-Efficient Real-Time Program Trace Compression in SoCIEEE Transactions on Computers, 2010
- Design and implementation of Performance Analysis Unit (PAU) for AXI-based multi-core System on Chip (SOC)Microprocessors and Microsystems, 2010
- Way Stealing2009
- Dynamic and application-driven I-cache partitioning for low-power embedded multitasking2009
- Exploiting producer patterns and L2 cache for timely dependence-based prefetching2008
- DRIM : A Low Power Dynamically Reconfigurable Instruction Memory Hierarchy for Embedded Systems2007
- Utility-Based Cache Partitioning: A Low-Overhead, High-Performance, Runtime Mechanism to Partition Shared Caches40th Annual IEEE/ACM International Symposium on Microarchitecture (MICRO 2007), 2006
- SCIMA: Software controlled integrated memory architecture for high performance computing2002
- A 160-MHz, 32-b, 0.5-W CMOS RISC microprocessorIEEE Journal of Solid-State Circuits, 1996