Patent ID: 6401192
Filing Date: 2002-06-04
Classification: G06F

Abstract:
An apparatus for software hint initiated prefetch comprising:circuitry operable for issuing at least one prefetch request to one or more memory devices in response to a software instruction, said circuitry including at least one first register having a plurality of fields each operable for receiving a corresponding data value, each data value specifying a parameter for controlling said prefetch, wherein said circuitry comprises at least one prefetch engine, each prefetch engine being operable for issuing one of said at least one prefetch request, each said prefetch engine including one of said at least one first register, and wherein each prefetch engine further comprises a prefetch control state machine, wherein in each prefetch engine further comprises circuitry operable for detecting an end of prefetch, and wherein in said circuitry operable for detecting an end of prefetch comprises: a second register operable for containing a count representing a number of cache lines currently prefetched, said second register being operable for resetting by said prefetched control state machine; comparison logic coupled to said second register operable for receiving therefrom said number of cache lines currently prefetched, said comparison logic being operable for receiving a number of cache lines to be prefetched from said first register, wherein said comparison logic outputs a prefetch done signal if said number of cache lines currently prefetched equals said number of cache lines to be prefetched; and incrementing circuitry operable for incrementing said number of cache lines currently prefetched, said incrementing circuitry being operable for inputting an incremented number of cache lines into said second register.