Search

EP-4738123-A1 - METHOD FOR RESETTING HARDWARE UNIT IN INTEGRATED CIRCUIT AND INTEGRATED CIRCUIT

EP4738123A1EP 4738123 A1EP4738123 A1EP 4738123A1EP-4738123-A1

Abstract

Disclosed are a method and an apparatus for resetting a hardware unit in an integrated circuit. When it is detected that a first hardware unit in a first operating system needs to be reset, before the first hardware unit is reset, based on a working status of an interface between the first hardware unit and a bus, an adjustment strategy is determined for a data channel between a second hardware unit in a second operating system that shares the bus with the first operating system and the first hardware unit. In this case, by adjusting a flow control status of the data channel, an unfinished access request between the first hardware unit and the second hardware unit is completed, and transmission of a new access request generated by the first hardware unit to the bus is intercepted.

Inventors

  • XU, ZUO
  • YU, JIANFENG

Assignees

  • XG TECH PTE. LTD.

Dates

Publication Date
20260506
Application Date
20250416

Claims (15)

  1. A method for resetting a hardware unit in an integrated circuit, characterized in that the method for resetting a hardware unit in an integrated circuit comprises: reading (41) a status of a reset signal from a register, wherein the reset signal requests to reset a first hardware unit, and the first hardware unit corresponds to a first operating system; determining (42) a working status of an interface between the first hardware unit and a bus based on the status of the reset signal; determining (43) adjustment strategies for two or more data channels between the first hardware unit and a second hardware unit based on the working status of the interface, wherein the second hardware unit corresponds to a second operating system; adjusting (44) a flow control status of the data channel based on the adjustment strategy; and resetting (45) the first hardware unit based on the working status of the interface after adjusting the flow control status of the data channel.
  2. The method for resetting a hardware unit in an integrated circuit according to claim 1, wherein the determining (42) a working status of an interface between the first hardware unit and a bus based on the status of the reset signal comprises: determining (421) the number of first access requests in response to that the status of the reset signal is a first preset status, wherein the first access request is an access request of which the transmission is not finished among access requests for the first hardware unit to request to access the second hardware unit; and determining (422) the working status of the interface based on the number of the first access requests.
  3. The method for resetting a hardware unit in an integrated circuit according to claim 2, wherein the determining (422) the working status of the interface based on the number of the first access requests comprises: determining (4221) a request type of the first access requests; determining (4222) the number of the requests corresponding to the request type of the first access requests; and determining (4223) the working status of the interface based on the number of the requests.
  4. The method for resetting a hardware unit in an integrated circuit according to any one of claims 1 to 3, wherein the determining (43) adjustment strategies for two or more data channels between the first hardware unit and a second hardware unit based on the working status of the interface comprises: determining (431) a first data channel and a second data channel from the two or more data channels based on the working status of the interface; and determining (432) the adjustment strategies corresponding to the first data channel and the second data channel, respectively.
  5. The method for resetting a hardware unit in an integrated circuit according to claim 4, wherein the determining (431) a first data channel and a second data channel from the two or more data channels based on the working status of the interface comprises: determining an operation type corresponding to the first access request in response to that the working status of the interface is a second preset status; and determining the first data channel and the second data channel from the two or more data channels based on the operation type.
  6. The method for resetting a hardware unit in an integrated circuit according to claim 5, wherein the determining the first data channel and the second data channel from the two or more data channels based on the operation type comprises: determining, based on that the operation type is a write operation type, a magnitude relationship between the number of write command requests and the number of write data requests in the first access requests; and determining the first data channel and the second data channel from the two or more data channels based on the magnitude relationship.
  7. The method for resetting a hardware unit in an integrated circuit according to claim 4, wherein the determining (431) a first data channel and a second data channel from the two or more data channels based on the working status of the interface comprises: determining, based on that the working status of the interface is a third preset status, all data channels in the two or more data channels as the first data channel.
  8. The method for resetting a hardware unit in an integrated circuit according to any one of claims 1 to 3, wherein the resetting (45) the first hardware unit based on the working status of the interface after adjusting the flow control status of the data channel comprises: reading (451) a first duration from the register; determining (452) a matching relationship between the working status of the interface after adjusting the flow control status of the data channel and a third preset status during the first duration; and resetting (453), based on the matching relationship, the first hardware unit.
  9. The method for resetting a hardware unit in an integrated circuit according to claim 8, wherein the resetting (453), based on the matching relationship, the first hardware unit comprises: processing (4531) a logic status of the interface as a preset logic status based on that the matching relationship indicates that the working status of the interface after adjusting the flow control status of the data channel matches the third preset status; and resetting (4532) the first hardware unit.
  10. An integrated circuit, characterized in that the integrated circuit comprises: a first hardware unit corresponding to a first operating system; a second hardware unit corresponding to a second operating system; a reset security module corresponding to the first hardware unit; and a register storing a status of a reset signal, wherein the reset signal requests to reset the first hardware unit, wherein the reset security module is configured to read the status of the reset signal from the register.
  11. The integrated circuit according to claim 10, wherein the reset security module is further configured to determine a working status of an interface between the first hardware unit and a bus based on the status of the reset signal.
  12. The integrated circuit according to claim 10, wherein the reset security module is further configured to determine adjustment strategies for two or more data channels between the first hardware unit and the second hardware unit based on the working status of the interface.
  13. The integrated circuit according to claim 10, wherein the reset security module is further configured to adjust a flow control status of the data channel based on the adjustment strategy; and to reset the first hardware unit based on the working status of the interface after adjusting the flow control status of the data channel.
  14. A computer readable storage medium, wherein the storage medium stores a computer program, and the computer program is used for implementing the method for resetting a hardware unit in an integrated circuit according to any one of claims 1 to 9.
  15. An electronic device, characterized in that the electronic device comprises: a processor (1011); and a memory (1012), configured to store processor-executable instructions, wherein the processor (1011) is configured to read the executable instructions from the memory (1012), and execute the instructions to implement the method for resetting a hardware unit in an integrated circuit according to any one of claims 1 to 9; or the electronic device comprises the integrated circuit (101) according to claim 10.

Description

FIELD OF THE INVENTION This disclosure relates to the technical field of integrated circuits, and in particular, to a method for resetting a hardware unit in an integrated circuit and an integrated circuit. BACKGROUND OF THE INVENTION A system on chip (SoC), also referred to as an integrated circuit, may include a plurality of hardware units that can support running of a plurality of operating systems (OS), so that the plurality of operating systems can run on the integrated circuit. When running the corresponding operating systems respectively, the plurality of hardware units may share some hardware resources in the integrated circuit, such as a bus. In other words, the plurality of hardware units may access each other through the bus. When an exception occurs in the operating system, the hardware unit that causes the anomaly ("abnormal hardware unit" for short below) may be reset to restore normal operation of the operating system that has the anomaly ("abnormal operating system" for short below). SUMMARY OF THE INVENTION During resetting of an abnormal hardware unit in an abnormal operating system, an anomaly may be caused to a bus because an access request of which the transmission is not finished cannot be processed properly, and the abnormal hardware unit may continue to transmit a new access request to the bus. As a result, anomalies occur to the bus, causing anomalies to other hardware units sharing the bus, which further causes anomalies to operating systems running through the other hardware units. To resolve the foregoing technical problem, this disclosure provides a method for resetting a hardware unit in an integrated circuit and an integrated circuit, which can resolve a problem that during resetting of an abnormal hardware unit in an abnormal operating system, anomalies occur to other hardware units sharing a bus, and anomalies may also occur to operating systems running through the other hardware units. According to a first aspect of this disclosure, a method for resetting a hardware unit in an integrated circuit is provided, including: reading a status of a reset signal from a register, where the reset signal requests to reset a first hardware unit, and the first hardware unit corresponds to a first operating system; determining a working status of an interface between the first hardware unit and a bus based on the status of the reset signal; determining adjustment strategies for two or more data channels between the first hardware unit and a second hardware unit based on the working status of the interface, wherein the second hardware unit corresponds to a second operating system; adjusting a flow control status of the data channel based on the adjustment strategy; and resetting the first hardware unit based on the working status of the interface after adjusting the flow control status of the data channel. According to a second aspect of this disclosure, an integrated circuit is provided, including: a first hardware unit corresponding to a first operating system; a second hardware unit corresponding to a second operating system; a reset security module corresponding to the first hardware unit; and a register storing a status of a reset signal, wherein the reset signal requests to reset the first hardware unit, wherein the reset security module is configured to read the status of the reset signal from the register; the reset security module is further configured to determine a working status of an interface between the first hardware unit and a bus based on the status of the reset signal; the reset security module is further configured to determine adjustment strategies for two or more data channels between the first hardware unit and the second hardware unit based on the working status of the interface; the reset security module is further configured to adjust a flow control status of the data channel based on the adjustment strategy; and the reset security module is further configured to reset the first hardware unit based on the working status of the interface after adjusting the flow control status of the data channel. According to a third aspect of this disclosure, a computer readable storage medium is provided. The storage medium stores a computer program, and the computer program is used for implementing the method for resetting a hardware unit in an integrated circuit according to the first aspect. According to a fourth aspect of this disclosure, an electronic device is provided. The electronic device includes: a processor; and a memory configured to store processor-executable instructions, wherein the processor is configured to read the executable instructions from the memory, and execute the instructions to implement the method for resetting a hardware unit in an integrated circuit according to the first aspect. Alternatively, the electronic device includes the integrated circuit according to the second aspect. According to a fifth aspect of this disclosure, a computer program pro