Data access control circuit, data calibration method, chip and electronic equipment

Through the address configuration and remapping module of the data access control circuit, the problem of slow non-volatile memory modification speed and multi-core calibration conflict is solved, and the efficiency and speed improvement of multi-core data calibration is achieved.

CN119088301APending Publication Date: 2024-12-06CHIPSEA TECH SHENZHEN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411190706.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

In the automotive production process, the speed of modifying key design parameters of non-volatile memory is slow, resulting in the data calibration process being complex and slow. Especially when multiple cores are calibrated simultaneously, Overlay access and normal non-volatile memory access conflicts are prone to occur. question.

Method used

Design a data access control circuit, including address configuration module and remapping module, by remapping the original address of data read and write requests into the target address, so that data can access other memory, solving the Overlay access and normality in multi-core calibration process Conflicts of nonvolatile memory access, adapted to multi-core Overlay access.

Benefits of technology

It realizes the efficiency and speed improvement of multi-core data calibration, avoids data read and write conflicts, and improves the convenience and speed of automotive data calibration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088301A_ABST
    Figure CN119088301A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data access control circuit, a data calibration method, a chip and electronic equipment, and the data access control circuit comprises an address configuration module which is used for configuring a corresponding target data read-write address for a data read-write request of each kernel, and the data read-write request comprises an original data read-write address; the remapping module is used for remapping an original data read-write address of the data read-write request into a target data read-write address; wherein the first memory is a nonvolatile memory, and the second memory is a volatile memory. The data access control circuit not only can realize multi-kernel calibration of automobile data, but also solves the problem of conflict between Overlay access and normal nonvolatile memory (Flash) access in a multi-kernel calibration process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of integrated circuit technology, and in particular to a data access control circuit, a data calibration method, a chip and an electronic device. Background Art

[0002] At present, a large number of key design parameters need to be calibrated during the production process of automobiles. For example, assuming that the algorithm of the automobile accelerator pedal opening and the engine fuel injection amount is y=ax+b, if the set fuel injection amount (y) is to be achieved at a certain fixed pedal opening (x), parameters a and b need to be calibrated.

[0003] Among them, the key design parameters of the car are usually stored in non-volatile memory (NVM). Since the data in the non-volatile memory will not disappear after power failure, it can ensure the long-term storage of the key design parameters of the car. However, when the car is calibrated, the key design parameters need to be constantly modified according to the test results. Since the non-volatile memory cannot modify the key design parameters by byte, and the non-volatile memory must first erase the data when modifying the data, and then write the modified key design parameters, this leads to the problem that the car data calibration process is complicated and slow.

[0004] In the related art, in order to solve the problem of slow modification of key design parameters in non-volatile memory, Overlay (Data Access Overlay) access is usually used for data calibration. Overlay access refers to mapping the space of non-volatile memory to volatile memory (Random Access Memory, RAM) during the calibration process, and modifying the key design parameters by accessing the volatile memory. Since the volatile memory can directly overwrite the key design parameters byte by byte, there is no need to erase the data first and then write the modified key design parameters, so it can effectively improve the speed of the automobile data calibration process. However, this solution can only support Overlay access to a single core of the Soc chip. When multiple cores of the Soc chip are performing data calibration at the same time, there may be a problem of conflict between Overlay access and normal non-volatile memory access. Summary of the invention

[0005] In view of the above problems, the embodiments of the present application provide a data access control circuit, a data calibration method, a chip and an electronic device to solve the above technical problems.

[0006] In a first aspect, an embodiment of the present application provides a data access control circuit, the data access control circuit is used to receive data read and write requests from multiple cores and access at least one first memory or at least one second memory, including:

[0007] An address configuration module, the address configuration module is used to configure the corresponding target data read and write address for the kernel's data read and write request, the data read and write request includes the original data read and write address;

[0008] A remapping module, the remapping module is used to remap the original data read / write address of the data read / write request to the target data read / write address;

[0009] Among them, the original data read and write address includes the storage address of the first memory or the storage address of the second memory, the target data read and write address includes the storage address of the first memory or the storage address of the second memory, and the first memory is a non-volatile memory, and the second memory is a volatile memory.

[0010] In a second aspect, the present application provides a data calibration method, comprising:

[0011] Copying the data to be calibrated in the first memory to the second memory;

[0012] Using the data access control circuit as described in the first aspect to read and write data in the second memory, so as to perform calibration based on the data in the second memory;

[0013] The first memory is a non-volatile memory, and the second memory is a volatile memory.

[0014] In a third aspect, an embodiment of the present application further provides a chip, comprising the above-mentioned data access control circuit.

[0015] In a fourth aspect, an embodiment of the present application further provides an electronic device comprising the above-mentioned chip.

[0016] The present application utilizes a remapping module to remap the original data read / write address of a data read / write request to a target data read / write address, so that the data read / write request can access data in other memories. For example, the original data read / write address is the storage address of a first memory. After address remapping, the data read / write request can access data in a second memory. For another example, the original data read / write address is the storage address of a second memory. After address remapping, the data read / write request can access data in a first memory. At the same time, since the present application can configure the corresponding target data read / write address for the kernel's data read / write request through an address configuration module, the data access control circuit of the present application can be adapted to multi-core Overlay access, which can not only realize multi-core calibration of automotive data, but also solve the problem of conflict between Overlay access and normal non-volatile memory access in the multi-core calibration process.

[0017] These and other aspects of the present application will become more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 A schematic diagram of a data calibration system in the related art is shown.

[0020] Figure 2 A schematic diagram of a data access control circuit in an embodiment of the present application is shown.

[0021] Figure 3 Another schematic diagram of a data access control circuit in an embodiment of the present application is shown.

[0022] Figure 4 Another schematic diagram of a data access control circuit in an embodiment of the present application is shown.

[0023] Figure 5 Another schematic diagram of a data access control circuit in an embodiment of the present application is shown.

[0024] Figure 6 Another schematic diagram of a data access control circuit in an embodiment of the present application is shown.

[0025] Figure 7 Another schematic diagram of a data access control circuit in an embodiment of the present application is shown.

[0026] Figure 8 Another schematic diagram of a data access control circuit in an embodiment of the present application is shown.

[0027] Fig. 9 Another schematic diagram of a data access control circuit in an embodiment of the present application is shown.

[0028] Fig.10 A flow chart of a data calibration method in an embodiment of the present application is shown.

[0029] Among them, 100 data access control circuit, 200 core, 300 first memory, 400 second memory, 500 first bus cross matrix, 600 second bus cross matrix

[0030] 10 address configuration module, 11 arbitration unit, 12 configuration unit, 20 remapping module, 21 first remapping unit, 22 second remapping unit, 30 address judgment module, 31 first judgment unit, 32 second judgment unit. DETAILED DESCRIPTION

[0031] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.

[0032] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.

[0033] In the embodiments of the present application, it should be noted that, in this article, relational terms such as first and second, etc. are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations.

[0034] Moreover, the terms "comprises," "comprising," or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.

[0035] In the description of the embodiments of the present application, words such as "example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "example" or "for example" in the embodiments of the present application is not to be interpreted as being more preferred or having more advantages than another embodiment or design. The use of words such as "example" or "for example" is intended to present relative concepts in a clear manner.

[0036] In addition, the "plurality" in the embodiments of the present application refers to two or more than two. In view of this, in the embodiments of the present application, "plurality" can also be understood as "at least two". "At least one" can be understood as one or more, for example, one, two or more. For example, including at least one means including one, two or more, and there is no limit on which ones are included. For example, including at least one of A, B and C, then A, B, C, A and B, A and C, B and C, or A, B and C can be included.

[0037] It should be noted that in the embodiments of the present application, "connection" can be understood as electrical connection, and the connection between two electrical components can be a direct or indirect connection between the two electrical components. For example, the connection between A and B can be either a direct connection between A and B or an indirect connection between A and B through one or more other electrical components.

[0038] In the related art, in order to solve the problem that the non-volatile memory has a slow speed in modifying key design parameters, an Overlay (Data Access Overlay) access method is usually used for data calibration, see Figure 1 , Figure 1 A schematic diagram of a data calibration system in the related art is shown. The data calibration system includes a host computer, a Soc chip and a calibration object. The Soc chip has multiple cores (core 0, core 1 and core 2), multiple Flash memories (Flash0, Flash1 and Flash2), an on-chip RAM memory and an Overlay module. The key design parameters of the calibration object are stored in the Flash memory. When the Overlay module is not turned on, each core will access its corresponding Flash memory to read the key design parameters so that the software program can make the calibration object (such as the engine, transmission system, and brake system of the car) run normally according to the key design parameters; after the Overlay module is turned on for data calibration, the core 1 controls the space of Flash 1 to be mapped to the on-chip RAM memory, so the core 1 will access the RAM memory to read and modify the key design parameters.

[0039] according to Figure 1 It can be seen that during the key design parameter calibration process, since the space of Flash1 is mapped to the on-chip RAM memory and controlled by core 1, only core 1 can implement Overlay access. If core 0, core 1 and core 2 are used for data calibration at the same time, core 0 will read and write data in Flash0, and core 2 will read and write data in Flash2. This leads to a conflict between Overlay access and normal non-volatile memory access when multiple cores of the Soc chip perform data calibration at the same time.

[0040] To this end, the present application provides a data access control circuit, a data calibration method, a chip and an electronic device, which are described in detail below.

[0041] First, see Figure 2 , Figure 2 A schematic diagram of a data access control circuit 100 in an embodiment of the present application is shown, wherein the data access control circuit 100 is used to receive data read and write requests from multiple cores 200 and access at least one first memory 300 or at least one second memory 400, and the data access control circuit 100 includes an address configuration module 10 and a remapping module 20.

[0042] Specifically, the core 200 refers to a unit in a central processing unit (CPU) that can independently execute instructions. Generally, the core 200 includes hardware components required to perform basic operations and logical operations. For example, the core 200 may include an arithmetic logic unit (ALU), a register, a control unit, and a cache, etc. In some embodiments of the present application, the core 200 may be integrated with the data access control circuit 100 on the same chip, and the data access control circuit 100 receives the data read and write request of the core 200 through the on-chip bus. For example, taking a Soc (System on Chip) chip as an example, the central processing unit including the core 200, the data access control circuit 100, and the memory and other units are all integrated on the same Soc chip.

[0043] In some embodiments of the present application, the kernel 200 has a Flash interface and an AIXM interface, and a data read and write request can be issued through the Flash interface or the AIXM interface. In some embodiments of the present application, the kernel 200 may also only have a Flash interface or an AIXM interface, and a data read and write request may be issued through a single Flash interface or a single AIXM interface.

[0044] It can be understood that the core 200 and the data access control circuit 100 can also be integrated on different chips respectively, and the data access control circuit 100 receives the data read and write requests of the core 200 through the off-chip bus; or, the core 200 can also integrate the Flash interface and the AIXM interface into a common interface, and output the data read and write requests through the common interface.

[0045] The first memory 300 and the second memory 400 are used to store data required by the kernel 200 to run the software. For example, the first memory 300 and the second memory 400 can store key design parameters of a car, such as steering parameters, braking parameters or acceleration parameters. For another example, the first memory 300 and the second memory 400 can store key design parameters of a mobile device, such as design parameters of screen brightness and ambient light brightness, screen lock / screen off time parameters, etc.

[0046] Among them, the first memory 300 is a non-volatile memory. Since the non-volatile memory has the characteristic that the data will not disappear after power failure, it can ensure the long-term storage of key design parameters. For example, the non-volatile memory can be, but is not limited to, a ROM (Read-Only Memory) memory, an EAROM (Electrically Alterable Read-Only Memory) memory, an EPROM (Erasable Programmable Read-Only Memory) memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory) memory, and a Flash memory.

[0047] The second memory 400 is a volatile memory. Since the volatile memory can directly overwrite the key design parameters byte by byte, there is no need to erase the data before writing the modified key design parameters, so the speed of the data calibration process can be effectively improved. Exemplarily, the volatile memory can be, but is not limited to, a static random access memory (SRAM) or a dynamic random access memory (DRAM).

[0048] It can be understood that the first memory 300 can also be other memories for storing data. For example, the first memory 300 can also be an online data acquisition space (OLDA) of the car or an EBU space of the car.

[0049] In some embodiments of the present application, the first memory 300 may be an on-chip memory, for example, the first memory 300 may be an on-chip Flash memory. In some embodiments of the present application, the first memory 300 may be an off-chip memory, for example, the first memory 300 may be an off-chip Flash memory. In some embodiments of the present application, the second memory 400 may be an on-chip memory, for example, the second memory 400 may be an on-chip RAM memory or a core 200 RAM memory. In some embodiments of the present application, the second memory 400 may be an off-chip memory, for example, the second memory 400 may be an off-chip RAM memory.

[0050] It can be understood that the "on-chip memory" referred to in this application refers to the memory inside the chip (such as a Soc chip), and the "off-chip memory" referred to in this application refers to the memory outside the chip (such as a Soc chip or a CPU chip).

[0051] The address configuration module 10 of the data access control circuit 100 stores the address mapping logic information between the first memory 300 and the second memory 400. When a data read / write request of a certain core 200 arrives, the address configuration module 10 can configure the corresponding target data read / write address for the data read / write request of the core 200, so that the remapping module 20 can perform address remapping according to the target data read / write address. As an example, the address configuration module 10 can store the address mapping configuration information shown in the following table:

[0052]

[0053] It should be noted that the data read / write request includes an original data read / write address, one of the original data read / write address and the target data read / write address is a storage address of the first memory 300, and the other is a storage address of the second memory 400. For example, when the original data read / write address of the data read / write request of a certain core 200 is the address 0x1100_0000 in the first memory 300, the address configuration module 10 can configure the address 0x2000_0000 in the second memory 400 for the data read / write request; for another example, when the original data read / write address of the data read / write request of a certain core 200 is the address 0x2004_0000 in the second memory 400, the address configuration module 10 can configure the address 0x1120_0000 in the first memory 300 for the data read / write request.

[0054] The remapping module 20 of the data access control circuit 100 can remap the original data read / write address of the data read / write request to the target data read / write address, so that the data read / write request can access the corresponding memory through the remapping module 20. For example, when the original data read / write address of the data read / write request is an address in the first memory 300, after the remapping module 20 performs address remapping, the data read / write request can access the second memory 400, so as to read or rewrite the data in the second memory 400. For another example, when the original data read / write address of the data read / write request is an address in the second memory 400, after the remapping module 20 performs address remapping, the data read / write request can access the first memory 300, so as to read or rewrite the data in the first memory 300.

[0055] In some embodiments of the present application, the remapping module 20 can remap the original data read and write address of the data read and write request to the target data read and write address by means of address conversion. In other embodiments of the present application, the remapping module 20 can configure multiple registers according to the address configuration module 10 each time the address is remapped, and then perform address remapping according to the configured multiple registers, thereby remapping the original data read and write address of the data read and write request to the target data read and write address. As an exemplary embodiment, the multiple registers include a 32-bit OVC_RABR register, a 32-bit OVC_OTAR register, and a 32-bit OVC_OMASK register, wherein the use of each digit of the 32-bit OVC_RABR register is shown in the following table:

[0056]

[0057] The function of the 32-bit OVC_RABR register is to configure the base address of the remapped Overlay memory (i.e., the target data read and write address) and the enable switch of the Overlay function.

[0058] The usage of each digit of the 32-bit OVC_OTAR register is shown in the following table:

[0059]

[0060]

[0061] The 32-bit OVC_OTAR register is used to configure the base address of the target memory (ie, the original data read and write address) to determine whether the address accessed by the kernel 200 needs to be remapped.

[0062] The usage of each digit of the 32-bit OVC_OMASK register is shown in the following table:

[0063]

[0064] The function of the 32-bit OVC_OMASK register is to configure the size of the Overlay block and select the final remapping address for data access.

[0065] In the embodiment of the present application, the present application uses the remapping module 20 to remap the original data read / write address of the data read / write request to the target data read / write address, so that the data read / write request can access the data of other memories, for example, the original data read / write address is the storage address of the first memory 300, and after the address remapping, the data read / write request can access the data in the second memory 400; for another example, the original data read / write address is the storage address of the second memory 400, and after the address remapping, the data read / write request can access the data in the first memory 300. At the same time, since the present application configures the corresponding target data read / write address for the data read / write request of each core 200 through the address configuration module 10, rather than using the core to directly configure the address remapping information, the data access control circuit 100 of the present application can be adapted to the Overlay access of the multi-core 200, which can not only realize the multi-core 200 calibration of the automobile data, but also solve the problem of the conflict between the Overlay access and the normal non-volatile memory access in the calibration process of the multi-core 200.

[0066] In some embodiments of the present application, see Figure 3 , Figure 3 Another schematic diagram of the data access control circuit 100 in an embodiment of the present application is shown, wherein the address configuration module 10 includes an arbitration unit 11 and a configuration unit 12; the arbitration unit 11 is used to determine at least one data read and write request as a target data read and write request based on the data read and write requests of multiple cores 200 and a preset priority; the configuration unit 12 is used to configure the corresponding target data read and write address for the target data read and write request.

[0067] For example, if Figure 3In the example, the preset priority is that the data read and write request of core 1> the data read and write request of core 2> the data read and write request of core 3. When the arbitration unit 11 receives the data read and write requests of core 1, core 2, and core 3, the arbitration unit 11 will determine the data read and write request of core 1 as the target data read and write request, and then the configuration unit 12 configures the corresponding target data read and write address for the data read and write request of core 1; after the data read and write request of core 1 is executed, the arbitration unit 11 will determine the data read and write request of core 2 as the target data read and write request, and then the configuration unit 12 configures the corresponding target data read and write address for the target data read and write request of core 2. It can be seen that the present application can configure the corresponding target data read and write addresses for the data read and write requests of multiple cores according to the priority through the arbitration unit 11 and the configuration unit 12, and finally the data access control circuit 100 of the present application can be adapted to the Overlay access of multiple cores 200.

[0068] It should be noted that the setting of the preset priority can be adjusted by those skilled in the art according to actual needs. For example, the priority of a data read / write request for rewriting data is higher than that of a data read / write request for reading data, which is not specifically limited in this application. At the same time, it should be pointed out that in addition to arbitrating multiple data access requests, the address configuration module 10 of this application can also queue the data read / write requests of multiple cores 200, and process the data read / write requests in the queue in sequence, so that the data access control circuit 100 can be adapted to the Overlay access of multiple cores 200.

[0069] In some embodiments of the present application, see Figure 4 , Figure 4 Another schematic diagram of the data access control circuit 100 in an embodiment of the present application is shown, wherein the first memory 300 is connected to the first bus cross matrix 500, the second memory 400 is connected to the second bus cross matrix 600, and the data access control circuit 100 also includes an address judgment module 30; the address judgment module 30 is used to judge whether the target data read and write address is the storage address of the first memory 300 or the storage address of the second memory 400, so that the address judgment module 30 sends the data read and write request to the first memory 300 via the first bus cross matrix 500 and accesses it, or sends the data read and write request to the second memory 400 via the second bus cross matrix 600 and accesses it.

[0070] It should be noted that, since the first memory 300 is a non-volatile memory and the second memory 400 is a volatile memory, the first memory 300 and the second memory 400 are usually connected to different bus cross matrices. For example, the first bus cross matrix 500 connected to the first memory 300 performs data transmission based on an Advanced High-performance Bus, while the second bus cross matrix 600 connected to the second memory 400 performs data transmission based on an Advanced High-performance Bus. After address remapping, since the accessed memory changes, if the data read and write request is still sent to the corresponding bus cross matrix, data read and write errors may occur.

[0071] In the above embodiment, since the data access control circuit 100 also includes an address judgment module 30, the address judgment module 30 can judge whether the target data read / write address is the storage address of the first memory 300 or the storage address of the second memory 400, so that the address judgment module 30 can send the data read / write request to the corresponding bus cross matrix, and finally access the correct memory through the corresponding bus cross matrix, avoiding the phenomenon of accessing the wrong memory due to different bus cross matrices. For example, when the target data read / write address is the storage address of the first memory 300, the data read / write request can be sent to the first bus cross matrix 500, so that the address judgment module 30 sends the data read / write request to the first memory 300 through the first bus cross matrix 500 and performs data access; and when the target data read / write address is the storage address of the second memory 400, the data read / write request can be sent to the second bus cross matrix 600, and the address judgment module 30 sends the data read / write request to the second memory 400 through the second bus cross matrix 600 and performs data access.

[0072] It can be understood that when the first memory 300 or the second memory 400 is connected to the same bus cross matrix through a conversion bridge, the data access control circuit 100 does not need to be provided with an address determination module 30. For example, referring to Figure 5 , Figure 5 Another schematic diagram of the data access control circuit 100 in an embodiment of the present application is shown, wherein the second memory 400 is connected to the first bus cross matrix 500 through a conversion bridge. When the target data read and write address of the data read and write request is the storage address of the second memory 400, the data access control circuit 100 of the present application can access the second memory 400 through the first bus cross matrix 500 and the conversion bridge based on the data read and write request.

[0073] In some embodiments of the present application, for example, the embodiment in which the core 200 has a Flash interface and an AXIM interface, see Figure 6 , Figure 6 Another schematic diagram of the data access control circuit 100 in an embodiment of the present application is shown, wherein the data read and write request includes a first data read and write request for reading data and a second data read and write request for writing data, the first data read and write request can be output by the Flash interface of the core 200, and the second data read and write request can be output by the AXIM interface of the core 200, and the remapping module 20 includes a first remapping unit 21 and a second remapping unit 22; the first remapping unit 21 is used to remap the original data read and write address of the first data read and write request to the target data read and write address; the second remapping unit 22 is used to remap the original data read and write address of the second data read and write request to the target data read and write address.

[0074] That is to say, for the first data read and write request for reading data and the second data read and write request for writing data, the present application respectively sets a first remapping unit 21 and a second remapping unit 22, and the first remapping unit 21 performs address remapping of the first data read and write request, and the second remapping unit 22 performs address remapping of the second data read and write request, thereby decoupling the address remapping of the read data request and the write data request. When the first remapping unit 21 performs address remapping on the read data request, the second remapping unit 22 can also perform address remapping on the write data request, and finally the data access control circuit 100 of the present application can simultaneously realize the access of the read data request and the write data request, which is beneficial to speed up the data access (calibration) speed of multiple cores 200.

[0075] In some embodiments of the present application, see Figure 7 , Figure 7 Another schematic diagram of the data access control circuit 100 in an embodiment of the present application is shown, wherein the address judgment module 30 includes a first judgment unit 31; the first judgment unit 31 is used to judge whether the target data read and write address remapped by the first remapping unit 21 is the storage address of the first memory 300 or the storage address of the second memory 400.

[0076] It should be noted that since the first remapping unit 21 performs address remapping on the first data read / write request for reading data, the target data read / write address after address remapping of the first data read / write request may be the storage address of the first memory 300 or the storage address of the second memory 400. The first judgment unit 31 can send the first data read / write request after address remapping to the corresponding bus cross matrix so that the first data read / write request can read the data in the first memory 300 or the second memory 400.

[0077] In some embodiments of the present application, see Figure 8 , Figure 8 Another schematic diagram of the data access control circuit 100 in an embodiment of the present application is shown, wherein the address judgment module 30 also includes a second judgment unit 32; the second judgment unit 32 is used to judge whether the target data read and write address remapped by the second remapping unit 22 is the storage address of the first memory 300 or the storage address of the second memory 400.

[0078] It should be noted that, when performing data calibration, the second data read / write request for rewriting data is usually to rewrite the data in the second memory 400, and after the data calibration is completed, the calibrated data in the second memory 400 needs to be written back to the first memory 300, and in the embodiment of the present application, a second judgment unit 32 is further provided, which means that the data access control circuit 100 can also, after completing the data calibration, if the second data read / write request for rewriting the data is to rewrite the data in the first memory 300 after address remapping, then the data in the first memory 300 can be rewritten through the second judgment unit 32, thereby achieving the purpose of writing the calibrated data in the second memory 400 back to the first memory 300.

[0079] In some embodiments of the present application, the first memory 300 includes a Flash memory; the second memory 400 includes at least one of an on-chip RAM memory, an off-chip RAM memory, or a core 200 RAM memory. Fig. 9 , Fig. 9 Another schematic diagram of the data access control circuit 100 in an embodiment of the present application is shown, wherein a first bus cross matrix 500 connects multiple on-chip Flash memories, and a second bus cross matrix 600 connects on-chip RAM memory, off-chip RAM memory and core 200 RAM memory. The on-chip RAM memory, off-chip RAM memory or core 200 RAM memory can all be used as the second memory 400 in the calibration process, making the selection of the second memory 400 more flexible, thereby avoiding the phenomenon that the calibration object does not have an external off-chip RAM memory and cannot perform Overlay access to quickly perform data calibration.

[0080] At the same time, it should be noted that Fig. 9Since the second bus cross matrix 600 is connected to the RAM memory of the core 200, the present application can also implement the data calibration process of Overlay access through the RAM memory of the core 200 without setting up an off-chip RAM memory or an off-chip RAM memory. This can not only reduce the data calibration cost, but also facilitate the cores 200 to access each other's RAM memory through the second bus cross matrix 600, thereby improving the data access efficiency between multi-core cores 200.

[0081] It should be pointed out that the modules (such as address configuration module, remapping module, etc.) and units (configuration unit, arbitration unit, first remapping unit, first judgment unit, etc.) involved in the data access control circuit 100 in the present application can be implemented in various ways. For example, each module / unit of the data access control circuit 100 can be implemented using dedicated logic circuits such as multiplexers, gate circuits, registers, counters, etc.

[0082] In order to better implement the data access control circuit 100 in the embodiment of the present application, based on the data access control circuit 100, the present application also provides a data calibration method, see Fig.10 , Fig.10 A schematic diagram of a flow chart of a data calibration method in an embodiment of the present application is shown, wherein the data calibration method includes:

[0083] Step S1001, copying the data to be calibrated in the first memory 300 to the second memory 400;

[0084] Step S1002, using the data access control circuit 100 as described in any of the above embodiments to read and write data in the second memory 400, so as to perform calibration based on the data in the second memory 400;

[0085] The first memory 300 is a non-volatile memory, and the second memory 400 is a volatile memory.

[0086] Since the data access control circuit 100 in the embodiment of the present application can perform overlay access to multiple cores 200, it means that during the data calibration method of the present application, multiple cores 200 can work simultaneously and perform data calibration, which is beneficial to improving the convenience and calibration speed of data calibration.

[0087] The embodiment of the present application also provides a chip, which includes the above-mentioned data access control circuit 100. A chip (Integrated Circuit, IC) is also called a chip, and the chip can be, but is not limited to, a SOC (System on Chip) chip or a SIP (system in package) chip. Since the chip of the present application has the data access control circuit 100 described in the above embodiment, it has all the beneficial effects of the data access control circuit 100 in the above embodiment, which will not be repeated here.

[0088] The embodiment of the present application also provides an electronic device, which includes a device body and a chip as described above provided in the device body. The electronic device may be, but is not limited to, a weight scale, a body fat scale, a nutrition scale, an infrared electronic thermometer, a pulse oximeter, a human body composition analyzer, a mobile power supply, a wireless charger, a fast charger, a car charger, an adapter, a display, a USB (Universal Serial Bus) docking station, a stylus, a true wireless headset, a car central control screen, a car, a smart wearable device, a mobile terminal, and a smart home device. Smart wearable devices include, but are not limited to, smart watches, smart bracelets, and cervical massagers. Mobile terminals include, but are not limited to, smart phones, laptops, tablet computers, and POS (point of sales terminal). Smart home devices include, but are not limited to, smart sockets, smart rice cookers, smart sweepers, and smart lights.

[0089] The above are only preferred embodiments of the present application, and are not intended to limit the present application in any form. Although the present application has been disclosed as above with preferred embodiments, it is not intended to limit the present application. Any technical personnel in the field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present application. However, any brief modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application are still within the scope of the technical solution of the present application.

Claims

1. A data access control circuit, characterized in that: The data access control circuit is used to receive data read and write requests from multiple cores and access at least one first memory or at least one second memory, including: An address configuration module, the address configuration module is used to configure a corresponding target data read / write address for a data read / write request of the kernel, the data read / write request including an original data read / write address; A remapping module, the remapping module is used to remap the original data read / write address of the data read / write request to the target data read / write address; Among them, the original data read and write address includes the storage address of the first memory or the storage address of the second memory, the target data read and write address includes the storage address of the first memory or the storage address of the second memory, and the first memory is a non-volatile memory, and the second memory is a volatile memory.

2. The data access control circuit according to claim 1, characterized in that: The address configuration module includes an arbitration unit and a configuration unit; The arbitration unit is used to determine at least one of the data read / write requests as a target data read / write request according to the data read / write requests of the plurality of cores and a preset priority; The configuration unit is used to configure the corresponding target data read / write address for the target data read / write request.

3. The data access control circuit according to claim 1, characterized in that: The first memory is connected to a first bus cross matrix, the second memory is connected to a second bus cross matrix, and the data access control circuit further includes an address determination module; The address judgment module is used to judge whether the target data read and write address is the storage address of the first memory or the storage address of the second memory, so that the address judgment module sends the data read and write request to the first memory via the first bus cross matrix and accesses it, or sends the data read and write request to the second memory via the second bus cross matrix and accesses it.

4. The data access control circuit according to claim 3, characterized in that: The data read and write request includes a first data read and write request for reading data and a second data read and write request for writing data, and the remapping module includes a first remapping unit and a second remapping unit; The first remapping unit is used to remap the original data read / write address of the first data read / write request to the target data read / write address; The second remapping unit is used to remap the original data read / write address of the second data read / write request to the target data read / write address.

5. The data access control circuit according to claim 4, characterized in that: The address determination module comprises a first determination unit; The first determination unit is used to determine whether the target data read / write address remapped by the first remapping unit is a storage address of the first memory or a storage address of the second memory.

6. The data access control circuit according to claim 5, characterized in that: The address determination module further includes a second determination unit; The second determination unit is used to determine whether the target data read / write address remapped by the second remapping unit is a storage address of the first memory or a storage address of the second memory.

7. The data access control circuit according to any one of claims 1 to 5, characterized in that: The first memory includes a Flash memory; The second memory includes at least one of an on-chip RAM memory, an off-chip RAM memory or a core RAM memory.

8. A data calibration method, characterized in that: include: Copying the data to be calibrated in the first memory to the second memory; Using the data access control circuit as claimed in any one of claims 1 to 7 to read and write the data in the second memory, so as to perform calibration based on the data in the second memory; The first memory is a non-volatile memory, and the second memory is a volatile memory.

9. A chip, characterized in that: The method comprises the data access control circuit as claimed in any one of claims 1 to 7.

10. An electronic device, characterized in that: Comprising the chip as claimed in claim 9.