US12236270B2ActiveUtilityA1

Multi-tasking chip and resource control management method thereof

46
Assignee: REALTEK SEMICONDUCTOR CORPPriority: Oct 12, 2020Filed: Oct 7, 2021Granted: Feb 25, 2025
Est. expiryOct 12, 2040(~14.3 yrs left)· nominal 20-yr term from priority
Inventors:Tsan-Lin Chen
G06F 2209/503G06F 21/44G06F 2221/2141G06F 21/71G06F 9/5011G06F 9/5005G06F 9/468
46
PatentIndex Score
0
Cited by
6
References
14
Claims

Abstract

An integrated circuit includes a plurality of control circuits and a resource controller. Each of the control circuits is configured to send a work request, execute a work procedure according to an authorization code corresponding to the work procedure, and generate a completion signal after the work procedure is completed. The resource controller includes a storage circuit stores a plurality of index values; a processor circuit updates, according to each of the completion signals, a status of the index value associated with the authorization code corresponding to the work procedure; and a conversion circuit configured to, in response to each of the work requests, output, when a status of at least one of the index values is resource-available, an authorization code associated with one index value whose status is resource-available.

Claims

exact text as granted — not AI-modified
What is claimed is: 
     
       1. An integrated circuit, comprising:
 a plurality of control circuits, wherein each of the control circuits sends a work request, execute a work procedure according to an authorization code corresponding to the work procedure, and generate a completion signal corresponding to the authorization code after the work procedure is completed; and 
 a resource controller coupled to the control circuits comprising:
 a storage circuit stores a plurality of index values, wherein each of the index values is associated with one of the authorization codes; 
 a processor circuit coupled to the storage circuit and updates, according to each of the completion signals, a status of the index value associated with the authorization code corresponding to the work procedure; and 
 a conversion circuit coupled to the storage circuit and the processor circuit, and in response to each of the work requests, outputs, when the status of at least one of the index values is resource-available, the authorization code associated with the index value having a status that is resource-available, and output no authorization code when the status of none of the index values is resource-available; 
 wherein, the conversion circuit has a comparison table used to respectively associate the index values with different authorization codes, detects the status of each of the index values in response to each of the work requests, selects, when the status of at least one of the index values is resource-available, one of the index values whose status is resource-available, obtains the authorization code associated with the selected index value according to the selected index value and the comparison table, and outputs the authorization code associated with the selected index value to the control circuit corresponding to the corresponding work request to which a response is made; 
 wherein, the resource controller further comprises a cyclic circuit coupled to the storage circuit and the conversion circuit, and the conversion circuit cyclically selects, through the cyclic circuit, one of the index values that are resource-available and with which the authorization code is output to the control circuits for a smaller number of times compared to other index values that are resource-available; 
 
 wherein, when the authorization code associated with each of the index values that are resource-available is output to the control circuits for the same number of times, the conversion circuit randomly selects, through the cyclic circuit, one of the index values that are resource-available. 
 
     
     
       2. The integrated circuit according to  claim 1 , wherein each of the index values has one bit, and a number of bits of each of the authorization codes is greater than a number of bits of each of the index values. 
     
     
       3. The integrated circuit according to  claim 1 , wherein when the conversion circuit outputs the authorization code, the processor circuit changes, to resource-unavailable, the status of the index value associated with the current outputted authorization code. 
     
     
       4. The integrated circuit according to  claim 1 , wherein the processor circuit updates, to resource-available according to each of the completion signals, the status of the index value associated with the authorization code corresponding to the work procedure. 
     
     
       5. The integrated circuit according to  claim 1 , further comprising a chip circuit coupled to the control circuits, wherein each of the control circuits executes the work procedure according to the authorization code corresponding to the work procedure, to control operation of the chip circuit. 
     
     
       6. The integrated circuit according to  claim 1 , wherein each of the control circuits sends the work request at a different time point. 
     
     
       7. The integrated circuit according to  claim 1 , wherein each of the control circuits generates the completion signal corresponding to the authorization code and sends another work request after the work procedure is completed. 
     
     
       8. A resource control management method for multi-tasking, adapted to a chip, wherein the chip comprises a plurality of control circuits and a resource controller, and the resource control management method for multi-tasking comprises:
 sending, by each of the control circuits, a work request; 
 storing, by a storage circuit of the resource controller, a plurality of index values, wherein each of the index values has one bit and is associated with one of a plurality of authorization codes; 
 responding, by a conversion circuit of the resource controller, to each of the work requests; 
 outputting, by the conversion circuit when a status of at least one of the index values is resource-available, the authorization code associated with one of the index values whose status is resource-available to the control circuit corresponding to the corresponding work request to which a response is made; 
 stopping, by the conversion circuit, outputting any authorization code when the status of none of the index values is resource-available; 
 executing, by the control circuit receiving the authorization code, a work procedure according to the authorization code corresponding to the work procedure; 
 generating, by the corresponding control circuit, a completion signal corresponding to the authorization code after the work procedure is completed; and 
 updating, by a processor circuit of the resource controller according to each of the completion signals, the status of the index value associated with the authorization code corresponding to the work procedure; 
 wherein the conversion circuit has a comparison table used to respectively associate the index values with different authorization codes, and the resource control management method for multi-tasking further comprises:
 detecting, by the conversion circuit of the resource controller, the status of each of the index values in response to each of the work requests; 
 selecting, by the conversion circuit when the status of at least one of the index values is resource-available, one of the index values whose status is resource-available; 
 obtaining, by the conversion circuit according to the selected index value and the comparison table, the authorization code associated with the selected index value; and 
 outputting the authorization code associated with the selected index value to the control circuit corresponding to the corresponding work request to which a response is made 
 
 wherein the step of selecting, by the conversion circuit when the status of at least one of the index values is resource-available, one of the index values whose status is resource-available further comprises:
 cyclically selecting, by the conversion circuit through a cyclic circuit of the resource controller, one of the index values that are resource-available and with which the authorization code is output to the control circuits for a smaller number of times compared to other index values that are resource-available; and 
 randomly selecting, by the conversion circuit through the cyclic circuit, one of the index values that are resource-available when the authorization code associated with each of the index values that are resource-available is output to the control circuits for the same number of times. 
 
 
     
     
       9. The resource control management method for multi-tasking according to  claim 8 , wherein a number of bits of each of the authorization codes is greater than a number of bits of each of the index values. 
     
     
       10. The resource control management method for multi-tasking according to  claim 8 , further comprising:
 changing, to resource-unavailable by the processor circuit of the resource controller when the conversion circuit outputs the authorization code, the status of the index value associated with the current outputted authorization code. 
 
     
     
       11. The resource control management method for multi-tasking according to  claim 8 , wherein the step of updating, by the processor circuit of the resource controller according to each of the completion signals, the status of the index value associated with the authorization code corresponding to the work procedure further comprises:
 updating, to resource-available according to each of the completion signals, the status of the index value associated with the authorization code corresponding to the work procedure. 
 
     
     
       12. The resource control management method for multi-tasking according to  claim 8 , wherein the chip further comprises a chip circuit, and the resource control management method for multi-tasking further comprises:
 executing, by the control circuit receiving the authorization code, the work procedure corresponding to the authorization code, to control operation of the chip circuit. 
 
     
     
       13. The resource control management method for multi-tasking according to  claim 8 , further comprising:
 sending, by each of the control circuits, the work request at a different time point. 
 
     
     
       14. The resource control management method for multi-tasking according to  claim 8 , further comprising:
 generating, by the corresponding control circuit, the completion signal corresponding to the authorization code, and sending another work request after the work procedure is completed.

Cited by (0)

No later patents cite this yet.

References (0)

No backward citations on record.