IP Library › Granted Patent US 11,281,586
Granted Patent B2
US 11,281,586 · App. 15/591,074 · Granted Mar 22, 2022

Processor and way prediction method thereof

Inventors: Kun-Ho Liu (New Taipei, TW); Chieh-Jen Cheng (Kaohsiung, TW); Chuan-Hua Chang (Taipei, TW); I-Cheng Kevin Chen (Taipei, TW)
Assignee: ANDES TECHNOLOGY CORPORATION
G06F12/0862G06F9/3806G06F12/0875G06F12/122G06F12/0864G06F2212/1024G06F2212/1028G06F2212/452G06F2212/6082G06N20/00
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,281,586
App. No.
15/591,074
Granted
Mar 22, 2022
Kind
B2
Abstract

The invention provides a processor including a prediction table, a prediction logic circuit, and a prediction verification circuit. The prediction table has a plurality of sets respectively corresponding to a plurality of cache sets of a cache memory in the cache system, each of the sets has a plurality of confidence values, and the prediction table provides the confidence values of a selected set according to the index. The prediction logic circuit receives the confidence values of the selected set, and generates a prediction result by judging whether each of the confidence values of the selected set is larger than a threshold value or not. The prediction verification circuit receives the prediction result, generates a correct/incorrect information according to the prediction result, and generates an update information according to the correct/incorrect information. Wherein, the prediction verification circuit updates the confidence values of the prediction table according to the update information.

Claims (18)

1. A processor, comprising:

a prediction table, having a plurality of sets respectively corresponding to a plurality of cache sets of a cache memory, and each of the sets having a plurality of confidence values, wherein the prediction table receives an index corresponding to a selected cache set of the cache memory, and provides the confidence values of a selected set according to the index;

a prediction logic circuit, coupled to the prediction table, receiving the confidence values of the selected set, and generating a prediction result by judging whether each of the confidence values of the selected set is larger than a threshold value or not to predict whether the corresponding way is to be opened or not for way prediction; and

a prediction verification circuit, coupled to the cache memory, the prediction logic circuit and the prediction table, receiving the prediction result, generating a correct/incorrect infoi nation according to the prediction result, and generating an update information according to the correct/incorrect information,

wherein, the prediction verification circuit updates the confidence values of the prediction table according to the update information.

2. The processor as claimed in claim 1 , wherein the prediction logic circuit predicts at least one of the ways of the selected cache set to be at least one opened way according to the confidence values of the selected set, and the prediction verification circuit compares a tag of the at least one opened way with an expected tag to generate the correct/incorrect information.

3. The processor as claimed in claim 2 , wherein the prediction verification circuit sets the confidence value of a correct way to a pre-set value and decrease the confidence values of a plurality of incorrect ways by a step value.

4. The processor as claimed in claim 3 , wherein the pre-set value is larger than the step value.

5. The processor as claimed in claim 3 , wherein the threshold value is smaller than the pre-set value.

6. The processor as claimed in claim 3 , wherein if the confidence value of an incorrect way is at a minimum value, the confidence value of the incorrect way is not decreased.

7. The processor as claimed in claim 1 , wherein the index is generated according to a program counter of the processor or an address of accessed data.

8. The processor as claimed in claim 7 , wherein if the index is generated according to the address of the accessed data, the index is generated by a hash operation on a base part of the address and an offset part of the address.

9. A way prediction method, adapted for a processor, comprising:

setting a prediction table, wherein the prediction table has a plurality of sets respectively corresponding to a plurality of cache sets of a cache memory in a cache system, and each of the sets has a plurality of confidence values;

receiving an index corresponding to a selected cache set of the cache memory, and providing the confidence values of a selected set according to the index by the prediction table;

receiving the confidence values of the selected set, and generating a prediction result by judging whether each of the confidence values of the selected set is larger than a threshold value or not to predict whether the corresponding way is to be opened or not for way prediction;

receiving the prediction result, generating a correct/incorrect information according to the prediction result, and generating an update information according to the correct/incorrect information; and

updating the confidence values of the prediction table according to the update information.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 11, 2017
From: LIU, KUN-HO; CHENG, CHIEH-JEN; CHANG, CHUAN-HUA; CHEN, I-CHENG KEVIN
To: ANDES TECHNOLOGY CORPORATION
Reel/Frame 042332/0970 →
Continuity (1)
Related Publication 20180330259A1 · Nov 15, 2018
Cited By (1)
US 12,625,704