Direct Memory Access
By using a linked list in the memory of the electronic system to update the register set, and optimizing the data transfer process in the direct memory access control circuit, the problems of low data transfer efficiency and overloaded CPU in the existing technology are solved, and a more efficient implementation is achieved. Efficient data transfer and lower power consumption.
Patent Information
- Application Number
- CN201910641180.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-07-19
- Filing Date
- 2019-07-16
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2039-07-16
AI Technical Summary
Existing electronic systems have problems of low efficiency and overload of the central processing unit (CPU) during the data transfer process. Especially in the direct memory access control circuit, due to the inefficient update of the register set, the memory during the data transfer process There are too many accesses and the dynamic power consumption is high.
Continuously updating the register bank by using a linked list of records in memory, using the first field to determine which registers in the register bank need to be programmed, and performing data transfers in the direct memory access control circuit, starting the transfer only when a start condition is detected , and generate events at the end of the transfer, reducing unnecessary register updates and memory accesses.
It improves the efficiency of data transfer, reduces the load on the central processing unit, reduces the dynamic power consumption of the memory, and optimizes the operational fluency and power consumption of the system.
Smart Images

Figure CN110737617B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims the benefit of French Patent Application No. 1856705 filed on July 19, 2018, which is incorporated herein by reference. Technical Field
[0003] The present disclosure relates generally to electronic systems, and in particular embodiments to electronic systems utilizing direct memory access. Background Art
[0004] Direct memory access is a method in an electronic system that enables data to be transferred between a peripheral device and memory, between two peripheral devices, or between two memories without central processing unit (CPU) intervention (other than starting and ending the transfer).
[0005] Direct memory access is usually implemented by a direct memory access control circuit. To perform a data transfer, the circuit reads a record in a linked list of records ("linked list entry" - LLI) from the memory to obtain the parameters of the transfer. The read parameters are temporarily stored in a register component or register bank of the circuit. The circuit then performs the transfer according to the stored parameters. Summary of the invention
[0006] One embodiment overcomes at least some of the disadvantages of known electronic systems.
[0007] One embodiment overcomes at least some of the disadvantages of electronic circuits in which tasks are parameterized by registers that are programmed according to a linked list of records stored in a memory.
[0008] One embodiment overcomes at least some disadvantages of electronic systems in which tasks parameterized by registers are data transferred by direct memory access.
[0009] Thus, according to a first aspect, one embodiment provides a memory comprising at least one linked list of records, each record comprising a first field determining the number of fields of the next record.
[0010] According to one embodiment, each field of the record represents the content to be programmed in a register of the register bank.
[0011] According to one embodiment, the first field determines in which registers the content should be programmed.
[0012] According to one embodiment, the first field includes a plurality of bits, each bit of the plurality of bits identifies a register, and values of the plurality of bits determine a field of the record to be programmed.
[0013] According to one embodiment, each record represents a parameter of the execution of a task.
[0014] According to one embodiment, the task is a data transfer performed by a direct memory access control circuit.
[0015] According to one embodiment, for each record representing a data transfer, the parameters of the execution of the transfer include a transfer start condition and a transfer end event.
[0016] According to one embodiment, the parameters of the execution transmitted also include, for each record, an indication of at least one time when the condition should be detected and at least one time when the event should be generated.
[0017] According to one embodiment, the memory contains a first linked list of records and a second linked list of records, the start condition of the records of the first list corresponding to the detection of an event of the records of the second list.
[0018] According to one embodiment, the memory is of SRAM type.
[0019] According to a first aspect, an embodiment provides a method comprising successively updating a register set according to a linked list of records contained in a memory such as previously defined.
[0020] According to one embodiment, each record determines one of the consecutive updates.
[0021] According to one embodiment, the method comprises: reading registers programmed according to a first field of a current record and, for each register, deducing therefrom whether a next record comprises a field according to which the register should be programmed during a next programming of the register group. During the next programming of the register group, programming the corresponding register in the register group based on each field of the next record.
[0022] According to a first aspect, an embodiment provides an electronic system comprising a memory such as defined above, and a circuit provided with a register set, the circuit being configured to implement the method defined above.
[0023] According to one embodiment, the circuit is a direct memory access controller.
[0024] According to a second aspect, an embodiment provides a memory comprising a linked list of at least one record, each record representing parameters of a data transfer performed by a direct memory access control circuit, the parameters comprising a transfer start condition and a transfer end event.
[0025] According to one embodiment, the parameters further comprise, for each record, an indication of at least one time when the condition should be detected and an indication of at least one time when the event should be generated.
[0026] According to one embodiment, the memory contains a first linked list of records and a second linked list of records, the start condition of the records of the first list corresponding to the detection of an end event of the records of the second list.
[0027] According to one embodiment, each record contains a first field that determines the number of fields of the next record.
[0028] According to one embodiment, each field of the record represents the content to be programmed in a register of the register bank.
[0029] According to one embodiment, the first field determines in which registers the content should be programmed.
[0030] According to one embodiment, the first field includes a plurality of bits, each bit of the plurality of bits identifies a register, and values of the plurality of bits determine a field of the record to be programmed.
[0031] According to one embodiment, the first record in the list contains as many fields as there are registers.
[0032] According to one embodiment, the memory is of SRAM type.
[0033] According to a second aspect, an embodiment provides a method for data transfer via direct memory access, wherein a first transfer is performed on a first channel of a direct memory access control circuit and a second transfer is performed on a second channel of the circuit, each first transfer being parameterized by a corresponding record of a first list of memory such as defined previously.
[0034] According to one embodiment, each record of the first list corresponds to an update of a first register set associated with a first channel, and each record of the second list corresponds to an update of a second register set associated with a second channel.
[0035] According to one embodiment, the current contents of each register set parameterizes the corresponding transfer on the channel having the register set associated therewith.
[0036] According to one embodiment, for each record, the corresponding transfer is started only when the start condition of the record is detected.
[0037] According to a second aspect, an embodiment provides an electronic system comprising a memory such as defined above, and a direct memory access control circuit provided with a plurality of channels, each channel of the plurality of channels being associated with a register set, the circuit being configured to implement the method defined above.
[0038] The foregoing as well as other features and advantages will be discussed in detail in the following non-limiting description of specific embodiments in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] As an example, Figure 1 There is shown very schematically in block form an embodiment of an electronic circuit 1 of the type to which the embodiments to be described are applicable;
[0040] Figure 2 is a flow chart illustrating, in block form, one embodiment of a method for data transfer via direct memory access;
[0041] Figure 3 One embodiment of a register bank of a direct memory access control circuit is schematically shown in block form;
[0042] Figure 4 Schematically shows a circuit comprising a Figure 3 A memory of an embodiment of a linked list of programmable register records;
[0043] Figure 5 A more detailed diagram Figure 2 A flowchart of one embodiment of the steps of the method;
[0044] Figure 6 Another embodiment of a register bank of a direct memory access control circuit is schematically illustrated in block form; and
[0045] Figure 7 is a flow chart illustrating one embodiment of a method of data transfer via direct memory access. DETAILED DESCRIPTION
[0046] In different drawings, the same elements are designated by the same reference numerals. In particular, structural and / or functional elements common to different embodiments may be designated by the same reference numerals and may have the same structure, size and material properties.
[0047] For the sake of clarity, only those steps and elements that are useful for understanding the described embodiments are shown and described in detail. In particular, various parameters currently used for data transfer via direct memory access are not described in detail, and the described embodiments are compatible with these common parameters. In addition, various electronic systems in which direct memory access controllers are provided are not described in detail, and the described embodiments are compatible with most of these common electronic systems.
[0048] As an example, Figure 1 There is shown very schematically in block form an embodiment of an electronic circuit 1 of the type to which the embodiments to be described are applicable.
[0049] The electronic system 1 includes a central processing unit 11 (CPU), such as a state machine, a microprocessor, a programmable logic circuit, etc. The system 1 also includes one or more memories, at least one of which is a RAM 12 (MEM) of the SRAM type, for example, at least one input / output interface 13 (I / O) for communicating with the outside of the system 1 (e.g., of the serial bus type), a direct memory access control circuit 14 (DMA), and one or more data, address and / or control buses between different elements inside the system 1 (here shown in the form of a single bus 15).
[0050] In addition, the system 1 may integrate other functions represented by the block 16 (FCT), such as a processor dedicated to image processing, other interfaces, other memories, etc., depending on the application.
[0051] The system 1 is configured to perform various applications, such as image processing, video encoding and / or decoding, processing of data originating from sensors, etc. Such applications require data transfer between elements inside the system 1 via a bus 15. In order to make the operation of the system 1 smooth and reduce the load of the central processing unit 11, such data transfer is performed by direct memory access under the control of the circuit 14. In this embodiment, the circuit 14 includes a plurality of data transfer channels. Each channel of the circuit 14 enables data transfer to be performed between two elements (circuits and / or memories) of the system 1. Each channel is associated with a register group, which stores the parameters of the transfer for each data transfer performed on the channel.
[0052] When an application must be executed by the system 1, the central processing unit 11 configures the circuit 14 so that the circuit 14 reserves one of these channels for the application. All data transfers of the application are then performed via the channel reserved for the application. In the described embodiment, the source element and / or the destination element of the data to be transferred can change during the execution of the application.
[0053] Figure 2 is a flowchart illustrating an embodiment of a method for data transfer via direct memory access in block form. More specifically, Figure 2 Illustrated is a diagram of, for a given application, continuously updating and Figure 1 A method of associating register groups with channels of circuit 14.
[0054] In an initial step 200 (allocate channel), a channel is allocated to an application by programming a register set associated with the channel with the parameters of the first data transfer of the application. This step is equivalent to indicating to the circuit 14 which linked list of records should be used to parameterize the transfer that will occur on the channel. Each record in the list determines the memory address of the next record. Each record also determines the parameters of the corresponding data transfer, such as an indication that the transfer involves data or data blocks, the starting address of the address range of the source storing the data or data blocks to be transferred, the starting address of the address range of the destination to which the transferred data or data blocks should be copied, the number of data or data blocks to be transferred, the size of the data, the number of data per block, the address offset between two consecutive data or between two consecutive blocks to be transferred, etc. Therefore, each record can correspond to the transfer of a fragment of data, a plurality of data, a data block or a plurality of blocks between a source and a destination.
[0055] According to one embodiment, at step 200 the register set is programmed by reading a first record in the list from the memory 12 at a memory address provided by the central processing unit 11 and by programming the register set based on this record.
[0056] According to another embodiment, at step 200, the register set is directly programmed, for example, at initialization of the system 1 or by the central processing unit 11, without reading the record from the memory 12. Specifically, then, the record of the first record in the list is programmed in the register set.
[0057] After the register set is programmed to allocate the channel to the application, the central processing unit 11 indicates to the circuit 14 that the data transfer for executing the application can start.
[0058] At the next step 202 (Execute Transfer), the circuit 14 performs a data transfer parameterized by the contents of the register set of the channel on the channel reserved for the application, it being understood that such a transfer may involve multiple data or multiple blocks of data.
[0059] A test 203 (REPEAT?) is then performed to determine, from the contents of the register set, whether the data transfer performed at the previous step 202 should be repeated and its parameters stored in the register set.
[0060] If the transfer must be repeated (output of block 203 is yes), the method continues with step 202. It can thus be understood that the transfer is performed in a loop, since the contents of the register set are not modified.
[0061] If the last transfer does not have to be repeated (no output of block 203), the method continues with test 204 (next LLI?). This test determines whether there is a next record in the list based on the current content of the register set, in other words, whether there is still at least one transfer to be performed for the application.
[0062] If there is no next record in the list (no output of block 204), test 204 is followed by step 206 (END), where the channel is released and can thus be allocated to a new application.
[0063] If there is a next record (output of block 204 is yes), test 204 is followed by step 208 (load next LLI) in which the next record is read from memory 12 by circuit 14 and the register set is updated with parameters for the next data transfer to be applied. The method then continues at step 202.
[0064] It should be noted that you can modify Figure 2 In particular, test 203 and test 204 may be performed simultaneously.
[0065] As an example, consider in the remainder of this disclosure the case where the transfer that should occur on the channel is not performed at the data block level, but only at the data level. Also consider when the transfer corresponds to the transfer of multiple data, the data are stored one by one in the source address range and copied one by one to the destination address range.
[0066] Figure 3 An embodiment of a register bank associated with a data transfer channel of the circuit 14 is schematically shown in block form.
[0067] In this example, the register set includes five registers R1, R2, R3, R4 and R5, which enable temporary storage of parameters for data transfer. Registers R1, R2, R3, R4 and R5 are intended to store the starting address S@ of the source of the data to be transferred, the starting address D@ of the address range of the destination of the data to be transferred, the number NB of the data to be transferred, the size BL of the data to be transferred, and the address NLLI@ of the next record in the memory 12, respectively. In the rest of the present disclosure, a linked list register or LLR register designates a register for storing information related to a linked list of records, specifically the address NLLI@. Preferably, the LLR register is the last register in the register set, in this example register R5.
[0068] In this embodiment, one of the plurality of registers (preferably, an LLR register) is also intended to store information related to the next record in the list. This information determines the number of fields of the next record in the list. Each field of the record, for example, represents the content to be programmed in the corresponding register at the next update of the register group. Preferably, during the update, each field is directly copied to the corresponding register. The information related to the next record in the list also determines the register to which each field of the next record is assigned. This information is stored by the bits (e.g., five bits U1, U2, U3, U4 and U5) of the LLR register R5. In this embodiment, bits U1, U2, U3, U4 and U5 are assigned to registers R1, R2, R3, R4 and R5, respectively, and the value of each bit U1, U2, U3, U4, U5 determines whether the next record includes a field representing the content to be programmed in the register (respectively R1, R2, R3, R4, R5). For example, if bit U1 is at a first binary value, eg '1', the next record comprises a field representing what is to be programmed in register R1, and if the bit is at a second binary value, eg '0', the next record comprises no such field.
[0069] As an example, regarding Figure 2 The test 203 described consists in verifying that all bits U1 to U5 are at '0' and that the address @NLLI is not empty. If this is true, this means that the register set does not have to be updated and the last performed pass should be repeated.
[0070] Still as an example, about Figure 2 The test 204 described consists of verifying whether the address @NLLI is empty. If this is true, this means that there is no next record and all passes of the application have been performed.
[0071] It should be noted that, as an example, information related to the number of fields of the next record and the register to which each of these fields is allocated, an indication that the transmission should be repeated and / or an indication that the list does not contain the next record may be represented in a form different from that described above.
[0072] Figure 4 Schematically shows a circuit comprising a Figure 3 A memory of an embodiment of a linked list of registers for programming records (e.g., Figure 1 of memory).
[0073] The memory 12 is divided into a plurality of memory words 41 of a fixed size (e.g. 4 bytes), each memory word being associated with a memory address 43. In this example, the memory 12 contains a linked list of records formed by three records LLI-1, LLI-2 and LLI-3. The fields of the same record are recorded one after another in the memory 12 (here starting from the memory address of the first field of the record). In this example, each field occupies one memory word 41. As a variant, each field may require more than one memory word for its memory storage, or a memory word may contain more than one field. Preferably, the fields of each record follow each other in the same order as the corresponding registers of the register group. In this example, the memory address of a record corresponds to the address of the first field of the record.
[0074] In this example, consider the following situation: Figure 2 At step 200, the register set is programmed according to the first record LLI-1 in the list. Figure 4 As shown in , the first record LLI-1 then includes as many fields as registers, five in this example, so that each register can be programmed using the fields of the record. More specifically, the record LLI-1 includes consecutive fields C1, C2, C3, C4 and C5, representing the content to be programmed in the registers (R1, R2, R3, R4 and R5, respectively). In this example, the fields C1, C2, C3 and C4 of the record LLI-1 represent the address S1@, the address D1@, the number NB-1 and the size BL-1, respectively. The field C5 of the record represents the address @k2 of the next record LLI-2 in the memory 12, as well as information related to the next record LLI-2. In this example, the information related to the next record is in the form of five bits with values '1', '0', '1', '0' and '1', which correspond to the bits U1, U2, U3, U4 and U5 of the register R5, respectively. In this example, the first field C1 of record LLI-1 is recorded in the address memory word @k1, and the following fields C2, C3, C4 and C5 are recorded in the following memory words of the corresponding addresses @k1+4, @k1+8, @k1+12 and @k1+16, where each memory word occupies 4 bytes.
[0075] The second record LLI-2 comprises consecutive fields C1, C3 and C5, which represent the contents to be programmed in registers R1, R3 and R5, respectively. Fields C1 and C2 represent the address S2@ and the number NB-2, respectively, and field C5 represents the address @k3 of the next record LLI-3 and five bits with values '0', '1', '1', '1' and '1', which correspond to bits U1, U2, U3, U4 and U5 of register R5, respectively. In this example, the first field C1 of the record LLI-2 is recorded in the address memory word @k2, and the following fields C3 and C5 are recorded in the following memory words at the corresponding addresses @k2+4 and @k2+8.
[0076] The third record LLI-3 includes consecutive fields C2, C3, C4 and C5, which represent the contents to be programmed in registers R2, R3, R4 and R5, respectively. Fields C2, C3 and C4 represent the address D3@, the number NB-3 and the size BL-3, respectively. In the example shown, field C5 represents the empty address @NULL and the five bits U1 to U5 with the value "0", which indicates that the record LLI-3 is the last one in the list and the transfer corresponding to this record does not have to be repeated. In this example, the first field C2 of the record LLI-3 is recorded in the address memory word @k3, and the following fields C3, C4 and C5 are recorded in the following memory words of the corresponding addresses @k3+4, @k3+8 and @k3+12.
[0077] In the above list, at least some of the records stored in the memory contain a number of fields that is smaller than the number of registers of the register set updated from these records. Therefore, the storage capacity of the memory 12 can be reduced relative to the storage capacity of a memory in which each record of the linked list has as many fields as registers in the register set. The reduction in the storage capacity of the memory 12 results in a reduction in its surface area and static power consumption.
[0078] Figure 5 The above description is illustrated in the form of a flow chart Figure 2 Step 208 of the method is to update the register set based on the records of the linked list of records stored in the memory.
[0079] At initialization step 500 (i=1), in this example, a loop variable i (i is an integer) is initialized to 1.
[0080] At the next test step 502 (Ui=1?), circuit 14 tests the current value of bit Ui of LLR register R5 to determine whether the next record contains a field Ci representing the content to be programmed in register Ri.
[0081] During step 502, if the current value of the bit Ui of the LLR register R5 is '1' (output of block 502 is yes), this means that the next record includes a field Ci representing the content to be programmed in the register Ri. This test is then followed by a step 504 for programming the register Ri with this content (Ri<=Ci). Step 504 is followed by a test 508 (i=5?), during which it is verified whether the current value of each bit Ui of the register R5 has been tested. If so (output of block 508 is yes), the update of the register group based on the next record is completed (end of block, 510). Otherwise (output of block 508 is no), the method continues at step 512 (i=i+1), where the variable i is incremented, after which the method loops back to step 502.
[0082] During step 502, if the current value of bit Ui of LLR register R5 is '0' (output of block 502 is No), this means that the next record does not include a field Ci representing the content to be programmed in register Ri. The method then proceeds directly to step 508 and the content of register Ri remains unchanged.
[0083] When from Figure 4 When updating a register group associated with a channel, the above method makes it possible to update only certain registers in the register group, preferably only registers with modified content between two consecutive passes. This results in a reduction in the number of accesses to the memory 12 relative to the case where all registers in the group would be updated. This reduction in the number of accesses to the memory 12 results in a reduction in the dynamic power consumption of the memory 12 and, more generally, Figure 1 The dynamic power consumption of system 1 is reduced. The advantage here lies in the fact that two consecutive data transfers on the channel reserved for the application usually have certain identical parameters.
[0084] It should be noted that the order and / or number of steps of the above method may be modified. For example, all bits Ui may be read first, and then all updates of the registers may be performed according to the values of the read bits.
[0085] In addition, about Figures 1 to 5 The described embodiments are applicable to register sets of other circuits than direct memory access controllers to parameterize the execution of tasks by that circuit.
[0086] In the above embodiment, as in the case of the direct memory access control circuit, once the channel is allocated to the application (step 200, Figure 2) and the central processing unit 11 has authorized the circuit 14 to perform the transfers of the application, the circuit 14 automatically performs all these transfers without the intervention of the central processing unit 11. After performing all the transfers, the circuit 14 notifies the central processing unit 11, which can then assign the channel to another application. Therefore, the synchronization between two applications executed on two different channels of the circuit 14 can only be performed by the central processing unit 11 at the beginning of the execution of one of the two applications, or at the end of the execution of one of the two applications (when all the records corresponding to the data transfers of the application have been read and the corresponding transfers have been performed).
[0087] Figure 6 An example of another embodiment of a register set of a data transfer channel of the circuit 14 is schematically shown in block form.
[0088] Here Figure 6 The register set includes six registers R1, R2, R3, R4, R5 and R6. In this example, Figure 6 The registers R1, R2, R3 and R4 are similar to Figure 3 The registers R1, R2, R3 and R4 of the register bank are shown in FIG. 1 . The register R5 here is intended to store the transfer start condition ctrl-in and the transfer end event ctrl-out. The register R6 forms a linked list register (LLR) of the register bank and is as follows: Figure 3 , it is intended to store the address NLLI@ of the next record and information related to the next record, in particular the number of fields of the record and to which register each field of the next record is allocated. This information is here stored in the form of six bits U1, U2, U3, U4, U5 and U6 associated with registers R1, R2, R3, R4, R5 and R6 respectively.
[0089] About Figures 1 to 5 The description is similar to the execution of the records in the linked list of records. Figure 6 The update of the register group of the register R6, the records in the list are adjusted accordingly. In particular, each record may include an additional field C6 (not shown) representing the content to be programmed in the register R6. In addition, for each record, the field C6 of the record may then include six bits corresponding to the six bits U1 to U6 of the register R6.
[0090] In an alternative embodiment, the condition ctrl-in and the event ctrl-out are stored in one of the registers R1 to R4 and R6, and the condition ctrl-in can be stored in another register other than the one storing the event ctrl-out. For example, this variation is implemented when one or more of the registers R1 to R4 and R6 contain unused bits, thereby enabling the storage of information ctrl-in and ctrl-out. This makes it possible to suppress the register R5, the LLR register R6 from being assigned the number R5 at this time.
[0091] Figure 7 is a flow chart illustrating an embodiment of data transfer via direct memory access. More specifically, Figure 7 A more detailed illustration Figure 2 Step 202 of the method.
[0092] In a step 801 (ctrl-in?) implemented by the circuit 14, all parameters of the data transfer to be performed are stored in registers of the register bank. Step 801 consists in detecting a transfer start condition ctrl-in (stored in register R5 in this example). As long as the condition ctrl-in is not detected (output of block 801 is no), step 801 is repeated. When the condition ctrl-in is detected (output of block 801 is yes), the method proceeds with step 802 (carry out transfer), during which a data transfer parameterized by the contents of the register bank is performed, and then, once the transfer is completed, during a step 804 (generate ctrl-out), the circuit 14 generates an event ctrl-out.
[0093] In this embodiment, when the end of a first data transfer on a first channel reserved for a first application generates an event ctrl-out, and a condition ctrl-in for starting a second transfer on a second channel reserved for a second application corresponds to the detection of an event ctrl-out, the second transfer can only be started after the generation of the event ctrl-out for the first transfer. Thus, the first and second transfers and therefore the first and second applications can be synchronized with each other directly at the level of the circuit 14, without the intervention of the central processing unit 11, and while these applications are being executed. More generally, providing condition ctrl-in and event ctrl-out for at least some of the data transfers of a plurality of applications executed by the system 1 makes it possible to synchronize these applications together without using a central processing unit, which can be set to standby or even switched off during the execution of these applications.
[0094] In an alternative embodiment not shown, additional parameters are provided indicating at what time during the transfer of multiple data the condition ctrl-in should be detected, for example before the first fragment of the transferred data or before each fragment of the transferred data. Similarly, additional parameters are provided indicating at what time during the transfer of multiple data the event ctrl-out should be generated, for example after the last fragment of the transferred data or after each fragment of the transferred data. The registers and records in the list are then adjusted to integrate these additional parameters. The Figure 7 For example, during the transfer of multiple data, if the condition ctrl-in is detected before each data transfer and the event ctrl-out is generated after each data transfer, steps 801, 802 and 804 are implemented for each piece of data transferred, and step 802 corresponds to the data transfer.
[0095] Providing one or more additional parameters to indicate when the passing of the condition ctrl-in should be detected and when the event ctrl-out should be generated enables control of the granularity with which synchronization between applications executed in parallel by the system 1 is performed.
[0096] It should be noted that the condition ctrl-in of a transfer on a channel may correspond to the detection of an event other than the event ctrl-out generated during a transfer on another channel, for example to an interrupt generated in the system 1 .
[0097] As an example, each condition ctrl-in may correspond to the detection of a level change, for example, the signal corresponding to the condition changes from a high level to a low level or vice versa. For example, each event ctrl-out includes changing the level of the signal corresponding to the event.
[0098] It should be noted that it is possible to implement without bits U1 to U6 Figure 6 and Figure 7 In this case, since there are no conditional updates of registers, each record in the linked list contains as many fields as there are registers.
[0099] In an alternative embodiment not shown, the combination Figures 3 to 7 The described registers and records may integrate one or more additional parameters to manage the transfer of data blocks, and / or source and / or destination address ranges, address shifts between two consecutive fragments of data or two consecutive blocks of data to be transferred.
[0100] In addition, in the case where registers and records are capable of managing the transfer of data blocks, it can be considered that during the transfer of multiple data blocks, the condition ctrl-in is detected before the transfer of each block and / or the event ctrl-out is generated after the transfer of each block. The parameters indicating the time when the condition ctrl-in should be detected and / or the time when the event ctrl-out should be generated will then be adjusted accordingly, as well as the combination of Figure 7 Describe the method.
[0101] Specific embodiments have been described. Those skilled in the art may combine various elements of these various embodiments and variations without showing any inventive step. In addition, those skilled in the art will appreciate various changes and modifications. In particular, the number of registers, the number of parameters stored by the register group, and / or the number of parameters stored by each register may vary.
[0102] In addition, other parameters may be provided. For example, in the case of data transfer via direct memory access, the parameters may indicate whether the data and / or data blocks corresponding to the transfer of the record should be transferred one by one or in a burst manner.
[0103] These changes, modifications and improvements are intended to be part of this disclosure and are intended to fall within the spirit and scope of the present invention. Therefore, the foregoing description is only exemplary and not restrictive. The present invention is limited only by the following claims and their equivalents.
Claims
1. An electronic system comprising: Direct memory access controller; and a memory coupled to the direct memory access controller, the memory storing a linked list of records, each record comprising a plurality of fields, the plurality of fields comprising a first field, wherein the first field of each record comprises a sequence of bits, each bit in the sequence of bits corresponding in a one-to-one ratio to a field in the plurality of fields of a next record, and wherein each field of each record represents content to be programmed in a corresponding register of a register bank.
2. The electronic system of claim 1 , wherein the first field of each record indicates which registers in the register group are programmed during an update of the register group based on the next record based on the values of the sequence of bits of the corresponding record corresponding to the plurality of fields of the next record. 3 . The electronic system of claim 2 , wherein the first field indicates in which registers the content should be programmed. The electronic system of claim 1 , wherein each record represents a parameter of the execution of a task.
5. The electronic system of claim 4, wherein the task is a data transfer performed by the direct memory access controller. 6 . The electronic system of claim 5 , wherein for each record representing a data transfer, the parameters of the execution of the transfer include a transfer start condition and a transfer end event.
7. The electronic system according to claim 6, wherein: The parameters of the passed execution also include, for each record, an indication of when the condition should be detected and when the event should be generated.
8. The electronic system of claim 6, wherein the memory contains a first linked list of records and a second linked list of records, the start condition of the records of the first linked list corresponding to detection of the event of the records of the second linked list.
9. The electronic system of claim 1, the memory comprising static random access memory (SRAM).
10. An electronic system comprising: Central processing unit; a direct memory access controller coupled to the central processing unit via a bus; a plurality of registers associated with the direct memory access controller; and a memory coupled to the direct memory access controller, the memory storing a linked list of records, each record comprising a plurality of fields, the plurality of fields including a first field, wherein the first field of each record comprises a sequence of bits, each bit in the sequence of bits corresponding in a one-to-one ratio to a field in the plurality of fields of a next record, wherein each record represents parameters for execution of a data transfer by the direct memory access controller.
11. The electronic system of claim 10, wherein each field of the record represents content to be programmed in a register of the register bank.
12. The electronic system of claim 11, wherein the first field determines in which registers the content should be programmed.
13. The electronic system of claim 11, wherein the sequence of bits comprises a value that determines the field of the next record to be programmed during an update of the register set based on the next record.
14. The electronic system according to claim 10, wherein: For each record representing a data transfer, the parameters for the execution of the transfer include a transfer start condition and a transfer end event.
15. The electronic system according to claim 14, wherein: The parameters of the passed execution also include, for each record, an indication of when the condition should be detected and when the event should be generated.
16. The electronic system of claim 15, wherein the memory contains a first linked list of records and a second linked list of records, the start condition of the records of the first linked list corresponding to detection of the event of the records of the second linked list.
17. The electronic system of claim 11, wherein the first field of each record indicates which registers in the register group are programmed during an update of the register group based on the next record based on the values of the sequence of bits of the corresponding record corresponding to the multiple fields of the next record.
18. A method for data transfer, comprising: storing a linked list of records in a memory coupled to the direct memory access controller, each record comprising a plurality of fields, the plurality of fields comprising a first field, wherein the first field of each record comprises a sequence of bits, each bit in the sequence of bits corresponding in a one-to-one ratio to a field in the plurality of fields of a next record; and The register set is continuously updated according to the linked list of records based on the values of the bits of the sequence. The method of claim 18 , wherein each record identifies one update in the series of updates.
20. The method of claim 18, further comprising: Reading the register programmed from said first field of the current record; for each register, inferring from the reading whether the next record includes a field from which the register should be programmed during a next programming of the register set; as well as During the next programming of the register group, a corresponding register in the register group is programmed based on each field of the next record.
