Multi-channel drive multiplexing system and method, and electronic device and medium
By using a multiplexed system, the control module selects the target output module and the driver module, thus solving the problems of resource waste and unstable operation in FPGA engineering and achieving resource conservation and improved stability.
Patent Information
- Application Number
- PCT/CN2025/107123
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-07-05
- Filing Date
- 2025-07-04
- Publication Date
- 2026-01-08
AI Technical Summary
In FPGA engineering, especially in the development and design of multiple communication channels, existing technologies cannot be designed reasonably, resulting in wasted FPGA LUT resources and unstable program operation.
A multi-channel drive multiplexing system is adopted, including a control module, a drive module, a channel selection module, and an output module. The control module selects the target output module according to functional requirements, generates drive signals, and calls the target drive module to realize communication connection and multiplexing selection.
This approach achieves resource conservation while maintaining a rational design, and improves the stability of program operation.
Smart Images

Figure CN2025107123_08012026_PF_FP_ABST
Abstract
Description
Multipath drive multiplexing system, method, electronic device and medium
[0001] Cross-reference to related applications
[0002] The present disclosure claims priority to the Chinese patent application No. 2024109000918, filed on July 5, 2024, entitled "Multipath drive multiplexing system, method, electronic device and medium", the entire content of which is incorporated herein by reference. TECHNICAL FIELD
[0003] The present disclosure relates to the field of programmable integrated circuit design, in particular to a multipath drive multiplexing system, method, electronic device and medium. BACKGROUND
[0004] At present, in the development process of FPGA engineering, especially when multiple communication channels are involved, the current development design cannot be reasonably designed on the basis of meeting functional requirements, and the current development design needs to directly reuse the drive module, which wastes a large number of FPGA LUT resources, and the program runs is not very stable.
[0005] SUMMARY
[0006] In order to solve the above technical problems, the embodiments of the present disclosure provide a multipath drive multiplexing system, method, electronic device and medium.
[0007] The embodiments of the present disclosure provide a multipath drive multiplexing system, the system comprising: a control module, a plurality of drive modules, a channel selection module and a plurality of output modules;
[0008] The control module is configured to determine a target output module from the plurality of output modules according to actual functional requirements, generate a drive signal according to the target output module, and call a corresponding target drive module from the plurality of drive modules according to the drive signal; the target output module comprises M communication channels;
[0009] The control module is respectively in communication connection with the target drive module and the channel selection module, and is further configured to generate communication data and a channel selection signal according to actual functional requirements;
[0010] The target drive module is in communication connection with the channel selection module, and is configured to generate an enable signal according to the communication data and the drive signal;
[0011] The channel selection module is in communication connection with the target output module, and is configured to enable the target drive module to be in communication connection with the target output module according to the channel selection signal and the enable signal;
[0012] The target driving module is configured to generate a communication signal after being communicatively connected with the target output module.
[0013] The control module sequentially performs communication access on the N communication channels according to a default order, and determines that the communication connection is completed when the N communication channels are accessed.
[0014] In an embodiment, the control module is configured to control the target driving module to perform data collection to generate the enabling signal, update the channel selection signal after receiving the communication signal fed back by the target driving module, and select the M communication channels of the target output module according to the channel selection signal, to determine the N communication channels of the target output module to be used, where M is greater than or equal to N.
[0015] In an embodiment, the target driving module is configured to determine the type of data operation of the target output module.
[0016] The control module is configured to determine that the communication between the target driving module and the target output module is completed after receiving a communication completion signal sent by the target driving module and read data corresponding to the read operation, if the data operation is a read operation.
[0017] The control module is configured to determine that the communication between the target driving module and the target output module fails after receiving a communication failure signal sent by the target driving module, if the data operation is a read operation.
[0018] In an embodiment, the control module is configured to determine that the communication between the target driving module and the target output module is completed after receiving the communication completion signal sent by the target driving module, if the data operation is a write operation.
[0019] The control module is configured to determine that the communication between the target driving module and the target output module fails after receiving the communication failure signal sent by the target driving module, if the data operation is a write operation.
[0020] In an embodiment, the plurality of output modules includes an I2C interface, an SPI interface, and a UART interface; and the control module is configured to determine a target output module from the plurality of output modules according to actual functional requirements.
[0021] In an embodiment, the driving signal includes an I2C driving signal, an SPI driving signal, and a UART driving signal; and the plurality of driving modules includes an I2C driving module, an SPI driving module, and a UART driving module.
[0022] The control module is configured to call the target drive module according to the drive signal.
[0023] The present disclosure also provides a multi-channel drive multiplexing method applied to the multi-channel drive multiplexing system.
[0024] The control module determines a target output module from the plurality of output modules according to actual functional requirements, generates a drive signal according to the target output module, and calls a corresponding target drive module from the plurality of drive modules according to the drive signal.
[0025] The control module generates communication data, a drive signal, and a channel selection signal according to actual functional requirements.
[0026] The target drive module generates an enable signal according to the communication data and the drive signal.
[0027] The target drive module generates a communication signal after being communicatively connected to the target output module.
[0028] The control module updates the channel selection signal after receiving the communication signal fed back by the target drive module, and sequentially communicates with the N communication channels of the target output module according to a default order. When the N communication channels of the target output module are accessed, it is determined that the communication connection is completed.
[0029] In an embodiment, the target drive module determines the type of data operation of the target output module.
[0030] If the data operation is a read operation, the control module determines that the communication between the target drive module and the target output module is completed after receiving the communication completion signal and read data sent by the target drive module. The control module determines that the communication between the target drive module and the target output module fails after receiving the communication failure signal sent by the target drive module.
[0031] If the data operation is a write operation, the control module determines that the communication between the target drive module and the target output module is completed after receiving the communication completion signal sent by the target drive module. The control module determines that the communication between the target drive module and the target output module fails after receiving the communication failure signal sent by the target drive module.
[0032] The present disclosure also provides an electronic device including a memory and a processor. The memory is configured to store a computer program. The computer program performs the multi-channel drive multiplexing method when executed by the processor.
[0033] The embodiment of the present disclosure further provides a computer readable storage medium, which stores a computer program, and the computer program executes the multi-channel drive multiplexing method when running on a processor.
[0034] The multi-channel drive multiplexing system, method, electronic device and medium provided by the present disclosure can meet the purpose of saving resources while reasonably and effectively designing, and a control module is newly added, the drive module is called through the control module, and the stability of program running is improved. BRIEF DESCRIPTION OF DRAWINGS
[0035] In order to more clearly illustrate the technical solutions of the present disclosure, the following will briefly introduce the drawings needed to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present disclosure, and therefore should not be regarded as a limitation on the protection scope of the present disclosure. In the various drawings, similar components are denoted by similar reference numerals.
[0036] Fig. 1 shows a schematic diagram of a module of a multi-channel drive multiplexing system;
[0037] Fig. 2 shows another schematic diagram of a module of a multi-channel drive multiplexing system provided by the embodiment of the present disclosure;
[0038] Fig. 3 shows a flowchart of a multi-channel drive multiplexing method provided by the embodiment of the present disclosure;
[0039] Fig. 4 shows a structural schematic diagram of an electronic device provided by the embodiment of the present disclosure.
[0040] Icon: 10 - control module; 20 - drive module; 30 - channel selection module; 40 - output module; 21 - I2C drive module; 22 - SPI drive module; 23 - UART drive module; 41 - I2C output module; 42 - SPI output module; 43 - UART output module; 400 - electronic device; 401 - transceiver; 402 - processor; 403 - memory. DETAILED DESCRIPTION
[0041] The technical solutions in the embodiments of the present disclosure will be described clearly and completely below in combination with the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments.
[0042] The components of the embodiments of the present disclosure generally described and illustrated in the accompanying drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the accompanying drawings is not intended to limit the scope of the claimed present disclosure, but merely represents selected embodiments of the present disclosure. All other embodiments obtained by those skilled in the art based on the embodiments of the present disclosure without creative labor fall within the scope of protection of the present disclosure.
[0043] Hereinafter, the terms "include", "have", and their conjugates used in the various embodiments of the present disclosure merely mean to indicate that there are particular features, numbers, steps, operations, elements, components, or combinations thereof, and should not be construed as excluding the presence or addition of one or more other features, numbers, steps, operations, elements, components, or combinations thereof.
[0044] In addition, the terms "first", "second", "third", and the like are merely configured to distinguish descriptions, and should not be understood as indicating or implying relative importance.
[0045] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of the present disclosure belong. The terms (such as those defined in commonly used dictionaries) will be interpreted as having a meaning that is the same as the contextual meaning in the relevant technical field and will not be interpreted as having an idealized or overly formal meaning, unless clearly defined in the various embodiments of the present disclosure.
[0046] The embodiment of the present disclosure provides a multi-channel drive multiplexing system. The current multi-channel drive multiplexing system needs to directly multiplex the drive module 20, which leads to waste of too many LUT resources of the FPGA, and therefore the present disclosure provides a multi-channel drive multiplexing system which does not need to directly multiplex the drive module 20, and improves the running stability of the system program.
[0047] Referring to FIG. 1, the system comprises a control module 10, a plurality of drive modules 20, a channel selection module 30 and a plurality of output modules 40; the control module 10 is configured to determine a target output module from the plurality of output modules 40 according to actual functional requirements, generate a drive signal according to the target output module, and call a corresponding target drive module 20 from the plurality of drive modules 20 according to the drive signal; the target output module comprises M communication channels; the control module 10 is in communication connection with the target drive module 20 and the channel selection module 30 respectively, and is further configured to generate communication data and a channel selection signal according to actual functional requirements; the target drive module 20 is in communication connection with the channel selection module 30, and is configured to generate an enable signal according to the communication data and the drive signal; the channel selection module 30 is in communication connection with the target output module, and is configured to enable the target drive module 20 to be in communication connection with the target output module according to the channel selection signal and the enable signal; the target drive module 20 is configured to generate a communication signal after being in communication connection with the target output module; and the control module 10 sequentially performs communication access on N communication channels according to a default order, and determines that the communication connection is completed when the N communication channels are accessed.
[0048] It should be noted that the control module 10 determines a target output module from the plurality of output modules 40 according to actual functional requirements, generates a drive signal according to the target output module, and calls a corresponding target drive module 20 from the plurality of drive modules 20 according to the drive signal.
[0049] Optionally, the control module 10 determines the number of channels according to functional requirements and hardware circuit design, generates a channel selection signal, controls the target drive module to perform output or input signal collection, and performs multiplexing selection on the enable signal of the corresponding target drive module to select a channel to which the communication signal is specifically output or from which the communication signal is received.
[0050] Optionally, 10 interfaces are required for communication, and communication is started from the first channel, the next channel is selected for communication after the current channel communication is completed, and the communication of all channels is completed.
[0051] In the FPGA logic development process, taking I2C drive multiplexing as an example, one I2C target drive module 20 occupies nearly 170 lookup table resources. In the design of the entire project, the number of downstream I2C devices may vary from zero to several hundred. At this time, directly calling the target drive module 20 is obviously not feasible. At this time, the multi-drive multiplexing system designed by the present disclosure can be used to achieve the design purpose of meeting functional requirements. Referring to FIG. 2, FIG. 2 shows another module schematic diagram of the multi-drive multiplexing system provided by the embodiment of the present disclosure.
[0052] The control module 10 is configured to control the target drive module 20 to perform data collection to generate an enable signal, update a channel selection signal after receiving a communication signal fed back by the target drive module 20, and select the M communication channels of the target output module according to the channel selection signal to determine the N communication channels of the target output module to be used, where M is greater than or equal to N.
[0053] Optionally, the control module 10 is configured to control the target drive module 20 to perform data collection to generate an enable signal, select the multiple communication channels according to the channel selection signal, and determine the multiple communication channels to be used. The determined multiple communication channels need to be communicated in sequence, and the communication results fed back by the target drive module 20 are recorded to determine whether all the determined multiple communication channels have completed communication. If it is confirmed that the communication is completed, the communication is ended.
[0054] In an embodiment, the multiple output modules 40 include an I2C output module 41, an SPI output module 42, and a UART output module 43; and the control module 10 is configured to determine the target output module from the multiple output modules 40 according to actual functional requirements.
[0055] The I2C output module 41 is an I2C interface, the SPI output module 42 is an SPI interface, and the UART output module 43 is a UART interface.
[0056] Optionally, according to the functional requirements, the target output module needs to select the I2C interface for communication, so the I2C drive module 21 needs to be called by the control module 10 during design.
[0057] In an embodiment, the drive signal includes an I2C drive signal, an SPI drive signal, and a UART drive signal; the multiple drive modules 20 include an I2C drive module 21, an SPI drive module 22, and a UART drive module 23; and the control module 10 is configured to call the target drive module 20 according to the drive signal.
[0058] In the embodiment, the control module 10 generates data and read-write commands required to be transmitted and I2C driving signals to the I2C driving module 21, and generates channel selection signals to the channel selection module 30; the target driving module 20 generates SCL signals and SDA signals according to the I2C protocol, and transmits the SCL signals and the SDA signals to the channel selection module 30; the channel selection module 30 connects the SCL signals and the SDA signals to the corresponding channels according to the channel selection signals provided by the control module 10; at this time, the I2C driving module 21 can communicate with the I2C output module 41 of the corresponding channel on the hardware circuit.
[0059] In an embodiment, the target driving module 20 is configured to judge the type of data operation of the target output module; the control module 10 is configured to, if the data operation is a read operation, determine that the communication between the target driving module 20 and the target output module is completed after receiving the communication completion signal and the read data sent by the target driving module 20;
[0060] The control module 10 is configured to, if the data operation is a read operation, determine that the communication between the target driving module 20 and the target output module fails after receiving the communication failure signal sent by the target driving module 20.
[0061] It should be noted that the data operation can exist in a read operation or only in a write operation, and when the read operation exists, in the embodiment, the I2C driving module 21 returns the communication completion signal and the read data to the control module 10 when the communication is successful; if the communication fails, the I2C driving module 21 feeds back the communication failure signal to the control module 10. The control module 10 updates the channel selection signal after receiving the feedback of the I2C driving module 21, and performs communication of the next channel until all channels are accessed.
[0062] In an embodiment, the control module 10 is configured to, if the data operation is a write operation, determine that the communication between the target driving module 20 and the target output module is completed after receiving the communication completion signal sent by the target driving module 20;
[0063] The control module 10 is configured to, if the data operation is a write operation, determine that the communication between the target driving module 20 and the target output module fails after receiving the communication failure signal sent by the target driving module 20.
[0064] It should be noted that the data operation can exist in a read operation or only in a write operation, and in the embodiment, if the I2C only has a write operation after the I2C communication is completed, the I2C driving module 21 directly feeds back the communication result of the write operation to the control module 10.
[0065] The embodiment provides a multi-channel drive multiplexing system, wherein the system comprises a control module 10, a plurality of drive modules 20, a channel selection module 30 and a plurality of output modules 40; the control module 10 is configured to determine a target output module from the plurality of output modules 40 according to actual functional requirements, generate a drive signal according to the target output module, and call a corresponding target drive module 20 from the plurality of drive modules 20 according to the drive signal; the target output module comprises M communication channels; the control module 10 is in communication connection with the target drive module 20 and the channel selection module 30 respectively, and is further configured to generate communication data and a channel selection signal according to actual functional requirements; the target drive module 20 is in communication connection with the channel selection module 30, and is configured to generate an enable signal according to the communication data and the drive signal; the channel selection module 30 is in communication connection with the target output module, and is configured to enable the target drive module 20 to be in communication connection with the target output module according to the channel selection signal and the enable signal; the target drive module 20 is configured to generate a communication signal after being in communication connection with the target output module; and the control module 10 sequentially performs communication access on N communication channels in the M communication channels according to a default order, and determines that the communication connection is ended when the N communication channels are accessed.
[0066] In addition, the embodiment of the disclosure also provides a multi-channel drive multiplexing method, which should be configured as a multi-channel drive multiplexing system.
[0067] Referring to FIG. 3, the multi-channel drive multiplexing method comprises the following steps.
[0068] S301, the control module determines a target output module from the plurality of output modules according to actual functional requirements, generates a drive signal according to the target output module, and calls a corresponding target drive module from the plurality of drive modules according to the drive signal.
[0069] S302, the control module generates communication data, a drive signal and a channel selection signal according to actual functional requirements.
[0070] S303, the target drive module generates an enable signal according to the communication data and the drive signal.
[0071] S304, the target drive module generates a communication signal after being in communication connection with the target output module.
[0072] S305, after receiving the communication signal fed back by the target drive module, the control module updates the channel selection signal, sequentially performs communication access on N communication channels of the target output module according to a default order, and determines that the communication connection is ended when the N communication channels of the target output module are accessed.
[0073] In one embodiment, the type of data operation of the target output module is determined by the target driving module.
[0074] If the data operation is a read operation, the control module determines that the communication between the target driver module and the target output module is complete after receiving the communication completion signal sent by the target driver module and reading the data; the control module determines that the communication between the target driver module and the target output module has failed after receiving the communication failure signal sent by the target driver module.
[0075] If the data operation is a write operation, the control module determines that the communication between the target driver module and the target output module is complete after receiving the communication completion signal sent by the target driver module; the control module determines that the communication between the target driver module and the target output module has failed after receiving the communication failure signal sent by the target driver module.
[0076] The multiplexing method provided in this embodiment is applied to the multiplexing system provided in Embodiment 1. To avoid repetition, it will not be described again.
[0077] This embodiment provides a multiplexing method for multiplexing drivers, which applies to a multiplexing system. The system includes a control module, multiple driver modules, a channel selection module, and multiple output modules. The control module is configured to determine a target output module from the multiple output modules based on actual functional requirements, generate a drive signal based on the target output module, and call the corresponding target driver module from the multiple driver modules based on the drive signal. The target output module includes M communication channels. The control module is communicatively connected to both the target driver module and the channel selection module, and is also configured to generate communication data and a channel selection signal based on actual functional requirements. The target driver module is communicatively connected to the channel selection module and is configured to generate an enable signal based on the communication data and the drive signal. The channel selection module is communicatively connected to the target output module and is configured to enable the target driver module to communicate with the target output module based on the channel selection signal and the enable signal. The target driver module is configured to generate a communication signal after establishing a communication connection with the target output module. The control module sequentially accesses N of the M communication channels according to a default order, and determines the end of the communication connection when all N communication channels have been accessed. This disclosure achieves the goal of saving resources while making reasonable and effective designs, and adds a control module that calls the driver module, thereby improving the stability of program operation.
[0078] Furthermore, this disclosure also provides an electronic device, including a memory and a processor. The memory stores a computer program, and the computer program executes the multiplexing method provided in the above embodiments when it runs on the processor.
[0079] Optionally, referring to FIG. 4, the electronic device 400 comprises a transceiver 401, a bus interface and a processor 402, the processor 402 is configured to: determine a target output module from a plurality of output modules according to actual functional requirements by a control module, generate a driving signal according to the target output module, and call a corresponding target driving module from a plurality of driving modules according to the driving signal; generate communication data, a driving signal and a channel selection signal according to actual functional requirements; the target driving module generates an enable signal according to the communication data and the driving signal; the target driving module generates a communication signal after being communicatively connected with the target output module; the control module updates the channel selection signal after receiving the communication signal fed back by the target driving module, and sequentially performs communication access on N communication channels of the target output module according to a default order, and determines that the communication connection is completed when the N communication channels of the target output module are accessed.
[0080] In an embodiment, the processor 402 is further configured to: determine a type of data operation of the target output module by the target driving module.
[0081] If the data operation is a read operation, the control module determines that the communication between the target driving module and the target output module is completed after receiving the communication completion signal and the read data sent by the target driving module; and the control module determines that the communication between the target driving module and the target output module fails after receiving the communication failure signal sent by the target driving module.
[0082] If the data operation is a write operation, the control module determines that the communication between the target driving module and the target output module is completed after receiving the communication completion signal sent by the target driving module; and the control module determines that the communication between the target driving module and the target output module fails after receiving the communication failure signal sent by the target driving module.
[0083] In the embodiments of the present disclosure, the electronic device 400 further comprises a memory 403. In FIG. 4, the bus architecture can comprise any number of interconnected buses and bridges, various circuit links of one or more processors represented by the processor 402 and the memory represented by the memory 403. The bus architecture can also link various other circuits such as peripheral devices, voltage stabilizers and power management circuits, which are well known in the art, and thus, further description thereof will not be given herein. The bus interface provides an interface. The transceiver 401 can be a plurality of elements, i.e., comprising a transmitter and a receiver, providing a unit configured to communicate with various other devices on a transmission medium. The processor 402 is responsible for managing the bus architecture and general processing, and the memory 403 can store data used by the processor 402 when performing operations.
[0084] The electronic device 400 provided by the embodiments of the present disclosure can execute the steps of the multiplexing method provided by the method embodiments, and details are not described herein again to avoid repetition.
[0085] The present disclosure also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the multiplexing method provided by the above embodiments is implemented.
[0086] In the present embodiment, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, an optical disk, or the like.
[0087] The computer-readable storage medium provided by the present embodiment can implement the multiplexing method provided by the embodiment 2, and details are not described herein again to avoid repetition.
[0088] It should be noted that, in the present document, the term "comprising" or "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or terminal including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such a process, method, article or terminal. Without more limitations, the element defined by the statement "including a" does not exclude the presence of another identical element in the process, method, article or terminal including the element.
[0089] From the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment method can be realized by means of software and necessary general hardware platform, of course, it can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes a plurality of instructions for causing a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the method of each embodiment of the present disclosure.
[0090] The embodiments of the present disclosure are described above in combination with the drawings, but the present disclosure is not limited to the above specific embodiments, and the above specific embodiments are only illustrative, not restrictive. Those skilled in the art can make many forms under the inspiration of the present disclosure without departing from the scope of the present disclosure and the protection scope of the claims. Industrial applicability
[0091] The embodiment of the present disclosure provides a multi-channel drive multiplexing system, method, electronic device and medium, which can meet the purpose of saving resources while reasonably and effectively designing, and a control module is newly added, the control module is called for a drive module, and the stability of program running is improved.
Claims
1. A multiplexed multiphase drive system, comprising: The system comprises a control module, a plurality of drive modules, a channel selection module and a plurality of output modules; The control module is configured to determine a target output module from the plurality of output modules according to actual functional requirements, generate a drive signal according to the target output module, and call a corresponding target drive module from the plurality of drive modules according to the drive signal; the target output module comprises M communication channels; The control module is in communication connection with the target drive module and the channel selection module respectively, and is further configured to generate communication data and a channel selection signal according to actual functional requirements; The target drive module is in communication connection with the channel selection module, and is configured to generate an enable signal according to the communication data and the drive signal; The channel selection module is in communication connection with the target output module, and is configured to enable the target drive module to be in communication connection with the target output module according to the channel selection signal and the enable signal; The target drive module is configured to generate a communication signal after being in communication connection with the target output module; The control module sequentially performs communication access on N communication channels in the M communication channels according to a default order, and determines that the communication connection is completed when the N communication channels are accessed.
2. The multiplexed drive multiplexing system of claim 1, wherein, The control module is configured to control the target drive module to perform data collection to generate the enable signal, update the channel selection signal after receiving the communication signal fed back by the target drive module, and select the M communication channels of the target output module according to the channel selection signal to determine N communication channels of the target output module to be used, wherein M is greater than or equal to N.
3. The multiplexed drive system of any of claims 1-2, wherein, The target drive module is configured to judge the type of data operation of the target output module; The control module is configured to determine that the communication between the target drive module and the target output module is completed after receiving the communication completion signal sent by the target drive module and the read data corresponding to the read operation if the data operation is a read operation. The control module is configured to determine that the communication between the target drive module and the target output module fails after receiving the communication failure signal sent by the target drive module if the data operation is a read operation.
4. The multiplexed drive multiplexing system of claim 3, wherein, The control module is configured to determine that the communication between the target drive module and the target output module is completed after receiving the communication completion signal sent by the target drive module if the data operation is a write operation. The control module is configured to determine that the communication between the target drive module and the target output module fails after receiving the communication failure signal sent by the target drive module if the data operation is a write operation.
5. The multiplexed drive system of any of claims 1-4, wherein, The plurality of output modules comprises an I2C interface, an SPI interface and a UART interface; The control module is configured to determine a target output module from the plurality of output modules according to actual functional requirements.
6. The multiplexed drive system of any of claims 1-5, wherein, The drive signal comprises an I2C drive signal, an SPI drive signal and a UART drive signal; The plurality of drive modules comprises an I2C drive module, an SPI drive module and a UART drive module. The control module is configured to call the target drive module according to the drive signal.
7. A multiplexing method of multipath drive, characterized by, The method is applied to any one of the multiplex drive systems in the preceding 1-6, and the method comprises: The control module determines a target output module from the plurality of output modules according to actual functional requirements, generates a drive signal according to the target output module, and calls a corresponding target drive module from the plurality of drive modules according to the drive signal. The control module generates communication data, a drive signal and a channel selection signal according to actual functional requirements; The target drive module generates an enable signal according to the communication data and the drive signal; The target drive module generates a communication signal after being communicatively connected to the target output module; The control module updates the channel selection signal after receiving the communication signal fed back by the target drive module, and sequentially communicates with the N communication channels of the target output module according to a default order, and determines that the communication connection is completed when the N communication channels of the target output module are accessed.
8. The multiplexed drive multiplexing method of claim 7, wherein, The method further comprises: The target drive module determines the type of data operation of the target output module; If the data operation is a read operation, the control module determines that the communication between the target drive module and the target output module is completed after receiving a communication completion signal and read data sent by the target drive module; and the control module determines that the communication between the target drive module and the target output module fails after receiving a communication failure signal sent by the target drive module. If the data operation is a write operation, the control module determines that the communication between the target drive module and the target output module is completed after receiving the communication completion signal sent by the target drive module; and the control module determines that the communication between the target drive module and the target output module fails after receiving a communication failure signal sent by the target drive module.
9. An electronic device, comprising: The memory stores a computer program, and the computer program executes the multiplex drive method of claim 7 or 8 when the processor runs.
10. A computer-readable storage medium, characterized in that, The memory stores a computer program, and the computer program executes the multiplex drive method of claim 7 or 8 when the processor runs.
Citation Information
Patent Citations
Communication method and device, storage medium and electronic equipment
CN118283586A
Multipath drive multiplexing system and method, electronic equipment and medium
CN118780224A
FPGA control circuit
CN216016754U
Method for ensuring remediation of hung multiplexer bus channels
US20150046746A1
Integrated circuit and processing method for memory access, electronic device, and medium
US20240053888A1