AMD K5 User Manual Page 46

  • Download
  • Add to my manuals
  • Print
  • Page
    / 100
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 45
36
AMD-K5 Processor Data Sheet 18522F/0Jan1997
PRELIMINARY INFORMATION
Instruction Cache
Coherency
The instruction cache protocol is a subset of the data cache
protocol where only Invalid and Shared states are imple-
mented. Read hits provide the data to the processor. Read
misses result in a read allocate operation that loads the line
into the cache and the data is provided to the processor. The
first data is provided as soon as it arrives from memory.
Write cycles are never generated to the instruction cache, but
inquire cycles may hit in the instruction cache, resulting in the
cache line being invalidated.
Self-Modifying Code
and the Cache
A snoop write hit to the instruction cache is treated as self-
modifying code. The cache line is invalidated and all instruc-
tions in the instruction pipeline are flushed. Execution restarts
at the instruction following the one causing the snoop. This
guarantees exact execution of cacheable self-modifying code.
For non-cacheable code, a jump should be placed between the
modification of the code and its execution.
8.5 External Bus Description
The AMD-K5 processor external bus is identical to the P54C
64-bit bus, and will run at 1.5x or 2.0x multiples of the external
bus frequency. The bus state transitions are illustrated in
Figure 4.
Table 10. Inquire Cycles to Data Cache
State INV Next State Note
M
0 S Snoop hit to modified line:
Assert HIT and HITM, Write back modified data to
memory, Negate HITM, Transition cache state when
complete.
1I
E
0S
Snoop hit to unmodified line:
Assert HIT, Transition cache state
1I
S
0S
Snoop hit to unmodified line:
Assert HIT
, Transition cache state
1I
I x I Snoop miss: Negate HIT
.
Page view 45
1 2 ... 41 42 43 44 45 46 47 48 49 50 51 ... 99 100

Comments to this Manuals

No comments