IP Library Granted Patent US 12,461,749
Granted Patent B2
US 12,461,749 · App. 18/567,905 · Granted Nov 4, 2025

Instruction execution method, processor and electronic apparatus

Inventor: He Huang (Tianjin, CN)
Assignee: HYGON INFORMATION TECHNOLOGY CO., LTD.
G06F9/30189G06F9/30098G06F9/3867
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 12,461,749
App. No.
18/567,905
Granted
Nov 4, 2025
Kind
B2
Abstract

An instruction execution method, a processor and an electronic apparatus. The instruction execution method includes: switching a pipeline architecture of the processor between a first instruction execution mode and a second instruction execution mode according to a selection signal, wherein the first instruction execution mode supports N threads and is suitable for a first general-purpose register set of an instruction set; the second instruction execution mode supports M threads and is suitable for a second general-purpose register set of the instruction set, the first general-purpose register set is less than the second general-purpose register set, M and N are positive integers, and N is greater than M.

Claims (46)

1 . An instruction execution method for a processor, comprising:

switching a pipeline architecture of the processor between a first instruction execution mode and a second instruction execution mode according to a selection signal,

wherein:

the first instruction execution mode supports N threads and is suitable for a first general-purpose register set of an instruction set, and the second instruction execution mode supports M thread or threads and is suitable for a second general-purpose register set of the instruction set,

the first general-purpose register set is smaller than the second general-purpose register set, M and N are positive integers, and N is greater than M, and

the switching the pipeline architecture of the processor between the first instruction execution mode and the second instruction execution mode according to the selection signal comprises:

in response to a first selection sub-signal for switching from the first instruction execution mode to the second instruction execution mode, combining N first-type register renaming mapping tables for the N threads to obtain M second-type register renaming mapping tables for the M threads, and

in response to a second selection sub-signal for switching from the second instruction execution mode to the first instruction execution mode, splitting the M second-type register renaming mapping tables for the M threads to obtain the N first-type register renaming mapping tables for the N threads,

wherein each of the second-type register renaming mapping tables includes at least two first-type register renaming mapping tables, and the selection signal includes the first selection sub-signal and the second selection sub-signal.

2 . The instruction execution method according to claim 1 , wherein the switching the pipeline architecture of the processor between the first instruction execution mode and the second instruction execution mode according to the selection signal further comprises:

using the selection signal to control a multiplex selection device to perform the switching between the N first-type register renaming mapping tables for the N threads and the M second-type register renaming mapping tables for the M threads.

3 . The instruction execution method according to claim 1 , wherein the first-type register renaming mapping tables and the second-type register renaming mapping tables are each of a random addressed memory architecture.

4 . The instruction execution method according to claim 1 , wherein the first general-purpose register set is a non-extended general-purpose register set of the instruction set, and the second general-purpose register set is an extended general-purpose register set of the instruction set.

5 . The instruction execution method according to claim 4 , wherein the instruction set comprises a complex instruction set or a reduced instruction set.

6 . The instruction execution method according to claim 1 , wherein M is 1, and N is 2, 4, or 8.

7 . The instruction execution method according to claim 6 , wherein a number of general-purpose registers in the first general-purpose register set is ½, ¼, or ⅛ of a number of general-purpose registers in the second general-purpose register set.

8 . A processor, comprising:

a pipeline architecture, and

a switching unit configured to switch the pipeline architecture of the processor between a first instruction execution mode and a second instruction execution mode according to a selection signal,

wherein:

the first instruction execution mode supports N threads and is suitable for a first general-purpose register set of an instruction set, and the second instruction execution mode supports M thread or threads and is suitable for a second general-purpose register set of the instruction set,

the first general-purpose register set is smaller than the second general-purpose register set, M and N are positive integers, and N is greater than M,

the pipeline architecture comprises N first-type register renaming mapping tables for the N threads, and

switching the pipeline architecture of the processor between the first instruction execution mode and the second instruction execution mode according to the selection signal comprises:

in response to a first selection sub-signal for switching from the first instruction execution mode to the second instruction execution mode, combining N first-type register renaming mapping tables for the N threads to obtain M second-type register renaming mapping tables for the M threads, and

in response to a second selection sub-signal for switching from the second instruction execution mode to the first instruction execution mode, splitting the M second-type register renaming mapping tables for the M threads to obtain the N first-type register renaming mapping tables for the N threads,

wherein each of the second-type register renaming mapping tables includes at least two first-type register renaming mapping tables, and the selection signal includes the first selection sub-signal and the second selection sub-signal.

9 . The processor according to claim 8 , wherein the switching unit comprises a multiplex selection device and is configured to use the selection signal to control the multiplex selection device to perform switching between the N first-type register renaming mapping tables for the N threads and the M second-type register renaming mapping tables for the M threads.

10 . The processor according to claim 8 , wherein the first-type register renaming mapping tables and the second-type register renaming mapping tables are each of a random addressed memory architecture.

11 . The processor according to claim 8 , wherein M is 1, and N is 2, 4, or 8.

12 . The processor according to claim 11 , wherein a number of general-purpose registers in the first general-purpose register set is ½, ¼, or ⅛ of a number of general-purpose registers in the second general-purpose register set.

13 . An electronic apparatus, comprising a processor, and the processor comprising:

a pipeline architecture, and

a switching unit configured to switch the pipeline architecture of the processor between a first instruction execution mode and a second instruction execution mode according to a selection signal,

wherein:

the first instruction execution mode supports N threads and is suitable for a first general-purpose register set of an instruction set, and the second instruction execution mode supports M thread or threads and is suitable for a second general-purpose register set of the instruction set,

the first general-purpose register set is smaller than the second general-purpose register set, M and N are positive integers, and N is greater than M,

the pipeline architecture comprises N first-type register renaming mapping tables for the N threads, and

switching the pipeline architecture of the processor between the first instruction execution mode and the second instruction execution mode according to the selection signal comprises:

in response to a first selection sub-signal for switching from the first instruction execution mode to the second instruction execution mode, combining N first-type register renaming mapping tables for the N threads to obtain M second-type register renaming mapping tables for the M threads, and

in response to a second selection sub-signal for switching from the second instruction execution mode to the first instruction execution mode, splitting the M second-type register renaming mapping tables for the M threads to obtain the N first-type register renaming mapping tables for the N threads,

wherein each of the second-type register renaming mapping tables includes at least two first-type register renaming mapping tables, and the selection signal includes the first selection sub-signal and the second selection sub-signal.

14 . The electronic apparatus according to claim 13 , wherein the switching unit comprises a multiplex selection device and is configured to use the selection signal to control the multiplex selection device to perform switching between the N first-type register renaming mapping tables for the N threads and the M second-type register renaming mapping tables for the M threads.

15 . The electronic apparatus according to claim 13 , wherein the first-type register renaming mapping tables and the second-type register renaming mapping tables are each of a random addressed memory architecture.

16 . The electronic apparatus according to claim 13 , wherein M is 1, and N is 2, 4, or 8.

17 . The electronic apparatus according to claim 16 , wherein a number of general-purpose registers in the first general-purpose register set is ½, ¼, or ⅛ of a number of general-purpose registers in the second general-purpose register set.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 7, 2023
From: HUANG, HE
To: HYGON INFORMATION TECHNOLOGY CO., LTD.
Reel/Frame 065796/0789 →
Priority Claims (1)
CN 202111498042.9 · Dec 9, 2021 · national
Continuity (1)
Related Publication 20240272909A1 · Aug 15, 2024
References Cited (13)
US 7290261B2 · Burky · 2007 [cited by examiner]
US 8245016B2 · Bybell · 2012 [cited by applicant]
US 10732976B2 · Robertson · 2020 [cited by examiner]
US 20080250226A1 · Eickemeyer · 2008 [cited by examiner]
US 20120221796A1 · Tran · 2012 [cited by examiner]
US 20150347308A1 · Venkumahanti · 2015 [cited by examiner]
US 20190065399A1 · Guthrie · 2019 [cited by examiner]
CN 1306642A · 2001 [cited by applicant]
CN 1577260A · 2005 [cited by applicant]
CN 101201732A · 2008 [cited by applicant]
CN 114168197A · 2022 [cited by applicant]
Extended European Search Report dated Oct. 10, 2024 for European application No. 22902725.5, 8 pages. [cited by applicant]
Examination report for European Patent Application No. 22902725.5, dated May 8, 2025, 8 pages. [cited by applicant]