Communication interface suitable for use with flexible logic units

By designing heterogeneous hardware systems, including electronic components, hardware programmable units and communication interfaces, the problem of being unable to provide hard real-time and secure control in the existing technology is solved, and the information flow between heterogeneous components is facilitated and secure, improving the It improves the parallelism and hard real-time performance of the system.

CN113544648BActive Publication Date: 2024-09-20SILICON MOBILITY SAS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201880100625.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-12-14
Publication Date
2024-09-20
Estimated Expiration
2038-12-14

AI Technical Summary

Technical Problem

Existing heterogeneous systems fail to provide hard real-time and secure control in the powertrain controlling the electric motors of pure electric or hybrid vehicles, resulting in information flows compromised by the diversity of their respective natures.

Method used

A heterogeneous hardware system is designed, including electronic components, hardware programmable units and communication interfaces. Bidirectional or one-way communication between components is achieved through first and second communication devices, supporting indirect and direct communication to ensure information flow, And through the arbitration device and virtual memory mapping mechanism, the security of task switching and data access is achieved.

Benefits of technology

It facilitates the flow of information between heterogeneous components, ensures hard real-time and security control, avoids data loss during task switching and memory mapping permissions exceeding the scope, and improves the parallelism and hard real-time performance of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113544648B
    Figure CN113544648B
Patent Text Reader

Abstract

The present invention relates to an electronic system, including various components and / or units, so the electronic system can be called a heterogeneous system and special interfaces therebetween. The electronic system of the present invention can be applied in the field of power system digital control, and is particularly aimed at (but not limited to) the control of the powertrain of the electric motor of a pure electric or hybrid vehicle requiring hard real-time and safety control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an electronic system, including various components and / or units, so the electronic system can be called a heterogeneous system. The electronic system of the present invention can be applied to the field of power system digital control, and is particularly aimed at (but not limited to) the control of the powertrain of a pure electric or hybrid vehicle electric motor requiring hard real-time and safety control. Background Art

[0002] Existing heterogeneous systems used in the field of digital control of electric power systems and in particular for controlling the powertrain of electric motors of pure electric or hybrid vehicles are not able to provide the required hard real-time and safety control.

[0003] Purpose of the Invention

[0004] The present invention provides (a combination of) solutions to facilitate the flow of information (data) between these components and / or units - which might otherwise be impaired due to the diversity of their respective natures. Summary of the invention

[0005] The present invention provides (combinations of) interfaces to facilitate the flow of information (data) between these components and / or units - which might otherwise be impaired due to the diversity of their respective natures.

[0006] The present invention provides a heterogeneous hardware system (50)(80), comprising: (i) electronic components (10), (50); (ii) (iii) a first communication device (40)(70), suitable for (at least one-way) communication between the electronic component (10) and the hardware programmable unit (20); the heterogeneous hardware system (50)(80) further comprises: (iv) a communication interface (30), (60), arranged between the first communication device (40)(70) and the hardware programmable unit (20) to support (at least one-way) communication between the electronic component (10) and the hardware programmable unit via the first communication device - therefore, indirect communication.

[0007] It should be emphasized that the above components, devices and interfaces are all on the same chip.

[0008] In a preferred embodiment of the invention, the hardware programmable unit (20) as a programmable logic matrix is ​​adapted to execute at least two tasks sequentially and thus task switching occurs during execution of a (user) program on the system.

[0009] In an embodiment of the present invention, the first communication device (40) (70) is suitable for two-way communication between the electronic component (10) and the hardware programmable unit (20).

[0010] In a preferred embodiment of the invention, the communication interface comprises one or more means (150), (130), (210), (220) for storing communications to be exchanged in a queue.

[0011] In a further preferred embodiment, the heterogeneous hardware system comprises one or more second communication devices adapted for (at least unidirectional) direct communication between the electronic component (10) and the hardware programmable unit (20) and arranged therebetween.

[0012] The invention is further directed to a central processing unit or CPU or similar unit having a flexible logic unit or FLU, and also to a peripheral unit having a FLU, although these embodiments may be combined in various ways.

[0013] In such Fig.16 In the first combination shown in , the embodiments are simply combined together, so that each embodiment continues to use its own bus via its own interface, and in particular this results in the following heterogeneous hardware system (300), including: (i) a first electronic component (10), (ii) a second electronic component (53); (iii) a hardware programmable unit (20), suitable for sequentially executing at least two tasks; (iv) a first communication device (40), suitable for communication between the first electronic component (10) and the hardware programmable unit (20); (v) a second communication device (70), suitable for communication between the second electronic component (50) and the hardware programmable unit (20); the heterogeneous hardware system (50)(80) also includes: (vi) a first communication interface (30), arranged between the first communication device (40) and the hardware programmable unit (20), and (vii) a second communication interface (60), arranged between the second communication device (70) and the hardware programmable unit (20).

[0014] exist Fig.17In the second embodiment shown in , the units share the same bus, resulting in the following heterogeneous hardware system (300), including: (i) a first electronic component (10), (ii) a second electronic component (53); (iii) a hardware programmable unit (20), suitable for sequentially executing at least two tasks; (iv) a first communication device (40)(70), suitable for communication between the first electronic component (10) and the hardware programmable unit (20), the heterogeneous hardware system also includes: (v) a first communication interface (30), arranged between the first communication device (40), (70) and the hardware programmable unit (20) (more specifically, its first data port (320)), and (vi) a second communication device (60), arranged between the first communication device (40)(70) and the hardware programmable unit (20) (more specifically, its second data port (310), which is different from the first data port).

[0015] In a preferred embodiment of the present invention, Fig.18 As shown in the foreseen embodiment, an additional arbitration device is shown, which leads to a heterogeneous hardware system (300), comprising: (i) a first electronic component (10), (ii) a second electronic component (53); (iii) a hardware programmable unit (20), suitable for sequentially executing at least two tasks; (iv) a first communication device (40) (70), suitable for communication between the first electronic component (10) and the hardware programmable unit (20), the heterogeneous hardware system also includes: (v) an arbitration device (340), communicating with a data port (330) of the hardware programmable unit (20), (vi) a first communication interface (30), arranged between the first communication device (40), (70) and the arbitration device, and (vii) a second communication interface (60), arranged between the first communication device (40), (70) and the arbitration device.

[0016] Note that the use of the arbitration device described above can be modified to apply to Fig.16 The embodiment shown in . BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 Contemplated are systems to which aspects of the invention may be applied.

[0018] Figure 2 The invention relates to an extended concept of a virtual memory provided by the present invention.

[0019] Figure 3 The concept of a (slave) interface is schematically described.

[0020] Figure 4 A possible schematic diagram of this (slave) interface is provided.

[0021] Figure 5 Provides a concrete implementation of this (slave) interface.

[0022] Figure 6 The communication with the (slave) interface is schematically described in more detail.

[0023] Figure 7 The concept of a (slave) interface with direct bypass in one or both directions is schematically described.

[0024] Figure 8 A further schematic diagram of such a (slave) interface is provided, with an indication of the relevant communications (including the optional concept of a refresh signal).

[0025] Fig. 9 The concept of a (main) interface is schematically described.

[0026] Fig.10 A possible schematic diagram of this (master) interface is provided.

[0027] Fig.11 The concept of a (primary) interface with direct bypass is schematically depicted.

[0028] Fig.12 A specific implementation of this direct bypass is provided.

[0029] Fig.13 Provides a concrete implementation of this (primary) interface.

[0030] Fig.14 A concrete implementation of this (main) interface with direct bypass is provided.

[0031] Fig.15 The concept of a (primary) interface with direct bypass in both directions is schematically described.

[0032] Fig.16 The combined use of two interfaces, each with a separate bus, is schematically described.

[0033] Fig.17 Two interfaces in combination using a shared bus are schematically depicted.

[0034] Fig.18 The combined use of two interfaces sharing a bus and utilizing arbitration means is schematically described.

[0035] Fig.19 A specific implementation on one chip of the interface is provided, with the concept of FLU and triggering device including direct bypass.

[0036] Fig. 20 A concrete implementation of the combinatorial interface with data port arbitration hardware is provided.

[0037] Fig.21 Advantageous operations accomplished by the present invention are described.

[0038] Fig. 22 The specific implementation of the trigger device and its communication with the FLU is described. DETAILED DESCRIPTION

[0039] The present invention relates to an electronic system comprising various components and / or units, so that the electronic system can be called a heterogeneous system. More specifically, the present invention relates to additional devices within the electronic system to facilitate the flow of information (data) between the above-mentioned components and / or units - which may otherwise be impaired due to the diversity of their respective properties.

[0040] The electronic system of the present invention can be applied in the field of digital control of electric power systems, and is particularly intended for (but not limited to) control of the powertrain of electric motors of pure electric or hybrid vehicles requiring hard real-time and safety control.

[0041] A specific embodiment of such an electronic system is an FPCU-type integrated circuit having features such as a "standard" SOC architecture (CPU core(s), interconnect, memory, DMA, communication peripherals) combined with "specialized" subsystems including one or more eFPGA matrices (referred to as Flexible Logic Units or FLUs), for example and preferably with fast task context switching capabilities and / or powertrain-ready peripherals.

[0042] In such a system, it is very important to carefully handle the I / O communication between the FLU, peripherals, and / or CPU in order to fully exploit the eFPGA computing power in terms of parallelism and hard real-time performance.

[0043] The present invention is particularly suitable for handling situations where the FPCU component is responsible for multiple concurrent applications (inverter control, DCDC control, ADAS decision making). For functional safety reasons, each application must be "sandboxed" using a virtualization mechanism to avoid interference between applications.

[0044] More generally, the present invention relates to a heterogeneous hardware system comprising: (i) at least one electronic component; (ii) a hardware programmable unit, which is a programmable logic matrix, and (iii) a communication interface facilitating communication between the electronic component and the unit, wherein the electronic component is (a) a software programmable unit, preferably a microprocessor core or a graphics or similar processor core, or (b) the electronic component is a peripheral hardware unit.

[0045] In the context of FPCU architecture, we can distinguish two kinds of peripherals:

[0046] - "System Interface Peripherals"

[0047] ○ These are dedicated to streaming application data from (to) external systems.

[0048] ○Its role is to extract (encapsulate) the "payload" data from (to) the physical transmission protocol used at the system level.

[0049] - "Processing Accelerator"

[0050] ○These are completely internal to the FPCU

[0051] ○Its function is to speed up complex mathematical operations.

[0052] It is worth noting that the software programmable units and hardware programmable units (CPU / GPU, FLU components respectively) are responsible for executing functions that are completely defined by the end user (i.e., programmable), while the peripheral devices provide a set of predefined and optimized functions.

[0053] Context-agnostic triggering

[0054] In the preferred architecture, many "trigger" signals are transmitted between peripheral devices, DMA and FLU to perform synchronization and sequencing of different functions therein. Therefore, the FLU is able to receive multiple trigger inputs for internal use. In fact, each trigger can be associated with one of the context switch tasks executed in the FLU. The problem is that the trigger signal is a rising edge. The trigger transmitter should ensure that the trigger is long enough to last at least one FLU clock cycle so that the rising edge can be sampled correctly. However, at this time, due to the context switch to another task, the task mapped by the target FLU may be inactive in the FLU. Therefore, the trigger event may be lost. The present invention also provides additional solutions to solve this problem.

[0055] FLU task identification for security and virtualization

[0056] The concept of virtualization is already well known and widely used for software running on CPU cores. In the concept of FPCU components, a part of the firmware actually runs as a function mapped by the FLU. Therefore, the virtualization mechanism must be extended to the FLU. In fact, the problem to be solved is to ensure that the tasks executed in the FLU cannot access memory mapped areas beyond their allowed range. From the system point of view, memory mapping access rights are managed by a multi-layer memory protection unit (MPU) configured by software. When the FLU performs fast context switching between multiple tasks belonging to different applications, hardware mechanisms must be put in place to automatically handle the "sandboxing" of these tasks, because the CPU does not know the switching time and it is not fast enough. Therefore, the CPU software cannot reconfigure the MPU at the right moment regarding the FLU task switch.

[0057] It is emphasized that the system may include a plurality of said electronic components (whether software programmable or peripheral units); hardware programmable units, and communication interfaces for facilitating communication between each of said electronic components and said units.

[0058] The invention will be described first in the context of software programmable units and then in the context of peripheral units, making it possible to address the particularities of each of these contexts. At this stage, it is sufficient to say that both contexts can appear in one system as a combination and that the solutions provided do have commonalities that we will discuss at the end of this description.

[0059] In general, the present invention can be described as a heterogeneous hardware system (50), comprising: (i) an electronic component (10); (ii) a hardware programmable unit (20), which is a programmable logic matrix; (iii) a first communication device (40) (70), suitable for (bidirectional) communication between the electronic component (10) and the hardware programmable unit (20); the heterogeneous hardware system (50) (80) further includes: (iv) a communication interface (30), which is arranged between the first communication device (40) (70) and the hardware programmable unit (20).

[0060] Part A Flexible logic unit combined with CPU or similar components

[0061] As introduced above, the target system considered is FPCU. This means in particular that there is one (or more) CPU cores and one (or more) FLU (eFPGA) matrix in the integrated circuit. In this case, it is required that the CPU can communicate with the functions mapped in the FLU. For this purpose, a conventional SOC interconnect bus is used, with the CPU as the master and the FLU as the slave. Figure 1 An exemplary embodiment is shown on the left.

[0062] Now consider the FLU matrix, which is capable of (very fast) task switching. This means that, on a time-sharing basis, the FLU matrix executes multiple independent tasks, such as Figure 1 As shown on the right side of the figure. Task switch triggers can be managed by hardware. Therefore, software never knows which task is actually running in the FLU at any point in time. Therefore, when the CPU attempts to make a read / write bus access to the FLU, it has no way to ensure that the desired task is actually accessed.

[0063] The solution of the present invention to the above-mentioned problem is as follows Figure 2 and Figure 5 as shown in .

[0064] These solutions create a tight interaction between the FLU and the software compute unit, so that the FLU is treated "as if" it were part of the compute unit itself, thus enabling the extension of the compute unit instruction set with user-defined functions to be executed by the FLU.

[0065] The concept of virtual memory mapping applies in that for a CPU task, or more precisely for the data assigned to said task, a run in the FLU is represented as a separate memory location.

[0066] Each FLU task is associated with a unique identifier (task ID). This identification is done at programming time and is a software architectural decision.

[0067] In the FLU slave interface, some system bus memory mapping areas are pre-allocated to each task that can be executed in the FLU. It is assumed that the system memory mapping is done in a way that the CPU can access these areas efficiently.

[0068] The "offset" between each FLU task memory map area is fixed (hard-coded) at design time.

[0069] From the CPU software perspective, each FLU task register set can be accessed independently through a different address range.

[0070] Available in Figure 3 and Figure 6 A heterogeneous hardware system is more generally recognized in the text, which comprises: a software programmable unit, a programmable logic matrix, suitable for or capable of executing at least two tasks sequentially, whereby task switching is not controlled by the software programmable unit but is under hardware control; (iii) a first communication device, suitable for (but only used in an indirect manner) communication between the electronic component and the hardware programmable unit; the heterogeneous hardware system also comprises: a communication interface, arranged between the first communication device and the hardware programmable unit, the communication interface being suitable for ensuring that access to data inside the hardware programmable unit corresponds to the corresponding task executed therein.

[0071] We now discuss the various subsections of the interface in more detail and Figure 4 and Figure 5 The various sub-parts are shown in FIG.

[0072] The first part of the interface is the system bus interface. This can be a prior art slave interface using a common bus protocol such as APB. The second part of the interface is the FLU memory map decoder, which ensures that each access from the CPU is decoded and associated to its corresponding task ID based on the "virtual" memory mapping principle described earlier. The third part, called the access request queue, accumulates access requests from the previous block until they are processed by the FLU access controller. Each request consists of:

[0073] ●Target FLU task ID, which identifies the function that the CPU wants to access.

[0074] ●FLU task register address

[0075] ●Read / Write Commands

[0076] ●Write data (in case of write command)

[0077] The fourth part is the FLU access controller.

[0078] At any time, this module receives from the FLU kernel the identifier of the active task being executed inside the FLU.

[0079] Whenever an access request is available in the access request queue, the FLU task ID is compared with the request target ID. If both are equal, the following sequence is executed:

[0080] ● FLU access control locks FLU switching. This is necessary to prevent any task switching from being performed during subsequent steps to avoid access corruption.

[0081] ●Perform the requested register access

[0082] ●Access response when pushed to the "Access Response Queue"

[0083] ●FLU switch lock is released

[0084] Note that FLU requests can be processed out of order:

[0085] • If multiple accesses to Task #0 are interleaved with accesses to Task #1, the controller may be configured to process all accesses to Task #0 regardless of their ordering relative to accesses to Task #1.

[0086] The final fifth section is accessing the response queue.

[0087] ●All FLU access responses are queued waiting for the CPU to retrieve them.

[0088] ●Generate an IRQ notification to the CPU to notify the software that a request response is available.

[0089] At this stage, several aspects are worth highlighting.

[0090] Recall that the present invention solves data problems caused by task switching mechanisms that are asynchronous with the operation of the electronic components.

[0091] Furthermore, the above describes an embodiment in which communication from the CPU to the FLU and vice versa is addressed. Programming contexts can be imagined in which the above-mentioned problems occur in one of these directions or are severe only in one of these directions, and similarly the interface can be limited to one of the communication directions.

[0092] However, common to both directions is that the communication interface comprises one or more means for storing communications to be exchanged in a queue.

[0093] Likewise Figure 6 The communication interface shown in, more specifically the fourth part, represented as a FLU access controller, is suitable (see (500)) for locking the hardware programmable unit to a task while accessing the required registers within the hardware programmable unit, and unlocking it thereafter.

[0094] Likewise Figure 6 The communication interface shown in, more specifically the last fifth portion shown as accessing the response queue, is adapted (see (510)) to provide a notification to the CPU to inform the software that a request response is available.

[0095] Note that the communication interface is also a hardware unit. It can also be implemented as a separate FLU, but in the preferred embodiment a dedicated circuit is used.

[0096] Finally, the invention therefore relates to an interface suitable for a heterogeneous hardware system as outlined above, adapted to ensure that accesses to data within said hardware programmable unit correspond to corresponding tasks executed therein, said communication interface comprising one or more means for storing communications to be exchanged in a queue, and adapted to lock said hardware programmable unit to a task and then unlock it while accessing the required registers within said hardware programmable unit, and / or adapted to provide a notification to the CPU that a software request response is available. The interface also has a memory map decoding capability for linking the accesses required by said electronic components to the corresponding tasks, said linking being based on the virtual memory principle.

[0097] trigger

[0098] Consider again that the FLU is in a task switch operation context and a trigger or trigger signal is available to the system, which is an event signal between elements of the FPCU (this is a generalization of the IRS concept that applies only to the CPU).

[0099] Although these triggers can be sampled by the FLU-mapped tasks for their own purposes, the problem is that triggers are by definition temporary. This means that the receiver of the trigger must be permanently "listening" to ensure that it does not miss the event. This is obviously not the case for the FLU task in the context switch scenario.

[0100] The role of the interface is therefore to permanently "listen" for triggers and to forward the trigger to a FLU task whenever it is effectively listening. The interface is therefore extended with a means of associating for each trigger input line a "trigger task ID" information configured to specify to which FLU task the incoming trigger should apply.

[0101] 1. If the task ID executed by the FLU matches the target ID, a trigger pulse is sent without making any changes

[0102] 2. Otherwise, the trigger pulse remains valid until the FLU switches back to the specified target task ID.

[0103] Before describing specific embodiments related to the combination of a flexible logic unit with a peripheral unit in the following sections, it is noted that the previously described embodiments may also be used with such a peripheral unit, if desired.

[0104] Part B: Flexible logic unit combined with peripheral units

[0105] In the target FPCU system, the subsystem is defined by many acquisition peripherals and math accelerators - which are intended to provide a steady stream of data to the functions mapped by the FLU. In the existing technology architecture, all peripherals can be connected via Figure 1 The MCU is accessed through one (or more) system bus master ports on the crossbar shown in the bottom middle. This architecture is convenient in terms of flexibility and hardware complexity. However, it has some inherent limitations, which are a big problem for hard real-time applications:

[0106] ● A "read access" to the system bus requires at least two clock cycles. Therefore, it is not possible to feed the FLU-mapped tasks with new sensor data every clock cycle.

[0107] ● In addition to the FLU itself, the system bus architecture is or can be shared with other master devices (such as the CPU and DMA), which may interfere with FLU transactions by introducing unexpected wait states. Therefore, the application designer must provide timing margins to guarantee real-time constraints. This is an unacceptable waste of computing resources.

[0108] Part B.1 Flexible Logic Cells Combined with Peripheral Cells—Direct Access

[0109] In one aspect of the invention, key data source registers are identified in the peripheral device (example: ADC sample data registers). All of these are collected and used as inputs to one (or more) multiplexers. Therefore, the values ​​of these registers are always available at the input of the multiplexer. The selection of the multiplexer is controlled by the function within the FLU. So the FLU function can get different key input data every clock cycle. The system bus is not used, so there are no spurious wait states on the direct channel.

[0110] In fact, here we consider Figure 1 The heterogeneous hardware system shown in the lower left corner of the figure comprises: (i) an electronic component, which is a (SOC) peripheral hardware unit as defined previously, preferably a plurality of said peripheral hardware units, optionally dedicated to the electric engine control unit hardware function; (ii) a hardware programmable unit, which is a programmable logic matrix, adapted to sequentially execute at least two tasks, whereby the operating frequency is slower than the operating frequency of the peripheral hardware unit;

[0111] In such Fig.11 , Fig.12 , Fig.14 In this aspect of the invention shown in, in addition to the following usual first communication device (bus), which is suitable for communication between the electronic component and the hardware programmable unit, with or without specific interface support further discussed, the heterogeneous hardware system also includes one or more second communication devices, which are suitable for communication between the electronic component and the hardware programmable unit and are arranged between them, and more specifically, the multiple second communication devices are connected to a selection device (multiplexer) controlled by the hardware programmable unit.

[0112] Part B.2 Flexible logic unit combined with peripheral units - Interface

[0113] In addition to the issues mentioned above, a typical electric engine control application usually requires updating multiple PWM channel duty cycles "simultaneously" (i.e., within one clock cycle of the control algorithm running in the FLU). In theory, due to the operating frequency difference between the eFPGA and the system bus, this situation can be handled if the FLU bus master has a wide data port. See Fig.21 .

[0114] Example: Assume that 4 PWM channels need to be updated with 16-bit data each. In this case, one can imagine a 64-bit data master on the FLU "bursting" on the system bus, which actually performs 4 consecutive 16-bit write accesses on the 4 PWMs.

[0115] Unfortunately, in prior art SOC memory maps, the PWM configuration registers are usually not contiguous. Therefore, it is not possible to manage the transfer via system bus "burst" transactions.

[0116] In order to solve the above problems, Fig.13 shown in and Fig. 9 Another specific interface is more generally defined in Fig.14 and Fig.11 The direct access facility shown in FIG. 1 is combined with the direct access facility discussed earlier.

[0117] Generally speaking, a heterogeneous hardware system is disclosed, comprising: (i) an electronic component, which is a (SOC) peripheral hardware unit, preferably a plurality of said peripheral hardware units, optionally dedicated to the hardware function of an electric engine control unit; (ii) a hardware programmable unit, which is a programmable logic matrix, whereby the operating frequency is slower than the operating frequency of the peripheral hardware unit; (iii) a first communication device (70), suitable for communication between the electronic component and the hardware programmable unit; the heterogeneous hardware system (80) further comprises: (iv) a communication interface, arranged between the first communication device and the hardware programmable unit, the communication interface being suitable for ensuring that data transmission from the hardware programmable unit to (the plurality of) said peripheral hardware units is / can be within one clock cycle and / or that data transmission from the (the plurality of) said peripheral hardware units can be scheduled in hard real time.

[0118] The interface denoted as the FLU master interface comprises a first part denoted as (one or more) request queues. Rather than having a conventional bus protocol master interface like APB or AXI, the FLU function simply issues read / write access requests on the master interface module. An issue lasts exactly one clock cycle of the FLU clock. Since the FLU operates at a relatively low frequency relative to the system clock, it does not need to get request confirmations, so the FLU function has no protocol backpressure.

[0119] Each queue transfer request, also represented as a data transfer request or descriptor, includes (at least):

[0120] ●Transfer Descriptor ID

[0121] ●Command (read / write)

[0122] ●Write data (if write request)

[0123] All requests are queued in FIFO for further processing by the transaction manager.

[0124] The second part of the master interface module is represented as a transfer descriptor and has a local memory (RAM) that can be filled by software with a list of transfer descriptor objects.

[0125] Each descriptor contains (at least):

[0126] Descriptor ID

[0127] ●Command (read / write)

[0128] ● An integer specifying the number of transfers to be performed (TRANSNUM)

[0129] ●Integer specifying the data width of each transfer in bytes (TRANSWIDTH)

[0130] ●Memory map base address list (one per transfer)

[0131] Thanks to the transfer descriptors, a single transfer request from the FLU can be converted into multiple separate system accesses at non-contiguous address locations.

[0132] Example:

[0133] Using the following example again: Update 4 PWM channels with their own 16-bit duty cycle information. Assume the FLU has a 64-bit data port to the FLU master interface module.

[0134] In this case, the CPU software will initialize a transfer descriptor that specifies 4 transfers of 16 bits each. For each of these, a specific memory mapped address is also programmed in the transfer descriptor.

[0135] When the FLU task needs to update 4 PWMs, it issues a write request where four 16-bit data are concatenated on a 64-bit port and associated with the above transfer descriptor ID.

[0136] The master interface will then use the transfer descriptor information to perform four consecutive 16-bit bus write transactions at the four given addresses.

[0137] The third part of the interface is the transaction request manager. Whenever there is a request in the request queue, the manager does the following:

[0138] ●Retrieve the transfer descriptor that matches the requested ID.

[0139] ● Split the request into multiple atomic transfers based on the transfer descriptor information.

[0140] ● Push each request to the bus interface queue. Each request consists of:

[0141] ○Request transfer descriptor ID

[0142] ○Memory map address

[0143] ○Command (read / write)

[0144] ○ Data byte enable and associated write data (if write access)

[0145] The fourth part of the interface is the bus interface queue.

[0146] ●Transform atomic requests in bus transaction protocol

[0147] ● In case of read access, the read data is pushed to the read queue with the associated transfer descriptor ID

[0148] The final fifth part of the interface is the read data queue. Whenever read data is available in the read queue, the FLU master interface performs the following operations:

[0149] • It sets the read data and associated descriptor ID on the FLU input port.

[0150] ●Data is maintained for exactly one FLU clock cycle.

[0151] It does not wait for any acknowledgement from the FLU (the FLU algorithm is hard real-time, so it is assumed to have predictable behavior in clock cycles)

[0152] ●Using the descriptor ID, the FLU is able to identify the request to initiate the data.

[0153] The request queue manager can be configured in two modes:

[0154] ● "Immediately": In this mode, requests are processed as quickly as possible

[0155] ● “Burst”: In this mode, requests are kept in the queue until the FLU triggers a “refresh” event.

[0156] At this stage, several aspects are worth highlighting.

[0157] Furthermore, the following embodiments are described above, in which the communication from the peripheral unit to the FLU and the reverse communication are addressed. Contexts can be imagined in which the above-mentioned problems occur in one of these directions or are only severe in one of these directions, and similarly the interface can be limited to one of the communication directions. However, a common point for both directions is that the communication interface comprises one or more means for storing the communications to be exchanged in a queue.

[0158] Please note that this communication interface is also a hardware unit. It can also be implemented as a separate FLU, but in the preferred embodiment a dedicated circuit is used.

[0159] Specific combination

[0160] Part A( Figure 3 and Figure 5 ) and Section B.2 ( Fig. 9 , Fig.13 and Fig.14 The introduction of the FLU main interface described in ) can be as follows Fig.16 , Fig.17 and Fig.18 As shown in the combination, Section B.2 ( Fig. 9 , Fig.13 and Fig.14 ) describes the introduction of the FLU main interface shown in FIG. Fig.12 ) is a further combination of the direct access concept.

[0161] As described above, the present invention describes an embodiment having only a master interface or a slave interface, and also describes an embodiment having a master interface and a slave interface but each is separated, such as Fig.16 and Fig.17 As shown in the embodiment.

[0162] These architectures provide the best throughput performance in FLU input / output data flow. However, they are very expensive in terms of eFPGA interface because the transaction data ports are separate.

[0163] exist Fig.18 and Fig. 20 In the embodiment of the present invention, the master and slave interface functions are still basically the same, except that they share the same read / write data interface. This requires an additional "arbitrator" function to manage the access priority between the two interfaces.

[0164] Regarding the arbitration function, it is worth emphasizing that the FLU capacity is limited, and preferably most of it is reserved for the "real" client algorithms. This means that the interface management logic in the FLU always loses computing resources to the client. From the perspective of the FLU, the arbitration function in the interface of the present invention or the combination of the interface of the present invention is particularly helpful to make the interface in the FLU as simple as possible. In essence, the FLU should preferably have no requirements for pipelines, bursts, pending requests... All these features make the system bus interface complicated and require a lot of resources.

[0165] Note that in general the master interface concept is based on the understanding that the FLU should always run much slower than the master interface and the system bus, so a separate FLU master interface module would be useful if it handled the complexity associated with transaction request confirmations. This is important for saving resources in the FLU, because the management of the request / confirmation sequence requires a lot of resources (state machines, data buffers). In addition, it introduces potential uncertainty in hard real-time processing, because the client must make some worst-case assumptions about the maximum number of wait states that the request / confirmation sequence may cause.

[0166] Note that the concept of direct access described in Section B.2 can also be applied in the context of Section A, such as Figure 7 As shown in general.

[0167] Further considerations

[0168] Queue size

[0169] As mentioned in a preferred embodiment of the present invention, the communication interface comprises one or more means (150), (130), (210), (220) for storing communications to be exchanged in a queue.

[0170] It is worth detailing some of the depth calculation criteria:

[0171] - On the slave interface (used in the CPU-FLU context)

[0172] o The depth of the FIFO may be specified to be equal to the maximum number of words in a transaction "burst" allowed by the interconnect bus protocol.

[0173] ■APB Example: Burst does not exist (therefore, depth = 1)

[0174] ■AHB example: burst length is maximum 19 (thus, depth = 16)

[0175] ■…

[0176] - On the master interface (used in the peripheral-FLU context)

[0177] ○ At least, compute it as from the interface

[0178] o Furthermore, it must be at least equal to the number of "refreshable" data sizes. This size is limited by the operating frequency ratio between the FLU and the interconnect bus.

[0179] Interface Implementation

[0180] As mentioned, the interfaces are preferably dedicated circuits or hardwired. In principle, the interfaces could be placed in the hardware programmable unit or FLU. However, keep in mind that the eFPGA matrix is ​​very large compared to the actual functions that can be mapped inside. This means that we do try to reserve FLU area for user applications. Therefore, any well-defined and sufficiently general hardware function must be hardwired as much as possible (as is the case here).

[0181] Refresh function

[0182] like Fig.14 As shown in , the possibility of refreshing the function can be foreseen.

[0183] Possible use cases include:

[0184] o Imagine a configuration where the peripherals operate at 100 MHz and the FLU operates at 10 MHz.

[0185] ○ Typically, when running a motor control algorithm, it is desirable to update the PWM duty cycle on all PWM channels "simultaneously".

[0186] ○ In our case, “at the same time” means “within one clock cycle of the control algorithm)

[0187] ○ If a 4-phase motor is considered, this means that the FLU must write 4 data to the PWM peripheral through the master interface

[0188] ○So, in any case, FLU needs 4 clock cycles to write this data

[0189] o If no "refresh" function is implemented, then every write is transferred to the PWM almost instantly (since the interface is 10 times faster than the FLU).

[0190] Therefore, the PWM is not updated within a single FLU clock cycle.

[0191] ○ If there is a "refresh" function, the sequence is as follows

[0192] ■The FLU algorithm is designed to estimate the PWM update time to be 5 cycles

[0193] ■FLU requires 4 cycles to write PWM data (these are filled in FIFO but not transferred to interconnect)

[0194] ■FLU triggers a "refresh" request

[0195] ■The master interface then flushes the FIFO requests one by one. However, due to the 10x frequency ratio, 4 transactions can easily proceed in one FLU clock cycle.

[0196] like Figure 8As shown in , you can also add refresh functionality to the slave interface.

Claims

1. An electronic system (80), comprising: (i) an electronic component (53), the electronic component (53) being a peripheral hardware unit, comprising a plurality of peripheral hardware units (51, 52, ...); (ii) a hardware programmable unit (20), the hardware programmable unit (20) being a programmable logic matrix, adapted to sequentially execute at least two tasks, whereby the operating frequency is slower than the operating frequency of the peripheral hardware unit; (iii) a first communication device (70), adapted to communicate between the electronic component (53) and the hardware programmable unit (20); the electronic system (80) further comprising: (iv) a communication interface (60), the communication interface (60) being a hardware unit, arranged on the first Between a communication device (70) and the hardware programmable unit (20), the communication interface (60) is adapted to ensure that data transmission from the hardware programmable unit to the plurality of peripheral hardware units is / can be performed within one clock cycle and / or data transmission from the plurality of peripheral hardware units enables hard real-time scheduling, wherein the communication interface further comprises a first device (200) for interfacing with the first communication device, wherein the first device (200) is capable of dividing a single transmission communication request from the hardware programmable unit into a plurality of independent transmissions on the first communication device based on data transmission requirements provided by the hardware programmable unit.

2. An electronic system according to claim 1, wherein the first communication device is bidirectional and is used for bidirectional communication between the electronic component (53) and the hardware programmable unit (20), and wherein the electronic system also includes a plurality of second communication devices, which are suitable for at least unidirectional communication between the electronic component (53) and the hardware programmable unit (20) and are arranged therebetween, and the plurality of second communication devices are connected to a selection device controlled by the hardware programmable unit (20).

3. The electronic system according to claim 1 or 2, wherein: The communication interface comprises one or more means (210) (220) for storing communications to be exchanged in a queue, and at least one of the means (220) for storing communications to be exchanged from the hardware programmable unit to the electronic component.

4. The electronic system of claim 3, wherein the at least one means (210) for storing communications to be exchanged from the electronic component to the hardware programmable unit uses a basic interface to registers of the hardware programmable unit.

5. An electronic system according to any one of the preceding claims 1-4, wherein the communication interface also includes a first device (200) for interfacing with the first communication device; and a hardware programmable unit communication request manager (230), including a storage device (240) for storing a data transmission requirement linked to an identifier, and the hardware programmable unit communication request manager is capable of linking a communication request from the hardware programmable unit with the data transmission requirement based on an identifier provided by the hardware programmable unit.

6. The electronic system according to any of the preceding claims comprises one or more second communication devices, suitable for at least unidirectional communication between the electronic component (53) and the hardware programmable unit (20), and arranged therebetween, more specifically, the multiple second communication devices are connected to a selection device controlled by the hardware programmable unit (20).