17.05.2015 Views

TI486 Microprocessor - Al Kossow's Bitsavers

TI486 Microprocessor - Al Kossow's Bitsavers

TI486 Microprocessor - Al Kossow's Bitsavers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Register Set<br />

Cache Test Registers<br />

Table 2-16. TR3-TR5 Bit Definitions<br />

REGISTER<br />

NAME<br />

The <strong>TI486</strong> on-chip cache can be configured either as a direct-mapped (256<br />

entries) or as a two-way set associative memory (128 entries per set). Each<br />

entry consists of a 23-bit tag, 32-bit data field, four valid bits, and an LRU bit.<br />

The 23-bit tag represents the high-order 23 bits of the physical address. The<br />

32-bit data represents the four bytes of data currently in memory at the<br />

physical address represented by the tag. The four valid bits indicate which of<br />

the four data bytes contain valid data. The LRU bit is accessed only when the<br />

cache is configured as two-way set associative and indicates which of the two<br />

sets was most recently accessed.<br />

The <strong>TI486</strong> contains three test registers that allow testing of its internal cache.<br />

Using these registers, cache test writes and reads may be performed. Cache<br />

test writes cause the data in TR3 to be written to the selected set and entry in<br />

the cache. Cache test reads allow inspection of the data, valid bits and the LRU<br />

bit for the cache entry. For data to be written to the allocated entry, the valid<br />

bits for the entry must be set prior to the write of the data. Bit definitions for the<br />

cache test registers are shown in Table 2-16.<br />

BIT<br />

POSITION<br />

DESCRIPTION<br />

TR3 31-10 Cache data.<br />

Cache read: data accessed from the cache.<br />

Cache write: to be written into the cache.<br />

TR4 31-9 Tag address.<br />

Cache read: tag address from which data is read.<br />

Cache write: data written into the tag address of the selected line.<br />

7 LRU<br />

Cache read: the LRU bit associated with the cache line.<br />

Cache write: ignored.<br />

6-3 Valid bits<br />

Cache reads: four valid bits for the accessed line, (one bit per byte).<br />

Cache writes: valid bits written into the line.<br />

TR5 10-4 Line selection. Selects one of 128 lines.<br />

2 Set selection<br />

If=O: set 0 is selected<br />

If=1: set 1 is selected<br />

1-0 Control bits. These bits control reading or writing the cache.<br />

If=OO: Ignored<br />

If=01: Cache write<br />

If=10: Cache read<br />

If=11: Cache flush (marks all entries as invalid).<br />

2-36 Programming Interface

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!