Stack caching method with overflow/underflow control using pointers
Abstract
The present invention uses a stack management unit including a stack cache to accelerate data retrieval from a stack and data storage into the stack. In one embodiment, the stack management unit includes a stack cache, a dribble manager unit, and a stack control unit. The dribble manager unit maintains a cached stack portion, typically a top portion of the stack in the stack cache. The stack cache includes a stack cache memory circuit, one or more read ports, and one or more write ports. The stack management unit also includes an overflow/underflow unit. The overflow/underflow unit detects and resolves overflow conditions and underflow conditions. If an overflow occurs the overflow/underflow unit resolves the overflow by suspending operation of the stack cache and spilling a plurality of data words from the stack cache to the stack and equating the bottom pointer to the optop pointer. Typically, the overflow/underflow unit spills all valid data words from the stack cache during an overflow. If an underflow occurs during a context switch the overflow/underflow unit resolves the underflow by spilling a plurality of data word from the stack cache to the stack and equating the bottom p
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 27 · Forward citations: 24.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for caching a stack in a stack cache having a plurality of memory locations, an optop pointer pointed at a top memory location of said stack cache, and a bottom pointer pointed at a bottom memory location of said stack cache, said method comprising: writing a new data word for said stack at said top memory location pointed at by said optop pointer; incrementing said optop pointer; spilling a first data word stored in said bottom memory pointed at by said bottom pointer from said stack cache to said stack if a spill condition exists; filling a second data word from said stack to
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 24 total)
References Cited — Backward Prior Art (27)
Non-Patent Literature (5)
- Atkinson, R.R., et al., "The Dragon Processor", Second International Conference on Architectural Support for Programming Languages and Operating Systems, No. 1987, Oct. 1987, pp. 65-69, XP000042867.
- Atkinson, R.R., et al., The Dragon Processor , Second International Conference on Architectural Support for Programming Languages and Operating Systems, No. 1987, Oct. 1987, pp. 65 69, XP000042867.
- Burnley, P: "CPU Architecture for Realtime VME Systems", Microprocessors and Microsystems, London, GB vol. 12, No. 3; April 1988; pp. 153-158; XP000002633.
- Burnley, P: CPU Architecture for Realtime VME Systems , Microprocessors and Microsystems, London, GB vol. 12, No. 3; April 1988; pp. 153 158; XP000002633.
- Electronic Engineering, vol. 61, No. 750, Jun. 1989, p 79, XP000033120, "Up Pops A 32Bit Stack Microprocessor."