US2023205541A1PendingUtilityA1

Electronic apparatus and method for reducing number of commands

70
Assignee: GLENFLY TECH CO LTDPriority: Aug 28, 2020Filed: Mar 1, 2023Published: Jun 29, 2023
Est. expiryAug 28, 2040(~14.1 yrs left)· nominal 20-yr term from priority
G06F 9/3881G06F 9/3853G06F 9/3877G06F 9/30018G06F 7/24G06F 9/30098G06F 7/36G06F 7/16G06T 1/20G06F 9/30181
70
PatentIndex Score
0
Cited by
0
References
0
Claims

Abstract

An electronic apparatus and a method for reducing the number of commands are provided. The electronic apparatus includes a central processor and a co-processor. The central processor generates a plurality of original register setting commands to set at least one bit of at least one register of the co-processor. The original register setting commands include a plurality of first original register setting commands, and a plurality of setting targets of the first original register setting commands have address continuity. The central processor merges the first original register setting commands to generate at least one merged register setting command. The central processor transmits the at least one merged register setting command to the co-processor.

Claims

exact text as granted — not AI-modified
What is claimed is: 
     
         1 . A method for reducing the number of commands, adapted for reducing the number of a plurality of register setting commands, the method comprising:
 generating a plurality of original register setting commands by a central processor, wherein each of the original register setting commands is adapted to set at least one bit of at least one register of a co-processor, the original register setting commands comprise a plurality of first original register setting commands, and a plurality of setting targets of the first original register setting commands have address continuity;   merging the first original register setting commands to generate at least one merged register setting command by the central processor; and   transmitting the at least one merged register setting command to the co-processor by the central processor,   wherein the operation of merging the first original register setting commands comprises:   sorting the original register setting commands according to addresses of the setting targets of the original register setting commands; and   combining the first original register setting commands with the setting targets having continuous addresses of a plurality of registers into the at least one merged register setting command after sorting is completed.   
     
     
         2 . The method for reducing the number of commands according to  claim 1 , wherein the co-processor comprises a graphic processor, and the at least one register is configured to store at least one drawing parameter. 
     
     
         3 . The method for reducing the number of commands according to  claim 1 , wherein the operation of merging the first original register setting commands comprises:
 initializing at least one buffer region, wherein the at least one buffer region corresponds to the at least one register of the co-processor in a one-to-one manner;   performing pseudo execution on the original register setting commands to correspondingly fill in the at least one buffer region with a plurality of setting values of the original register setting commands by the central processor; and   scanning the at least one buffer region after the pseudo execution of the original register setting commands is completed, so as to convert a same buffer region filled with the setting value in the at least one buffer region into the at least one merged register setting command or convert a plurality of buffer regions filled with the setting values and having continuous addresses in the at least one buffer region into the at least one merged register setting command.   
     
     
         4 . An electronic apparatus, comprising:
 a co-processor, comprising at least one register; and   a central processor, coupled to the co-processor, configured to generate a plurality of original register setting commands, wherein each of the original register setting commands is adapted to set at least one bit of the at least one register of the co-processor, the original register setting commands comprise a plurality of first original register setting commands, a plurality of setting targets of the first original register setting commands have address continuity, the central processor merges the first original register setting commands to generate at least one merged register setting command, and the central processor transmits the at least one merged register setting command to the co-processor,   wherein the central processor sorts the original register setting commands according to addresses of the setting targets of the original register setting commands, and   the central processor combines the first original register setting commands with the setting targets having continuous addresses of a plurality of registers into the at least one merged register setting command after sorting is completed.   
     
     
         5 . The electronic apparatus according to  claim 4 , wherein the co-processor comprises a graphic processor, and the at least one register is configured to store at least one drawing parameter. 
     
     
         6 . The electronic apparatus according to  claim 4 , wherein
 the central processor initializes at least one buffer region, wherein the at least one buffer region corresponds to the at least one register of the co-processor in a one-to-one manner;   the central processor performs pseudo execution on the original register setting commands to correspondingly fill in the at least one buffer region with a plurality of setting values of the original register setting commands, and   the central processor scans the at least one buffer region after the pseudo execution of the original register setting commands is completed, so as to convert a same buffer region filled with the setting value in the at least one buffer region into the at least one merged register setting command or convert a plurality of buffer regions filled with the setting values and having continuous addresses in the at least one buffer region into the at least one merged register setting command.

Cited by (0)

No later patents cite this yet.

References (0)

No backward citations on record.