Electronic apparatus and method for reducing number of commands
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-modifiedWhat 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; performing a first combination operation to organize the original register setting commands into a middle command group after sorting is completed, wherein the first combination operation comprises combining a plurality of setting commands with the setting targets having addresses of a same register in the original register setting commands into a combined register setting command; and performing a second combination operation to organize the middle command group into a merged command group, wherein the second combination operation comprises combining a plurality of register setting commands with the setting targets having continuous addresses of a plurality of registers in the middle command group into the at least one merged register setting command.
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 . 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, the central processor performs a first combination operation to organize the original register setting commands into a middle command group after sorting is completed, wherein the first combination operation comprises combining a plurality of setting commands with the setting targets having addresses of a same register in the original register setting commands into a combined register setting command; and the central processor performs a second combination operation to organize the middle command group into a merged command group, wherein the second combination operation comprises combining a plurality of register setting commands with the setting targets having continuous addresses of a plurality of registers in the middle command group into the at least one merged register setting command.
4 . The electronic apparatus according to claim 3 , wherein the co-processor comprises a graphic processor, and the at least one register is configured to store at least one drawing parameter.Join the waitlist — get patent alerts
Track US2023205542A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.