A memory control circuit reset method, device, equipment and medium
Through the reset method of the memory control circuit, each module is gradually reset, which solves the problem of metastable transmission caused by asynchronous components and improves data quality and system stability.
Patent Information
- Application Number
- CN202410899157.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-07-05
AI Technical Summary
In the system, metastability caused by asynchronous components is unavoidable, especially when the reset timing of the memory control circuit is improperly controlled, which may lead to metastable transfer, expand the circuit failure surface, and affect data quality.
A memory control circuit reset method is proposed. By gradually resetting the remote control circuit, physical interface transceiver PHY circuit, AXI interface circuit, Atomic module circuit, register control circuit and other modules, a high-level signal sequence in a predetermined time period is used to ensure Synchronous and asynchronous reset of each module to prevent metastability propagation.
It effectively curbs the spread of metastability, improves the data quality and system stability of the memory control circuit, and ensures the normal operation of the chip.
Smart Images

Figure CN118426570B
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of data processing, and in particular to a method, device, equipment and medium for resetting a memory control circuit. Background Art
[0002] When there are asynchronous components in the system, it is difficult to completely avoid metastable states. Metastable states usually occur in asynchronous signal detection, cross-clock transmission, and reset circuits. In addition to causing logical misjudgments, metastable states may also propagate to the next level of the circuit, that is, the transfer of metastable states, thereby expanding the fault surface of the entire circuit. The system chip has high requirements for the data quality of the memory control circuit. If the reset timing of the memory control circuit is not properly controlled, there will be problems with metastable state transfer, which will cause errors in the entire chip. Therefore, how to plan the reset timing of each module in the memory control circuit is an urgent problem to be solved. Summary of the invention
[0003] The object of the present invention is to provide a memory control circuit resetting method, device, equipment and medium, so as to at least partially solve the above-mentioned problem.
[0004] According to one aspect of the present disclosure, a memory control circuit resetting method is provided, comprising:
[0005] S1, reset the remote control circuit, after the reset is completed, set the remote control circuit reset signal reset_glb to a high level, the remote control circuit is used to generate reset signals for each module of the memory control circuit,
[0006] S2, through the remote control circuit, reset signals of all modules of the memory control circuit are all set to high level, and then all set to low level,
[0007] S3, after a first predetermined time, the physical interface transceiver PHY circuit reset signal reset_5 is set to a high level,
[0008] S4, after a second predetermined time, the reset signal reset_0 of the AXI interface circuit 1 corresponding to the upstream module clock domain is set to a high level, and then the reset signal reset_1 of the AXI interface circuit 1 corresponding to the memory control circuit clock domain, the reset signal reset_2 of the Atomic module circuit, and the reset signal reset_6 of the register control circuit 1 are respectively set to high levels, the register control circuit 1 is used to configure the registers inside the Atomic module, the Atomic module circuit is used to support CUDA access, and the AXI interface circuit 1 is used to synchronize the AXI signal sent from the upstream module,
[0009] S5, after a third predetermined time has passed since reset_0 is set to a high level, a reset signal reset_4 of a register control circuit 2 is set to a high level, the register control circuit 2 is used to configure the internal register of the core control circuit, the core control circuit is used to convert the AXI signal into a DFI signal, and optimize and sort the access request,
[0010] S6, after a fourth predetermined time after reset_4 is set to a high level, the reset signal reset_3 of the AXI interface circuit 2 is set to a high level, the AXI interface circuit 2 is used to receive the AXI signal sent by the Atomic module and forward the signal to the core control circuit,
[0011] S7 , reset_3 is set to a high level. After a fifth predetermined time, the reset signal reset_7 of the register control circuit 3 is set to a high level.
[0012] In some embodiments, the remote control circuit reset signal reset_glb comes from SoC.
[0013] In some embodiments, the remote control circuit is used to generate reset signals for various modules of the memory control circuit. Specifically, the internal registers of the remote control circuit are configured by upstream software to generate the corresponding reset signals.
[0014] In some embodiments, when the reset signal is at a low level, the corresponding module circuit is in a reset state, and when the reset signal is at a high level, the corresponding module circuit is in a normal working state.
[0015] According to another aspect of the present disclosure, a memory control circuit reset device is provided, comprising:
[0016] The first reset unit is used to reset the remote control circuit. After the reset is completed, the remote control circuit reset signal reset_glb is set to a high level. The remote control circuit is used to generate reset signals for each module of the memory control circuit.
[0017] The second reset unit is used to set all reset signals of each module of the memory control circuit to high level and then to low level through the remote control circuit.
[0018] The third reset unit is used to set the physical interface transceiver PHY circuit reset signal reset_5 to a high level after a first predetermined time.
[0019] The fourth reset unit is used to set the reset signal reset_0 of the AXI interface circuit 1 corresponding to the upstream module clock domain to a high level after a second predetermined time, and then set the reset signal reset_1 of the AXI interface circuit 1 corresponding to the memory control circuit clock domain, the Atomic module circuit reset signal reset_2, and the reset signal reset_6 of the register control circuit 1 to high levels respectively, the register control circuit 1 is used to configure the register inside the Atomic module, the Atomic module circuit is used to support CUDA access, and the AXI interface circuit 1 is used to synchronize the AXI signal sent from the upstream module,
[0020] a fifth reset unit, configured to set reset signal reset_4 of register control circuit 2 to a high level after a third predetermined time has passed since reset_0 is set to a high level, wherein register control circuit 2 is configured to configure an internal register of a core control circuit, wherein the core control circuit is configured to convert an AXI signal into a DFI signal, and optimize and sort access requests,
[0021] The sixth reset unit is used to set the reset signal reset_3 of the AXI interface circuit 2 to a high level after a fourth predetermined time after reset_4 is set to a high level. The AXI interface circuit 2 is used to receive the AXI signal sent by the Atomic module and forward the signal to the core control circuit.
[0022] The seventh reset unit is used for setting the reset signal reset_7 of the register control circuit 3 to a high level after a fifth predetermined time has passed since reset_3 was set to a high level.
[0023] In some embodiments, the remote control circuit reset signal reset_glb comes from SoC.
[0024] In some embodiments, the remote control circuit is used to generate reset signals for various modules of the memory control circuit. Specifically, the internal registers of the remote control circuit are configured by upstream software to generate the corresponding reset signals.
[0025] In some embodiments, when the reset signal is at a low level, the corresponding module circuit is in a reset state, and when the reset signal is at a high level, the corresponding module circuit is in a normal working state.
[0026] An embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor executes the steps in the method of any of the above embodiments by calling the computer program stored in the memory.
[0027] An embodiment of the present application further provides a computer-readable storage medium storing a computer program, wherein the computer program executes the steps in any of the above method embodiments when executed by a processor.
[0028] The present invention discloses a memory control circuit reset method. According to the characteristics of the memory control circuit, the remote control circuit, the physical interface transceiver PHY circuit, the AXI interface circuit 1, the Atomic module circuit, the register control circuit 1, the register control circuit 2, the AXI interface circuit 2, and the register control circuit 3 are reset in sequence. Except for the reset_glb signal of the remote control circuit which comes from the SoC, the other reset signals are all generated by the remote control circuit and come from the register inside the remote control circuit. The register inside the remote control circuit can be configured by upstream software to generate the corresponding reset signal. Therefore, the overall design is flexible and configurable, and the operability is stronger. Moreover, through the reset timing, the propagation of the metastable state in the system can be effectively curbed.
[0029] Other features and advantages of the present disclosure will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 A schematic diagram of a memory control circuit resetting method provided in an embodiment of the present application.
[0031] Figure 2 A schematic diagram of a memory control circuit architecture provided in an embodiment of the present application.
[0032] Figure 3 A schematic diagram of a reset timing of a memory control circuit provided in an embodiment of the present application.
[0033] Figure 4 A schematic diagram of a memory control circuit reset device provided in an embodiment of the present application.
[0034] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0035] The specific embodiments of the present invention are further described below in conjunction with the accompanying drawings. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0036] It should be noted that, in the description of the present invention, the directions or positional relationships indicated by the terms "up", "down", "left", "right", "front", "back", etc. are descriptions of the structure of the present invention based on the accompanying drawings, and are only for the convenience of describing the present invention, and do not indicate or imply that the referred system or element must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as a limitation on the present invention.
[0037] The "first" and "second" in this technical solution are only used to distinguish the names of the same or similar structures, or corresponding structures with similar functions, and are not an arrangement of the importance of these structures, nor do they have a ranking, comparison of size, or other meanings.
[0038] In addition, unless otherwise clearly specified and limited, the terms "installation" and "connection" should be understood in a broad sense. For example, the connection can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be a connection between the two structures. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood based on the overall idea of the present invention and the specific context of the present solution.
[0039] The first aspect of the present disclosure discloses a memory control circuit reset method, such as Figure 1 FIG. 1 is a schematic diagram of a memory control circuit resetting method according to an embodiment of the present invention.
[0040] The memory control circuit has many modules, and each module usually has its own unique reset signal. These modules usually include:
[0041] AXI interface module circuit, used to synchronize AXI signals sent from upstream modules.
[0042] Atomic module circuit, used to support CUDA access,
[0043] The core control circuit is used to convert AXI signals into DFI signals and optimize and sort access requests.
[0044] Pipeline circuit, between the core control circuit and phy, is used to optimize timing.
[0045] PHY, physical interface transceiver. Between DRAM and pipeline circuit,
[0046] Register related circuits,
[0047] Remote system control circuit.
[0048] When resetting the memory controller (hereinafter referred to as MC), the following points are usually considered:
[0049] 1. During reset, the metastable state of the previous stage cannot be transmitted to the next stage. The entire chip needs to suppress the propagation of metastable state as much as possible;
[0050] 2. Since there are many memory control circuit modules, there are also many corresponding clock signals. If the module is synchronously reset, the reset signal needs to be synchronized to the module's clock domain; if the module is asynchronously reset, synchronous reset and asynchronous release circuits need to be designed;
[0051] 3. Since some modules in the memory control circuit are reset synchronously, a corresponding clock is required. This clock is generated from the PHY phase-locked loop, which requires the entire system to reset the PHY first.
[0052] Reference Figure 1 As shown, a memory control circuit reset method proposed in the present disclosure includes the following steps:
[0053] S1, reset the remote control circuit, after the reset is completed, set the remote control circuit reset signal reset_glb to a high level, the remote control circuit is used to generate reset signals for each module of the memory control circuit,
[0054] S2, through the remote control circuit, reset signals of all modules of the memory control circuit are all set to high level, and then all set to low level,
[0055] S3, after a first predetermined time, the physical interface transceiver PHY circuit reset signal reset_5 is set to a high level,
[0056] S4, after a second predetermined time, the reset signal reset_0 of the AXI interface circuit 1 corresponding to the upstream module clock domain is set to a high level, and then the reset signal reset_1 of the AXI interface circuit 1 corresponding to the memory control circuit clock domain, the reset signal reset_2 of the Atomic module circuit, and the reset signal reset_6 of the register control circuit 1 are respectively set to high levels, the register control circuit 1 is used to configure the registers inside the Atomic module, the Atomic module circuit is used to support CUDA access, and the AXI interface circuit 1 is used to synchronize the AXI signal sent from the upstream module,
[0057] S5, after a third predetermined time has passed since reset_0 was set to a high level, a reset signal reset_4 of the register control circuit 2 is set to a high level, the register control circuit 2 is used to configure the internal register of the core control circuit, the core control circuit is used to convert the AXI signal into a DFI signal, and optimize and sort the access request,
[0058] S6, after a fourth predetermined time after reset_4 is set to a high level, the reset signal reset_3 of the AXI interface circuit 2 is set to a high level, the AXI interface circuit 2 is used to receive the AXI signal sent by the Atomic module and forward the signal to the core control circuit,
[0059] S7 , reset_3 is set to a high level. After a fifth predetermined time, the reset signal reset_7 of the register control circuit 3 is set to a high level.
[0060] In some embodiments, Figure 2 As shown, a schematic diagram of the memory control circuit architecture, wherein:
[0061] AXI interface circuit 1 is used to synchronize the AXI signal sent from the upstream module. Because the clock of the upstream module (not shown in the figure) is different from the clock of the MC, the AXI interface circuit 1 can be divided into two resets according to the different clock domains, namely reset_0 and reset_1;
[0062] Atomic module circuit, used to support CUDA access, the module is synchronously reset, using reset_2,
[0063] AXI interface circuit 2 is used to receive the AXI signal sent by Atomic and forward the signal to the core control circuit. This module is asynchronously reset and uses reset_3.
[0064] The core control circuit is used to convert AXI signals into DFI signals and optimize and sort access requests. This module is asynchronously reset and uses reset_4.
[0065] The Pipeline module circuit is located between the core control circuit and the phy and is used to optimize the timing. This module is asynchronously reset and uses reset_4.
[0066] PHY, physical interface transceiver. Between DRAM and pipeline circuit; this module is asynchronously reset, using reset_5,
[0067] Register control circuit 1 is used to configure registers inside the Atomic module and observe the internal state of the Atomic module. This module is synchronously reset. In some embodiments, due to power consumption considerations, the clock used by this module is different from that of the Atomic circuit, so it cannot share a reset with the Atomic. This module uses reset_6,
[0068] Register control circuit 2 is used to configure the registers inside the core control circuit and observe the internal state of the core control circuit. This module is asynchronously reset and uses a different clock from the core control circuit clock, so it cannot share a reset with the core control circuit. This module uses reset_4.
[0069] Register control circuit 3 is used to configure the internal registers of PHY and observe the internal status of PHY. This module is asynchronously reset and uses the same clock as PHY, so it shares a reset_5 with PHY.
[0070] The remote system control circuit is used to generate the reset signal required by each module. The reset signal itself comes from the control circuit of the SoC (System on Chip) (not shown in the figure). This module is synchronously reset and uses reset_glb.
[0071] In order to explain the concept of the present invention in detail, this embodiment is described with a specific example. Figure 3 The reset timing diagram shown in the figure, the specific reset method includes the following steps:
[0072] 1. First, reset_glb resets the remote control circuit. After the reset is completed, reset_glb is set to a high level;
[0073] 2. Set all reset_0~7 to high level through the remote control circuit, and then set them to low level. The purpose of this is to create a reset falling edge to ensure that those circuits that are only sensitive to the reset edge enter reset;
[0074] 3. After waiting for 320ns, set reset_5 to high level. Waiting for 320ns is to ensure that the PHY has been fully reset;
[0075] Since PHY will provide data_clk, we need to reset PHY first;
[0076] 3. After reset_5 is set to high level, wait for 500ns and set reset_0 to high level. Waiting for 500ns is to wait for the PHY PLL to start oscillating. Because the AXI interface circuit 1 and the Atomic module are reset synchronously, the clock generated by the PHY PLL is required;
[0077] 4. After reset_0 is set to high level, reset_1, reset_2, and reset_6 are set to high level. Release the reset of Atomic module AXI interface module 1 and register control circuit 1;
[0078] 5. After reset_0 is set to high level, 100ns later, reset_4 is set to high level to release the reset of the core control circuit;
[0079] 6. After reset_4 is set to high level for 100ns, the reset reset_3 of AXI interface circuit 2 is released.
[0080] 7. After reset_3 is set to high level for 100ns, reset_7 of register circuit 3 is released.
[0081] The reset low level is effective, that is, when it is low level, the module is in reset state. When reset is high level, the circuit is in normal working state.
[0082] Among them, register_clk refers to the clock of the register circuit; data_clk refers to the clock of the data (non-register part).
[0083] It is understandable that, according to actual conditions and in accordance with the reset sequence, the reset intervals of different modules can be adjusted, and this embodiment does not impose any limitation thereto.
[0084] In some embodiments, the reset_glb signal of the remote control circuit comes from the SoC, and other reset signals are generated by the remote control circuit. These reset signals all come from registers inside the remote control circuit. The registers inside the remote control circuit can be configured by upstream software to generate corresponding reset signals, so the overall design is flexible and configurable, and has stronger operability.
[0085] The second aspect of the present disclosure discloses a memory control circuit reset device, such as Figure 4 As shown, the device comprises:
[0086] The first reset unit is used to reset the remote control circuit. After the reset is completed, the remote control circuit reset signal reset_glb is set to a high level. The remote control circuit is used to generate reset signals for each module of the memory control circuit.
[0087] The second reset unit is used to set all reset signals of each module of the memory control circuit to high level and then to low level through the remote control circuit.
[0088] The third reset unit is used to set the physical interface transceiver PHY circuit reset signal reset_5 to a high level after a first predetermined time.
[0089] The fourth reset unit is used to set the reset signal reset_0 of the AXI interface circuit 1 corresponding to the upstream module clock domain to a high level after a second predetermined time, and then set the reset signal reset_1 of the AXI interface circuit 1 corresponding to the memory control circuit clock domain, the Atomic module circuit reset signal reset_2, and the reset signal reset_6 of the register control circuit 1 to high levels respectively, the register control circuit 1 is used to configure the register inside the Atomic module, the Atomic module circuit is used to support CUDA access, and the AXI interface circuit 1 is used to synchronize the AXI signal sent from the upstream module,
[0090] a fifth reset unit, configured to set reset signal reset_4 of register control circuit 2 to a high level after a third predetermined time has passed since reset_0 is set to a high level, wherein register control circuit 2 is configured to configure an internal register of a core control circuit, wherein the core control circuit is configured to convert an AXI signal into a DFI signal, and optimize and sort access requests,
[0091] The sixth reset unit is used to set the reset signal reset_3 of the AXI interface circuit 2 to a high level after a fourth predetermined time after reset_4 is set to a high level. The AXI interface circuit 2 is used to receive the AXI signal sent by the Atomic module and forward the signal to the core control circuit.
[0092] The seventh reset unit is used for setting the reset signal reset_7 of the register control circuit 3 to a high level after a fifth predetermined time has passed since reset_3 was set to a high level.
[0093] In some embodiments, the remote control circuit reset signal reset_glb comes from SoC.
[0094] In some embodiments, the remote control circuit is used to generate reset signals for various modules of the memory control circuit. Specifically, the internal registers of the remote control circuit are configured by upstream software to generate the corresponding reset signals.
[0095] In some embodiments, when the reset signal is at a low level, the corresponding module circuit is in a reset state, and when the reset signal is at a high level, the corresponding module circuit is in a normal working state.
[0096] The third aspect of the present disclosure discloses an electronic device, which may be a terminal or a server. Figure 5 As shown, Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0097] The electronic device 500 includes a processor 501 having one or more processing cores, a memory 502 having one or more computer-readable storage media, and a computer program stored in the memory 502 and executable on the processor. The processor 501 is electrically connected to the memory 502. Those skilled in the art will appreciate that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0098] The processor 501 is the control center of the electronic device 500. It uses various interfaces and lines to connect various parts of the entire electronic device 500, and executes various functions of the electronic device 500 and processes data by running or loading software programs (computer programs) and / or units stored in the memory 502, and calling data stored in the memory 502, thereby monitoring the electronic device 500 as a whole.
[0099] In the embodiment of the present application, the processor 501 in the electronic device 500 will load instructions corresponding to the processes of one or more application programs into the memory 502 according to the following steps, and the processor 501 will run the application programs stored in the memory 502 to implement various functions:
[0100] S1, reset the remote control circuit, after the reset is completed, set the remote control circuit reset signal reset_glb to a high level, the remote control circuit is used to generate reset signals for each module of the memory control circuit,
[0101] S2, through the remote control circuit, reset signals of all modules of the memory control circuit are all set to high level, and then all set to low level,
[0102] S3, after a first predetermined time, the physical interface transceiver PHY circuit reset signal reset_5 is set to a high level,
[0103] S4, after a second predetermined time, the reset signal reset_0 of the AXI interface circuit 1 corresponding to the upstream module clock domain is set to a high level, and then the reset signal reset_1 of the AXI interface circuit 1 corresponding to the memory control circuit clock domain, the reset signal reset_2 of the Atomic module circuit, and the reset signal reset_6 of the register control circuit 1 are respectively set to high levels, the register control circuit 1 is used to configure the registers inside the Atomic module, the Atomic module circuit is used to support CUDA access, and the AXI interface circuit 1 is used to synchronize the AXI signal sent from the upstream module,
[0104] S5, after a third predetermined time has passed since reset_0 is set to a high level, a reset signal reset_4 of a register control circuit 2 is set to a high level, the register control circuit 2 is used to configure the internal register of the core control circuit, the core control circuit is used to convert the AXI signal into a DFI signal, and optimize and sort the access request,
[0105] S6, after a fourth predetermined time after reset_4 is set to a high level, the reset signal reset_3 of the AXI interface circuit 2 is set to a high level, the AXI interface circuit 2 is used to receive the AXI signal sent by the Atomic module and forward the signal to the core control circuit,
[0106] S7 , reset_3 is set to a high level. After a fifth predetermined time, the reset signal reset_7 of the register control circuit 3 is set to a high level.
[0107] Optional, such as Figure 5 As shown, the electronic device 500 further includes: a memory control circuit reset device 503, a communication module 504, an input unit 505 and a power supply 506. The processor 501 is electrically connected to the memory control circuit reset device 503, the communication module 504, the input unit 505 and the power supply 506 respectively. Those skilled in the art can understand that Figure 5 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0108] The memory control circuit resetting device 503 can be used to reset each module circuit of the memory control circuit.
[0109] The communication module 504 can be used to communicate with other devices.
[0110] The input unit 505 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0111] The power supply 506 is used to supply power to various components of the electronic device 500. Optionally, the power supply 506 can be logically connected to the processor 501 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 506 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0112] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0113] The fourth aspect of the present disclosure discloses a computer-readable storage medium. A person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above-mentioned embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0114] To this end, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored, and the computer program can be loaded by a processor to execute the steps of a memory control circuit reset method provided in an embodiment of the present application. For example, the computer program can execute the following steps:
[0115] S1, reset the remote control circuit, after the reset is completed, set the remote control circuit reset signal reset_glb to a high level, the remote control circuit is used to generate reset signals for each module of the memory control circuit,
[0116] S2, through the remote control circuit, reset signals of all modules of the memory control circuit are all set to high level, and then all set to low level,
[0117] S3, after a first predetermined time, the physical interface transceiver PHY circuit reset signal reset_5 is set to a high level,
[0118] S4, after a second predetermined time, the reset signal reset_0 of the AXI interface circuit 1 corresponding to the upstream module clock domain is set to a high level, and then the reset signal reset_1 of the AXI interface circuit 1 corresponding to the memory control circuit clock domain, the reset signal reset_2 of the Atomic module circuit, and the reset signal reset_6 of the register control circuit 1 are respectively set to high levels, the register control circuit 1 is used to configure the registers inside the Atomic module, the Atomic module circuit is used to support CUDA access, and the AXI interface circuit 1 is used to synchronize the AXI signal sent from the upstream module,
[0119] S5, after a third predetermined time has passed since reset_0 is set to a high level, a reset signal reset_4 of a register control circuit 2 is set to a high level, the register control circuit 2 is used to configure the internal register of the core control circuit, the core control circuit is used to convert the AXI signal into a DFI signal, and optimize and sort the access request,
[0120] S6, after a fourth predetermined time after reset_4 is set to a high level, the reset signal reset_3 of the AXI interface circuit 2 is set to a high level, the AXI interface circuit 2 is used to receive the AXI signal sent by the Atomic module and forward the signal to the core control circuit,
[0121] S7 , reset_3 is set to a high level. After a fifth predetermined time, the reset signal reset_7 of the register control circuit 3 is set to a high level.
[0122] The specific implementation of the above operations can be found in the above embodiments, which will not be described in detail here.
[0123] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0124] Since the computer program stored in the storage medium can execute the steps in any one of the memory control circuit reset methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the memory control circuit reset methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0125] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (apparatus), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A system that specifies the functions of a box or multiple boxes.
[0126] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction system, which is implemented in the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0127] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0128] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the described embodiments. For those skilled in the art, various changes, modifications, substitutions and variations of these embodiments are made without departing from the principles and spirit of the present invention, and still fall within the scope of protection of the present invention.
Claims
1. A memory control circuit reset method, characterized in that: The method comprises: S1, reset the remote control circuit, after the reset is completed, set the remote control circuit reset signal reset_glb to a high level, the remote control circuit is used to generate reset signals for each module of the memory control circuit, S2, through the remote control circuit, reset signals of all modules of the memory control circuit are all set to high level, and then all set to low level, S3, after a first predetermined time, the physical interface transceiver PHY circuit reset signal reset_5 is set to a high level, S4, after a second predetermined time, the reset signal reset_0 of the AXI interface circuit 1 corresponding to the upstream module clock domain is set to a high level, and then the reset signal reset_1 of the AXI interface circuit 1 corresponding to the memory control circuit clock domain, the reset signal reset_2 of the Atomic module circuit, and the reset signal reset_6 of the register control circuit 1 are respectively set to high levels, the register control circuit 1 is used to configure the registers inside the Atomic module, the Atomic module circuit is used to support CUDA access, and the AXI interface circuit 1 is used to synchronize the AXI signal sent from the upstream module, S5, after a third predetermined time has passed since reset_0 is set to a high level, a reset signal reset_4 of a register control circuit 2 is set to a high level, the register control circuit 2 is used to configure the internal register of the core control circuit, the core control circuit is used to convert the AXI signal into a DFI signal, and optimize and sort the access request, S6, after a fourth predetermined time after reset_4 is set to a high level, the reset signal reset_3 of the AXI interface circuit 2 is set to a high level, the AXI interface circuit 2 is used to receive the AXI signal sent by the Atomic module and forward the signal to the core control circuit, S7 , reset_3 is set to a high level. After a fifth predetermined time, the reset signal reset_7 of the register control circuit 3 is set to a high level.
2. The method according to claim 1, characterized in that: The remote control circuit reset signal reset_glb comes from SoC.
3. The method according to claim 1, characterized in that: Also includes: The remote control circuit is used to generate reset signals for each module of the memory control circuit. Specifically, the internal registers of the remote control circuit are configured by upstream software to generate the corresponding reset signals.
4. The method according to claim 1, characterized in that: When the reset signal is at a low level, the corresponding module circuit is in a reset state, and when the reset signal is at a high level, the corresponding module circuit is in a normal working state.
5. A memory control circuit reset device, characterized in that: include: The first reset unit is used to reset the remote control circuit. After the reset is completed, the remote control circuit reset signal reset_glb is set to a high level. The remote control circuit is used to generate reset signals for each module of the memory control circuit. The second reset unit is used to set all reset signals of each module of the memory control circuit to high level and then to low level through the remote control circuit. The third reset unit is used to set the physical interface transceiver PHY circuit reset signal reset_5 to a high level after a first predetermined time. The fourth reset unit is used to set the reset signal reset_0 of the AXI interface circuit 1 corresponding to the upstream module clock domain to a high level after a second predetermined time, and then set the reset signal reset_1 of the AXI interface circuit 1 corresponding to the memory control circuit clock domain, the Atomic module circuit reset signal reset_2, and the reset signal reset_6 of the register control circuit 1 to high levels respectively, the register control circuit 1 is used to configure the register inside the Atomic module, the Atomic module circuit is used to support CUDA access, and the AXI interface circuit 1 is used to synchronize the AXI signal sent from the upstream module, a fifth reset unit, configured to set reset signal reset_4 of register control circuit 2 to a high level after a third predetermined time has passed since reset_0 is set to a high level, wherein register control circuit 2 is configured to configure an internal register of a core control circuit, wherein the core control circuit is configured to convert an AXI signal into a DFI signal, and optimize and sort access requests, The sixth reset unit is used to set the reset signal reset_3 of the AXI interface circuit 2 to a high level after a fourth predetermined time after reset_4 is set to a high level. The AXI interface circuit 2 is used to receive the AXI signal sent by the Atomic module and forward the signal to the core control circuit. The seventh reset unit is used for setting the reset signal reset_7 of the register control circuit 3 to a high level after a fifth predetermined time has passed since reset_3 was set to a high level.
6. The device according to claim 5, characterized in that: The remote control circuit reset signal reset_glb comes from SoC.
7. The device according to claim 6, characterized in that: The remote control circuit is used to generate reset signals for each module of the memory control circuit. Specifically, the internal registers of the remote control circuit are configured by upstream software to generate the corresponding reset signals.
8. The device according to claim 7, characterized in that When the reset signal is at a low level, the corresponding module circuit is in a reset state, and when the reset signal is at a high level, the corresponding module circuit is in a normal working state.
9. An electronic device, characterized in that: It comprises a memory storing executable program code and a processor coupled to the memory; wherein the processor calls the executable program code stored in the memory to execute the method according to any one of claims 1-4.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 4 is performed.
Citation Information
Patent Citations
Method of resetting flash memory device executed by memory controller of host
CN110780724A
DDR bit delay alignment method and device, and storage medium
CN111128269A
Using chip select to specify boot memory
US20040128425A1
Data processor with asynchronous reset
US20130227257A1
Semiconductor device and method for controlling the same
US20130250650A1
