A multi-channel coupled output realization circuit and method based on FPGA

By using an FPGA-based multi-channel coupled output implementation circuit in a multi-channel programmable DC power supply, the problems of channel synchronous output delay and sequential output are solved, efficient multi-channel synchronous output is achieved, and the reliability and flexibility of the system are improved.

CN114200860BActive Publication Date: 2024-10-11CLP KESI INSTR TECH (ANHUI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111420978.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-26
Publication Date
2024-10-11
Estimated Expiration
2041-11-26

AI Technical Summary

Technical Problem

In the design of multi-channel programmable DC power supply, there are problems in achieving channel synchronous output such as inaccurate delay time and inability of multiple channels to output at the same time. The existing software control method is difficult to effectively solve.

Method used

A multi-channel coupling output implementation circuit based on FPGA is used. The FPGA is configured through the CPU system, and digital ports are used to realize multi-channel coupling output between multiple hosts. The host coupling enable and channel coupling enable are set to provide independent and universal output delay times. Setup functions to ensure synchronization of any channel and sequence output.

Benefits of technology

It realizes the multi-channel coupling output function of a single host or multiple hosts, solves the delay problem of channel synchronization output, improves the accuracy and synchronization of the output, simplifies the operation process, and improves the reliability and flexibility of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114200860B_ABST
    Figure CN114200860B_ABST
Patent Text Reader

Abstract

The present invention discloses a multi-channel coupled output realization circuit and method based on FPGA, belonging to the field of program-controlled DC power supply. The circuit includes a CPU system, an FPGA and a digital port; the present invention takes FPGA as the control core, and in the FPGA design, includes a channel 1 coupling processing unit, a channel 2 coupling processing unit, a channel coupled output opening generation unit, a host coupled output opening generation unit, a channel coupled output closing generation unit, a host coupled output closing generation unit, a coupled output opening detection unit, and a coupled output closing detection unit. The multi-channel coupled output function includes a coupled output opening function and a coupled output closing function; with host coupling enable and channel coupling enable, the multi-channel coupled output function of a single host can be realized, and through the digital port of the host, the multi-channel coupled output function of multiple hosts can be realized; in each channel of a single host, the output opening function of any channel and any sequence can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of program-controlled direct current power supply, and in particular to a multi-channel coupled output realization circuit and method based on FPGA. Background Art

[0002] As the heart of electronic instruments and equipment, power supply products can meet the test application needs of defense military units, research institutes, colleges and universities, etc., involving the whole process of development, production, inspection, maintenance, etc. In various automatic test systems, electronic control equipment is installed. These advanced electronic control equipment needs power supply to provide energy, otherwise the system will not work at all. Therefore, the power supply plays a pivotal role in the whole system.

[0003] As an important branch of power supply, programmable DC power supply has the characteristics of programmable voltage and programmable current, so it can achieve a wide range of voltage and current output, and can expand the voltage and current output range through series and parallel connection to meet different power supply and test requirements. Programmable DC power supply has a remote control interface, which can realize host computer operation through programming. It is an ideal device for providing bias power and excitation source for components or final products in an automatic test environment.

[0004] Programmable DC power supplies generally adopt a switching power supply design method, coupled with key technologies such as FPGA-based fast PWM closed-loop control technology, ripple and noise suppression technology, so as to achieve high precision, low ripple and noise, small size and other characteristics. A two-stage conversion output solution is adopted: the first stage pre-regulation realizes the conversion of AC input to DC output, and outputs a fixed voltage of +48V; the second stage DC-DC conversion realizes accurate power output. The two-stage conversion output solution can improve the flexibility of the circuit design of the series product and improve the reliability of the whole machine.

[0005] There are many types of programmable DC power supplies. According to the output power, they can be divided into low-power programmable DC power supplies, medium-power programmable DC power supplies, and high-power programmable DC power supplies; according to the output channel, they can be divided into single-channel programmable DC power supplies and multi-channel programmable DC power supplies.

[0006] Multi-channel programmable DC power supply, due to the large number of output channels, one programmable DC power supply can replace multiple single-channel programmable DC power supplies, which has a very prominent advantage in multi-channel power supply testing occasions.

[0007] Multi-channel programmable DC power supplies usually adopt the "host + module" design method. Based on the modular design concept, a single host can control multiple output channels.

[0008] In the design of multi-channel programmable DC power supply, it is a difficult design problem to realize the synchronous output of multiple output channels. Usually, to realize the synchronous output of channels, software control is adopted, and the sequential output of multiple channels is controlled by software. This design method has problems such as inaccurate delay time between channels and inability to output multiple channels at the same time. Therefore, it is necessary to study the design method of multi-channel synchronous output of programmable DC power supply. Summary of the invention

[0009] In view of the above problems existing in the prior art, the present invention proposes a multi-channel coupled output realization circuit and method based on FPGA, which has a reasonable design, overcomes the shortcomings of the prior art, and has good effects.

[0010] In order to achieve the above-mentioned invention objective 1, the present invention adopts the following technical solution:

[0011] A multi-channel coupled output realization circuit based on FPGA, arranged in a single host, including a CPU system, FPGA and a digital port;

[0012] The CPU system is configured to send setting parameters to the FPGA;

[0013] The FPGA is configured to receive the setting parameters sent by the CPU system and to realize multi-channel coupling output;

[0014] The digital port is configured to realize multi-channel coupling output between multiple hosts, including a coupling output opening pin and a coupling output closing pin; the coupling output opening pin is used to realize the multi-channel coupling output opening function of multiple hosts, and the coupling output closing pin is used to realize the multi-channel coupling output closing function of multiple hosts.

[0015] Furthermore, a single host includes 2 channels, and an FPGA is used as a control core of multi-channel coupling output; the FPGA includes a channel 1 coupling processing unit, a channel 2 coupling processing unit, a channel coupling output on generating unit, a host coupling output on generating unit, a channel coupling output off generating unit, a host coupling output off generating unit, a coupling output on detecting unit, and a coupling output off detecting unit;

[0016] The channel 1 coupling processing unit and the channel 2 coupling processing unit are respectively connected to the channel coupling output on generating unit, the host coupling output on generating unit, the channel coupling output off unit and the host coupling output off generating unit, the channel coupling output on generating unit and the host coupling output on generating unit are respectively connected to the coupling output on detecting unit, and the channel coupling output off generating unit and the host coupling output off generating unit are respectively connected to the coupling output off detecting unit;

[0017] a channel 1 coupling processing unit configured to generate a channel 1 coupling output on signal and a channel 1 coupling output off signal according to a channel 1 setting output on signal, a host coupling output on signal, and a host coupling output off signal, and to generate a channel 1 output on signal and a channel 1 output off signal;

[0018] a channel 2 coupling processing unit, configured to generate a channel 2 coupling output on signal and a channel 2 coupling output off signal according to a channel 2 setting output on signal, a host coupling output on signal, and a host coupling output off signal, and to generate a channel 2 output on signal and a channel 2 output off signal;

[0019] A channel coupling output on generating unit is configured to generate a channel coupling output on signal according to the channel 1 coupling output on signal and the channel 2 coupling output on signal;

[0020] A host coupling output on generating unit, configured to generate a host coupling output on signal according to the channel coupling output on signal and the coupling output on detection signal;

[0021] A channel coupling output closing generating unit is configured to generate a channel coupling output closing signal according to the channel 1 coupling output closing signal and the channel 2 coupling output closing signal;

[0022] A host coupling output closing generating unit is configured to generate a host coupling output closing signal according to the channel coupling output closing signal and the coupling output closing detection signal;

[0023] A coupling output opening detection unit is configured to detect a channel coupling output opening signal and send it to a digital port coupling output opening pin, and simultaneously detect the digital port coupling output opening pin to generate a coupling output opening detection signal;

[0024] The coupling output closure detection unit is configured to detect the channel coupling output closure signal and send it to the digital port coupling output closure pin, and simultaneously detect the digital port coupling output closure pin to generate a coupling output closure detection signal.

[0025] Furthermore, the circuit has host coupling enable and channel coupling enable, which can realize the coupling output function of any channel set by a single host.

[0026] Furthermore, in the two channels of a single host, each channel has an independent channel output open delay time setting function and a channel output close delay time setting function, and each channel can independently output open delay and close delay.

[0027] Furthermore, the circuit has a host universal output opening delay time setting function, which solves the sequential output problem caused by the different output opening delay times inherent in different types of modules.

[0028] In order to achieve the above purpose 2, the present invention adopts the following technical solution:

[0029] A method for realizing multi-channel coupled output based on FPGA adopts the multi-channel coupled output circuit based on FPGA as described above, takes FPGA as the control core, and realizes the multi-channel coupled output function of a single host or multiple hosts.

[0030] Furthermore, by utilizing the host coupling enable, channel coupling enable, host general output opening delay time setting, and each channel independent output opening delay time setting function, the arbitrary channel setting and arbitrary sequence output opening function can be realized.

[0031] Furthermore, realizing the multi-channel coupling output opening function of a single host includes the following steps:

[0032] S1, perform initialization operation: reset host coupling output on signal frame_couple_on, channel coupling output on signal ch_couple_on, channel 1 coupling output on signal ch1_couple_on, channel 2 coupling output on signal ch2_couple_on, channel 1 set output on signal ch1_set_on, channel 2 set output on signal ch2_set_on, host coupling enable signal frame_couple_en, channel 1 coupling enable signal ch1_couple_en, channel 2 coupling enable signal ch2_couple_en, channel 1 coupling output enable signal ch1_couple_outp_en, channel 2 coupling output enable signal ch2_couple_outp_en;

[0033] S2. According to the setting parameters sent by the CPU system to the FPGA, the host coupling enable signal frame_couple_en, the channel 1 coupling enable signal ch1_couple_en, and the channel 2 coupling enable signal ch2_couple_en are set;

[0034] S3. According to the setting parameters sent by the CPU system to the FPGA, set the host general output opening delay time frame_on_delay;

[0035] S4, performing an "OR" operation on the channel coupling output on signal ch_couple_on and the coupling output on detection signal detect_couple_on to generate a host coupling output on signal frame_couple_on; since in the case of a single host with multi-channel coupling output, the coupling output on detection signal detect_couple_on generated by the digital port coupling output on detection unit is always invalid, it is equivalent to directly assigning the channel coupling output on signal ch_couple_on to the host coupling output on signal frame_couple_on, and the channel coupling output on signal ch_couple_on is set to be invalid during the initialization operation;

[0036] S5, simultaneously executing the channel 1 coupling output opening processing operation and the channel 2 coupling output opening processing operation;

[0037] S6. Perform an “OR” operation on the channel 1 coupled output on signal ch1_couple_on and the channel 2 coupled output on signal ch2_couple_on to generate a channel coupled output on signal ch_couple_on, and return to execute S4.

[0038] Furthermore, in S5, the following sub-steps are included:

[0039] S5.1. Set the output open delay time ch1_on_delay of channel 1 and the output open delay time ch2_on_delay of channel 2 according to the setting parameters sent by the CPU system to the FPGA.

[0040] S5.2, channel 1 and channel 2 respectively perform the setting output opening detection operation and the host coupling output opening detection operation simultaneously;

[0041] S5.3, execute the host general output open delay time frame_on_delay operation;

[0042] S5.4, execute the channel 1 output open delay time ch1_on_delay operation and the channel 2 output open delay time ch2_on_delay operation;

[0043] S5.5, after the channel 1 output opening delay time ch1_on_delay operation is completed, the channel 1 coupling processing unit generates a channel 1 output opening signal ch1_outp_on, and the FPGA implements the output opening operation of the program-controlled DC power supply channel 1; after the channel 2 output opening delay time ch2_on_delay operation is completed, the channel 2 coupling processing unit generates a channel 2 output opening signal ch2_outp_on, and the FPGA implements the output opening operation of the program-controlled DC power supply channel 2;

[0044] S5.6, performing an “OR” operation on the host coupling enable signal frame_couple_en and the channel 1 coupling enable signal ch1_couple_en, and performing an “OR” operation on the host coupling enable signal frame_couple_en and the channel 2 coupling enable signal ch2_couple_en, to generate a channel 1 coupling output enable signal ch1_couple_outp_en and a channel 2 coupling output enable signal ch2_couple_outp_en;

[0045] S5.7, detecting the channel 1 coupling output enable signal ch1_couple_outp_en; if it is detected that the channel 1 coupling output enable signal ch1_couple_outp_en is valid, executing S5.8; if it is detected that the channel 1 coupling output enable signal ch1_couple_outp_en is invalid, executing S6;

[0046] Detect channel 2 coupling output enable signal ch2_couple_outp_en; if it is detected that channel 2 coupling output enable signal ch2_couple_outp_en is valid, execute S5.8; if it is detected that channel 2 coupling output enable signal ch2_couple_outp_en is invalid, execute S6;

[0047] S5.8. The channel 1 coupling processing unit generates a channel 1 coupling output turn-on signal ch1_couple_on, and the channel 2 coupling processing unit generates a channel 2 coupling output turn-on signal ch2_couple_on, and the process goes to S6.

[0048] Further, in S5.2, channel 1 and channel 2 perform a set output open detection operation, including the following sub-steps:

[0049] S5.2.1.1. Set the channel 1 output on signal ch1_set_on and the channel 2 output on signal ch2_set_on according to the setting parameters sent by the CPU system to the FPGA;

[0050] S5.2.1.2, check whether the channel 1 output setting on signal ch1_set_on and the channel 2 output setting on signal ch2_set_on are valid;

[0051] If it is detected that the channel 1 output setting on signal ch1_set_on is valid, execute S5.2.1.3; if it is detected that the channel 1 output setting on signal ch1_set_on is invalid, execute S5.2;

[0052] If it is detected that the channel 2 output setting on signal ch2_set_on is valid, execute S5.2.1.3; if it is detected that the channel 2 output setting on signal ch2_set_on is invalid, execute S5.2;

[0053] S5.2.1.3, detect host coupling enable signal frame_couple_en;

[0054] If it is detected that the host coupling enable signal frame_couple_en is valid, execute S5.3;

[0055] Or if it is detected that the host coupling enable signal frame_couple_en is invalid, S5.4 is executed;

[0056] Further, the host coupling output opening detection operation of channel 1 and channel 2 is performed, including the following sub-steps:

[0057] S5.2.2.1. Detect the host coupling output opening signal frame_couple_on;

[0058] If it is detected that the host coupling output on signal frame_couple_on is valid, execute S5.2.2.2;

[0059] If it is detected that the host coupling output on signal frame_couple_on is invalid, then return to execute S5.2;

[0060] S5.2.2.2, detect host coupling enable signal frame_couple_en;

[0061] If it is detected that the host coupling enable signal frame_couple_en is valid, execute S5.2.2.3;

[0062] Or if it is detected that the host coupling enable signal frame_couple_en is invalid, the process returns to execute S5.2;

[0063] S5.2.2.3. Detect channel 1 coupling enable signal ch1_couple_en and channel 2 coupling enable signal ch2_couple_en;

[0064] If it is detected that the channel 1 coupling enable signal ch1_couple_en is valid, then S5.3 is executed; if it is detected that the channel 1 coupling enable signal ch1_couple_en is invalid, then the execution returns to step 5.2;

[0065] If it is detected that the channel 2 coupling enable signal ch2_couple_en is valid, then S5.3 is executed; if it is detected that the channel 2 coupling enable signal ch2_couple_en is invalid, then the execution returns to step 5.2;

[0066] Furthermore, in order to realize the multi-channel coupling output opening delay function and coupling output opening function of two hosts, the coupling output opening pins of the digital ports of the host 1 and the host 2 are connected, and the coupling output opening pins of the host 1 and the host 2 are both bidirectional pins;

[0067] To enable the multi-channel coupled output on two hosts, perform the following steps on Host 1 and Host 2:

[0068] S1, perform initialization related operations, set the host coupling enable signal, channel 1 coupling enable signal and channel 2 coupling enable signal, and set the host general output opening delay time;

[0069] S2, detecting the coupling output on pin of the digital port, and generating a coupling output on detection signal detect_couple_on by the digital port coupling output on detection unit;

[0070] S3, performing an "OR" operation on the channel coupling output on signal ch_couple_on and the coupling output on detection signal detect_couple_on to generate a host coupling output on signal frame_couple_on; and performing a channel 1 coupling output on processing operation and a channel 2 coupling output on processing operation at the same time;

[0071] S4, performing an “OR” operation on the channel 1 coupled output on signal ch1_couple_on and the channel 2 coupled output on signal ch2_couple_on to generate a channel coupled output on signal ch_couple_on;

[0072] S5. On the one hand, in the host 1, according to the channel coupling output on signal ch_couple_on, the coupling output on detection unit generates a digital port coupling output on signal digport_couple_on, and sends it to the digital port coupling output on pin of the host 1 as the digital port coupling output on signal of the host 2;

[0073] In the host 2, according to the channel coupling output on signal ch_couple_on, the coupling output on detection unit generates a digital port coupling output on signal digport_couple_on, which is sent to the digital port coupling output on pin of the host 2 as the digital port coupling output on signal of the host 1;

[0074] On the other hand, the channel coupling output on signal ch_couple_on is sent to the host coupling output on generating unit, and the process returns to execute S2.

[0075] Furthermore, when implementing the multi-channel coupled output shutdown function of a single host or two hosts, it is not necessary to set the host universal output shutdown delay time.

[0076] The present invention has the following beneficial effects:

[0077] Compared with the prior art, the FPGA-based multi-channel coupled output realization circuit and method proposed in the present invention have host coupling enable and channel coupling enable, can realize the multi-channel coupled output function of a single host, and can realize the multi-channel coupled output function of multiple hosts through the digital port of the host; the multi-channel coupled output function includes a coupled output opening function and a coupled output closing function; in each channel of a single host, there are independent output opening delay time setting and output closing delay time setting functions, and at the same time, there is a host universal output opening delay time setting function, which can solve the sequential output problem caused by the different output opening delay times inherent in different types of modules, and can realize the output opening function of any channel and any sequence; the core design method is all implemented in FPGA, with high speed and high portability. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] Figure 1 It is a block diagram of a multi-channel output circuit in the present invention;

[0079] Figure 2 It is a schematic diagram of opening the multi-channel asynchronous output in the present invention;

[0080] Figure 3 It is a schematic diagram of opening multi-channel synchronous output in the present invention;

[0081] Figure 4 It is a design flow chart of opening multi-channel coupled output of a single host in the present invention;

[0082] Figure 5 It is a design flow chart of closing multi-channel coupled output of a single host in the present invention;

[0083] Figure 6 It is a design flow chart of opening multi-channel coupling output of two hosts in the present invention;

[0084] Figure 7 It is a design flow chart of closing multi-channel coupled output of two hosts in the present invention. DETAILED DESCRIPTION

[0085] The specific implementation of the present invention is further described below in conjunction with the accompanying drawings and specific embodiments:

[0086] like Figure 1 As shown, a multi-channel coupled output realization circuit based on FPGA includes a CPU system, FPGA and digital ports. The CPU system is mainly used to send setting parameters to the FPGA; the FPGA is mainly used to receive the setting parameters sent by the CPU system, and is also used to realize the core design method of multi-channel coupled output; multiple hosts can realize multi-channel coupled output of multiple hosts through the digital ports of the hosts.

[0087] The FPGA-based multi-channel coupling output function proposed in the present invention takes FPGA as the control core, and a single host includes 2 channels. The coupling output function includes a coupling output opening function and a coupling output closing function.

[0088] In the FPGA design, it mainly includes channel 1 coupling processing unit, channel 2 coupling processing unit, channel coupling output on generating unit, host coupling output on generating unit, channel coupling output off generating unit, host coupling output off generating unit, coupling output on detection unit, and coupling output off detection unit.

[0089] The channel 1 coupling processing unit generates a channel 1 coupled output on signal and a channel 1 coupled output off signal, and generates a channel 1 output on signal and a channel 1 output off signal according to the channel 1 setting output on signal, the host coupling output on signal and the host coupling output off signal; the channel 2 coupling processing unit generates a channel 2 coupled output on signal and a channel 2 coupled output off signal, and generates a channel 2 output on signal and a channel 2 output off signal according to the channel 2 setting output on signal, the host coupling output on signal and the host coupling output off signal; the channel coupling output on generating unit generates a channel coupling output on signal according to the channel 1 coupling output on signal and the channel 2 coupling output on signal; the host coupling output on generating unit generates a channel coupling output on signal according to the channel coupling output on signal and a coupled output open detection signal to generate a host coupled output open signal; a channel coupled output close generating unit to generate a channel coupled output close signal according to the channel 1 coupled output close signal and the channel 2 coupled output close signal; a host coupled output close generating unit to generate a host coupled output close signal according to the channel coupled output close signal and the coupled output close detection signal; a coupled output open detection unit to detect the channel coupled output open signal and send it to the digital port coupled output open pin, and at the same time detect the digital port coupled output open pin to generate a coupled output open detection signal; a coupled output close detection unit to detect the channel coupled output close signal and send it to the digital port coupled output close pin, and at the same time detect the digital port coupled output close pin to generate a coupled output close detection signal.

[0090] Through the above implementation circuit and FPGA-based implementation method, the multi-channel coupling output opening function and coupling output closing function of a single host can be realized. And through the coupling output opening pin of the host digital port, the multi-channel coupling output opening function of multiple hosts can be realized; through the coupling output closing pin of the host digital port, the multi-channel coupling output closing function of multiple hosts can be realized.

[0091] Based on the above circuit, the present invention also provides a method for realizing multi-channel coupled output based on FPGA.

[0092] In a multi-channel programmable DC power supply, different types of modules have different inherent output opening delay times, which makes it very difficult to achieve multi-channel synchronous output. Figure 2 As shown in the figure, the inherent output opening delay time of channel 1 (module 1) is 16ms, and the inherent output opening delay time of channel 2 (module 2) is 20ms. The output opening delay time of channel 1 is set to 10ms, and the output opening delay time of channel 2 is set to 20ms. If only the output opening delay time of each channel is set, it is difficult to realize the multi-channel synchronous output function because the operator does not know the inherent output opening delay time of each module. Even if the operator knows the inherent output opening delay time of each module, a certain calculation process is required when setting the output opening delay time of each channel, which is very inconvenient to operate and easy to set errors, resulting in unexpected channel output opening sequence.

[0093] In the FPGA-based multi-channel coupling output design proposed by the present invention, there is a host coupling enable, and each channel has an independent channel coupling enable, which can realize the coupling output function of any set channel of a single host. The specific setting parameters are sent to the FPGA by the CPU system, and the FPGA realizes the coupling output function of any set channel according to the host coupling enable and the coupling enable setting values ​​of each channel.

[0094] In the two channels of a single host, each channel has independent channel output open delay time setting and channel output close delay time setting functions, and each channel can achieve independent output open delay and output close delay; at the same time, it has the host universal output open delay time setting function, which can solve the problem of sequential output caused by the different output open delay times inherent in different types of modules. The specific setting parameters are sent to the FPGA by the CPU system, and the FPGA can realize the function of setting the sequential output open function of multiple channels according to the host universal output open delay time setting and the output open delay time setting of each channel.

[0095] Combining the host coupling enable, channel coupling enable, host universal output open delay time setting, and each channel independent output open delay time setting introduced above, it is possible to realize the function of arbitrarily setting channels and arbitrarily setting output open sequence. Figure 3 As shown in the figure, if the inherent output opening delay time of channel 1 (module 1) is 16ms, and the inherent output opening delay time of channel 2 (module 2) is 20ms, the host general output opening delay time is required to be greater than the maximum value of the inherent output opening delay time of each module, such as setting the host general output opening delay time to 30ms. If the setting parameters are host coupling enable valid, channel 1 coupling enable valid, and channel 2 coupling enable valid, after the operator sets the output opening of any channel, the host general output opening delay time operation will be executed first, and this time will cover the inherent output opening delay time of the two channels. When the host general output opening delay time ends, the output opening delay time operation of the two channels will be executed next. Therefore, the synchronous output opening function of the two channels can be realized. If the output opening delay time parameter of each channel is changed, the arbitrary setting sequence output opening function of the two channels can be realized. If the host coupling enable and the coupling enable parameters of each channel are changed, the arbitrary setting channel and arbitrary setting sequence output opening function can be realized.

[0096] In a multi-channel programmable DC power supply, even different types of modules have basically the same inherent output shutdown delay time. Therefore, in the design of the present invention, there is no need to provide a host universal output shutdown delay time setting function. Only the output shutdown delay time setting function of each channel needs to be provided, so as to realize the arbitrary setting of channel and arbitrary setting of sequence output shutdown function.

[0097] Embodiment 1:

[0098] 1. In the multi-channel coupled output design based on FPGA, for a single host, including 2 channels, the present invention provides a single host multi-channel coupled output opening design method based on FPGA, which can realize the arbitrary setting of channels and arbitrary setting of sequence output opening functions, such as Figure 4 As shown, the specific steps are as follows:

[0099] S1, perform initialization operation: reset host coupling output on signal frame_couple_on, channel coupling output on signal ch_couple_on, channel 1 coupling output on signal ch1_couple_on, channel 2 coupling output on signal ch2_couple_on, channel 1 set output on signal ch1_set_on, channel 2 set output on signal ch2_set_on, host coupling enable signal frame_couple_en, channel 1 coupling enable signal ch1_couple_en, channel 2 coupling enable signal ch2_couple_en, channel 1 coupling output enable signal ch1_couple_outp_en, channel 2 coupling output enable signal ch2_couple_outp_en;

[0100] S2. According to the setting parameters sent by the CPU system to the FPGA, the host coupling enable signal frame_couple_en, the channel 1 coupling enable signal ch1_couple_en, and the channel 2 coupling enable signal ch2_couple_en are set;

[0101] S3. According to the setting parameters sent by the CPU system to the FPGA, set the host general output opening delay time frame_on_delay;

[0102] S4, performing an "OR" operation on the channel coupling output on signal ch_couple_on and the coupling output on detection signal detect_couple_on to generate a host coupling output on signal frame_couple_on; since in the case of a single host with multi-channel coupling output, the coupling output on detection signal detect_couple_on generated by the digital port coupling output on detection unit is always invalid, it is equivalent to directly assigning the channel coupling output on signal ch_couple_on to the host coupling output on signal frame_couple_on, and the channel coupling output on signal ch_couple_on is set to be invalid during the initialization operation;

[0103] S5, simultaneously executing the channel 1 coupling output opening processing operation and the channel 2 coupling output opening processing operation;

[0104] Specifically, S5 includes the following sub-steps:

[0105] S5.1. Set the output open delay time ch1_on_delay of channel 1 and the output open delay time ch2_on_delay of channel 2 according to the setting parameters sent by the CPU system to the FPGA.

[0106] S5.2, channel 1 and channel 2 respectively perform the setting output opening detection operation and the host coupling output opening detection operation simultaneously;

[0107] Specifically, in S5.2, the setting output opening detection operation of channel 1 and channel 2 includes the following sub-steps:

[0108] S5.2.1.1. Set the channel 1 output on signal ch1_set_on and the channel 2 output on signal ch2_set_on according to the setting parameters sent by the CPU system to the FPGA;

[0109] S5.2.1.2, check whether the channel 1 output setting on signal ch1_set_on and the channel 2 output setting on signal ch2_set_on are valid;

[0110] If it is detected that the channel 1 output setting on signal ch1_set_on is valid, execute S5.2.1.3; if it is detected that the channel 1 output setting on signal ch1_set_on is invalid, execute S5.2;

[0111] If it is detected that the channel 2 output setting on signal ch2_set_on is valid, execute S5.2.1.3; if it is detected that the channel 2 output setting on signal ch2_set_on is invalid, execute S5.2;

[0112] S5.2.1.3, detect host coupling enable signal frame_couple_en;

[0113] If it is detected that the host coupling enable signal frame_couple_en is valid, execute S5.3;

[0114] Or if it is detected that the host coupling enable signal frame_couple_en is invalid, S5.4 is executed;

[0115] Specifically, the host coupling output opening detection operation of channel 1 and channel 2 is performed, including the following sub-steps:

[0116] S5.2.2.1. Detect the host coupling output opening signal frame_couple_on;

[0117] If it is detected that the host coupling output on signal frame_couple_on is valid, execute S5.2.2.2;

[0118] If it is detected that the host coupling output on signal frame_couple_on is invalid, then return to execute S5.2;

[0119] S5.2.2.2, detect host coupling enable signal frame_couple_en;

[0120] If it is detected that the host coupling enable signal frame_couple_en is valid, execute S5.2.2.3;

[0121] Or if it is detected that the host coupling enable signal frame_couple_en is invalid, the process returns to execute S5.2;

[0122] S5.2.2.3. Detect channel 1 coupling enable signal ch1_couple_en and channel 2 coupling enable signal ch2_couple_en;

[0123] If it is detected that the channel 1 coupling enable signal ch1_couple_en is valid, then S5.3 is executed; if it is detected that the channel 1 coupling enable signal ch1_couple_en is invalid, then the execution returns to step 5.2;

[0124] If it is detected that the channel 2 coupling enable signal ch2_couple_en is valid, then S5.3 is executed; if it is detected that the channel 2 coupling enable signal ch2_couple_en is invalid, then the execution returns to step 5.2;

[0125] S5.3, execute the host general output open delay time frame_on_delay operation;

[0126] S5.4, execute the channel 1 output open delay time ch1_on_delay operation and the channel 2 output open delay time ch2_on_delay operation;

[0127] S5.5, after the channel 1 output opening delay time ch1_on_delay operation is completed, the channel 1 coupling processing unit generates a channel 1 output opening signal ch1_outp_on, and the FPGA implements the output opening operation of the program-controlled DC power supply channel 1; after the channel 2 output opening delay time ch2_on_delay operation is completed, the channel 2 coupling processing unit generates a channel 2 output opening signal ch2_outp_on, and the FPGA implements the output opening operation of the program-controlled DC power supply channel 2;

[0128] S5.6, performing an “OR” operation on the host coupling enable signal frame_couple_en and the channel 1 coupling enable signal ch1_couple_en, and performing an “OR” operation on the host coupling enable signal frame_couple_en and the channel 2 coupling enable signal ch2_couple_en, to generate a channel 1 coupling output enable signal ch1_couple_outp_en and a channel 2 coupling output enable signal ch2_couple_outp_en;

[0129] S5.7, detecting the channel 1 coupling output enable signal ch1_couple_outp_en; if it is detected that the channel 1 coupling output enable signal ch1_couple_outp_en is valid, executing S5.8; if it is detected that the channel 1 coupling output enable signal ch1_couple_outp_en is invalid, executing S6;

[0130] Detect channel 2 coupling output enable signal ch2_couple_outp_en; if it is detected that channel 2 coupling output enable signal ch2_couple_outp_en is valid, execute S5.8; if it is detected that channel 2 coupling output enable signal ch2_couple_outp_en is invalid, execute S6;

[0131] S5.8. The channel 1 coupling processing unit generates a channel 1 coupling output turn-on signal ch1_couple_on, and the channel 2 coupling processing unit generates a channel 2 coupling output turn-on signal ch2_couple_on, and the process goes to S6.

[0132] S6. Perform an “OR” operation on the channel 1 coupled output on signal ch1_couple_on and the channel 2 coupled output on signal ch2_couple_on to generate a channel coupled output on signal ch_couple_on, and return to execute S4.

[0133] 2. In the multi-channel coupled output design based on FPGA, for a single host, including 2 channels, the present invention provides a single host multi-channel coupled output shutdown design method based on FPGA, which can realize arbitrary channel setting and arbitrary sequence output shutdown function, such as Figure 5 As shown, the specific steps are as follows:

[0134] S1, perform initialization operation: reset host coupling output off signal frame_couple_off, channel coupling output off signal ch_couple_off, channel 1 coupling output off signal ch1_couple_off, channel 2 coupling output off signal ch2_couple_off, channel 1 set output off signal ch1_set_off, channel 2 set output off signal ch2_set_off, host coupling enable signal frame_couple_en, channel 1 coupling enable signal ch1_couple_en, channel 2 coupling enable signal ch2_couple_en, channel 1 coupling output enable signal ch1_couple_outp_en, channel 2 coupling output enable signal ch2_couple_outp_en;

[0135] S2. According to the setting parameters sent by the CPU system to the FPGA, the host coupling enable signal frame_couple_en, the channel 1 coupling enable signal ch1_couple_en, and the channel 2 coupling enable signal ch2_couple_en are set;

[0136] S3, performing an "OR" operation on the channel coupling output off signal ch_couple_off and the coupling output off detection signal detect_couple_off to generate a host coupling output off signal frame_couple_off; since in the case of a single host with multi-channel coupling output, the coupling output off detection signal detect_couple_off generated by the digital port coupling output off detection unit is always invalid, it is equivalent to directly assigning the channel coupling output off signal ch_couple_off to the host coupling output off signal frame_couple_off, and the channel coupling output off signal ch_couple_off is set to invalid during the initialization operation;

[0137] S4, simultaneously executing the channel 1 coupling output closing processing operation and the channel 2 coupling output closing processing operation;

[0138] Specifically, S4 includes the following sub-steps:

[0139] S4.1. According to the setting parameters sent by the CPU system to the FPGA, set the output off delay time ch1_off_delay of channel 1 and the output off delay time ch2_off_delay of channel 2;

[0140] S4.2, channel 1 and channel 2 respectively perform the set output shutdown detection operation and the host coupling output shutdown detection operation simultaneously;

[0141] In S4.2, the set output off detection operation for channel 1 and channel 2 includes the following sub-steps:

[0142] S4.2.1.1. According to the setting parameters sent by the CPU system to the FPGA, set the output off signal ch1_set_off of channel 1 and the output off signal ch2_set_off of channel 2;

[0143] S4.2.1.2, check whether the channel 1 output off signal ch1_set_off and the channel 2 output off signal ch2_set_off are valid;

[0144] If it is detected that the channel 1 output off signal ch1_set_off is valid, execute S4.2.1.3; if it is detected that the channel 1 output off signal ch1_set_off is invalid, execute S4.2;

[0145] If it is detected that the channel 2 output off signal ch2_set_off is valid, execute S4.2.1.3; if it is detected that the channel 2 output off signal ch2_set_off is invalid, execute S4.2;

[0146] S4.2.1.3, detect host coupling enable signal frame_couple_en;

[0147] If it is detected that the host coupling enable signal frame_couple_en is valid, execute S4.3;

[0148] Or if it is detected that the host coupling enable signal frame_couple_en is invalid, S4.4 is executed;

[0149] Specifically, the host coupling output closing detection operation performed by channel 1 and channel 1 includes the following sub-steps:

[0150] S4.2.2.1. Detect the host coupling output off signal frame_couple_off;

[0151] If it is detected that the host coupling output off signal frame_couple_off is valid, execute S4.2.2.2;

[0152] If it is detected that the host coupling output off signal frame_couple_off is invalid, then return to execute S4.2;

[0153] S4.2.2.2. Detect host coupling enable signal frame_couple_en;

[0154] If it is detected that the host coupling enable signal frame_couple_en is valid, execute S4.2.2.3;

[0155] Or if it is detected that the host coupling enable signal frame_couple_en is invalid, it returns to execute S4.2;

[0156] S4.2.2.3, detecting channel 1 coupling enable signal ch1_couple_en and channel 2 coupling enable signal ch2_couple_en;

[0157] If it is detected that the channel 1 coupling enable signal ch1_couple_en is valid, execute S4.3; if it is detected that the channel 1 coupling enable signal ch1_couple_en is invalid, return to execute step 4.2;

[0158] If it is detected that the channel 2 coupling enable signal ch2_couple_en is valid, then S4.3 is executed; if it is detected that the channel 2 coupling enable signal ch2_couple_en is invalid, then the execution returns to step 4.2;

[0159] S4.3, execute the channel 1 output off delay time ch1_off_delay operation and the channel 2 output off delay time ch2_off_delay operation;

[0160] S4.4, after the channel 1 output off delay time ch1_off_delay operation is completed, the channel 1 coupling processing unit generates a channel 1 output off signal ch1_outp_off, and the FPGA implements the output off operation of the program-controlled DC power supply channel 1; after the channel 2 output off delay time ch2_off_delay operation is completed, the channel 2 coupling processing unit generates a channel 2 output off signal ch2_outp_off, and the FPGA implements the output off operation of the program-controlled DC power supply channel 2;

[0161] S4.5, performing an “OR” operation on the host coupling enable signal frame_couple_en and the channel 1 coupling enable signal ch1_couple_en, and performing an “OR” operation on the host coupling enable signal frame_couple_en and the channel 2 coupling enable signal ch2_couple_en, to generate a channel 1 coupling output enable signal ch1_couple_outp_en and a channel 2 coupling output enable signal ch2_couple_outp_en;

[0162] S4.6, detecting the channel 1 coupling output enable signal ch1_couple_outp_en; if it is detected that the channel 1 coupling output enable signal ch1_couple_outp_en is valid, executing S4.7; if it is detected that the channel 1 coupling output enable signal ch1_couple_outp_en is invalid, executing S5;

[0163] Detect channel 2 coupling output enable signal ch2_couple_outp_en; if it is detected that channel 2 coupling output enable signal ch2_couple_outp_en is valid, execute S4.7; if it is detected that channel 2 coupling output enable signal ch2_couple_outp_en is invalid, execute S5;

[0164] S4.7, the channel 1 coupling processing unit generates a channel 1 coupling output off signal ch1_couple_off, the channel 2 coupling processing unit generates a channel 2 coupling output off signal ch2_couple_off, and the process goes to S5.

[0165] S5, performing an "OR" operation on the channel 1 coupling output off signal ch1_couple_off and the channel 2 coupling output off signal ch2_couple_off to generate a channel coupling output off signal ch_couple_off, and returning to execute S3.

[0166] Embodiment 2:

[0167] 1. In the multi-channel coupled output design based on FPGA, for two hosts, a single host contains two channels. The present invention provides a multi-channel coupled output opening design method for multiple hosts based on FPGA. The coupled output opening pins of the host digital ports are used between the two hosts to realize the arbitrary setting of channels and arbitrary setting of sequence output opening functions of multiple hosts.

[0168] The coupling output open pins of the digital ports of host 1 and host 2 are connected, and the digital port coupling output open pins are bidirectional pins, which can not only receive the digital port coupling output open signal on the digital port coupling output open pin, but also send the digital port coupling output open signal generated by this host to the digital port coupling output open pin.

[0169] In order to realize the multi-channel coupling output opening function of two hosts, such as Figure 6 As shown, perform the following steps on Host 1 and Host 2:

[0170] S1, perform initialization related operations, set the host coupling enable signal, channel 1 coupling enable signal and channel 2 coupling enable signal, and set the host general output opening delay time;

[0171] S2, detecting the coupling output on pin of the digital port, and generating a coupling output on detection signal detect_couple_on by the digital port coupling output on detection unit;

[0172] S3, performing an "OR" operation on the channel coupling output on signal ch_couple_on and the coupling output on detection signal detect_couple_on to generate a host coupling output on signal frame_couple_on; and performing a channel 1 coupling output on processing operation and a channel 2 coupling output on processing operation at the same time;

[0173] S4, performing an “OR” operation on the channel 1 coupled output on signal ch1_couple_on and the channel 2 coupled output on signal ch2_couple_on to generate a channel coupled output on signal ch_couple_on;

[0174] S5. On the one hand, in the host 1, according to the channel coupling output on signal ch_couple_on, the coupling output on detection unit generates a digital port coupling output on signal digport_couple_on, and sends it to the digital port coupling output on pin of the host 1 as the digital port coupling output on signal of the host 2;

[0175] In the host 2, according to the channel coupling output on signal ch_couple_on, the coupling output on detection unit generates a digital port coupling output on signal digport_couple_on, which is sent to the digital port coupling output on pin of the host 2 as the digital port coupling output on signal of the host 1;

[0176] On the other hand, the channel coupling output on signal ch_couple_on is sent to the host coupling output on generating unit, and the process returns to execute S2.

[0177] 2. In the multi-channel coupled output design based on FPGA, for two hosts, a single host contains two channels. The present invention provides a multi-channel coupled output shutdown design method for multiple hosts based on FPGA. The coupled output shutdown pins of the host digital ports are used between the two hosts to realize the arbitrary setting of channels and arbitrary setting of sequence output shutdown functions of multiple hosts.

[0178] The coupling output shutdown pins of the digital ports of host 1 and host 2 are connected, and the digital port coupling output shutdown pin is a bidirectional pin, which can not only receive the digital port coupling output shutdown signal on the digital port coupling output shutdown pin, but also send the digital port coupling output shutdown signal generated by this host to the digital port coupling output shutdown pin.

[0179] In order to realize the multi-channel coupling output closing function of two hosts, such as Figure 7 As shown, perform the following steps on Host 1 and Host 2:

[0180] S1, perform initialization related operations, set the host coupling enable signal, channel 1 coupling enable signal and channel 2 coupling enable signal;

[0181] S2, detecting the coupling output off pin of the digital port, and generating a coupling output off detection signal detect_couple_off by the digital port coupling output off detection unit;

[0182] S3, performing an "OR" operation on the channel coupling output off signal ch_couple_off and the coupling output off detection signal detect_couple_off to generate a host coupling output off signal frame_couple_off; and performing a channel 1 coupling output off processing operation and a channel 2 coupling output off processing operation at the same time;

[0183] S4, performing an “OR” operation on the channel 1 coupling output off signal ch1_couple_off and the channel 2 coupling output off signal ch2_couple_off to generate a channel coupling output off signal ch_couple_off;

[0184] S5. On the one hand, in the host 1, according to the channel coupling output off signal ch_couple_off, the coupling output off detection unit generates a digital port coupling output off signal digport_couple_off, which is sent to the digital port coupling output off pin of the host 1 as the digital port coupling output off signal of the host 2;

[0185] In the host 2, according to the channel coupling output off signal ch_couple_off, the coupling output off detection unit generates a digital port coupling output off signal digport_couple_off, which is sent to the digital port coupling output off pin of the host 2 as the digital port coupling output off signal of the host 1;

[0186] On the other hand, the channel coupling output off signal ch_couple_off is sent to the host coupling output off generating unit, and the process returns to execute S2.

[0187] Of course, the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by technicians in this technical field within the essential scope of the present invention should also fall within the protection scope of the present invention.

Claims

1. A method for realizing multi-channel coupled output based on FPGA, characterized in that: A multi-channel coupled output realization circuit based on FPGA is adopted, wherein the multi-channel coupled output circuit is arranged in a host computer, and includes a CPU system, FPGA and a digital port; The CPU system is configured to send setting parameters to the FPGA; The FPGA is configured to receive the setting parameters sent by the CPU system and to realize multi-channel coupling output; The digital port is configured to realize multi-channel coupling output between multiple hosts, including a coupling output on pin and a coupling output off pin; the coupling output on pin is used to realize the multi-channel coupling output on function of multiple hosts, and the coupling output off pin is used to realize the multi-channel coupling output off function of multiple hosts; This method uses FPGA as the control core to realize the multi-channel coupling output function of a single host or multiple hosts; To implement the multi-channel coupled output opening function of a single host, the following steps are included: S1, perform initialization operation: reset host coupling output on signal frame_couple_on, channel coupling output on signal ch_couple_on, channel 1 coupling output on signal ch1_couple_on, channel 2 coupling output on signal ch2_couple_on, channel 1 set output on signal ch1_set_on, channel 2 set output on signal ch2_set_on, host coupling enable signal frame_couple_en, channel 1 coupling enable signal ch1_couple_en, channel 2 coupling enable signal ch2_couple_en, channel 1 coupling output enable signal ch1_couple_outp_en, channel 2 coupling output enable signal ch2_couple_outp_en; S2. According to the setting parameters sent by the CPU system to the FPGA, the host coupling enable signal frame_couple_en, the channel 1 coupling enable signal ch1_couple_en, and the channel 2 coupling enable signal ch2_couple_en are set; S3. According to the setting parameters sent by the CPU system to the FPGA, set the host general output opening delay time frame_on_delay; S4, performing an "OR" operation on the channel coupling output on signal ch_couple_on and the coupling output on detection signal detect_couple_on to generate a host coupling output on signal frame_couple_on; since in the case of a single host with multi-channel coupling output, the coupling output on detection signal detect_couple_on generated by the digital port coupling output on detection unit is always invalid, it is equivalent to directly assigning the channel coupling output on signal ch_couple_on to the host coupling output on signal frame_couple_on, and the channel coupling output on signal ch_couple_on is set to be invalid during the initialization operation; S5, simultaneously executing the channel 1 coupling output opening processing operation and the channel 2 coupling output opening processing operation; S6, performing an "OR" operation on the channel 1 coupled output on signal ch1_couple_on and the channel 2 coupled output on signal ch2_couple_on to generate a channel coupled output on signal ch_couple_on, and returning to execute S4; In said S5, the following sub-steps are included: S5.

1. Set the output open delay time ch1_on_delay of channel 1 and the output open delay time ch2_on_delay of channel 2 according to the setting parameters sent by the CPU system to the FPGA. S5.2, simultaneously execute the setting output opening detection operation of channel 1 and channel 2 and the host coupling output opening detection operation; S5.3, execute the host general output open delay time frame_on_delay operation; S5.4, execute the channel 1 output open delay time ch1_on_delay operation and the channel 2 output open delay time ch2_on_delay operation; S5.5, after the channel 1 output opening delay time ch1_on_delay operation is completed, the channel 1 coupling processing unit generates a channel 1 output opening signal ch1_outp_on, and the FPGA implements the output opening operation of the program-controlled DC power supply channel 1; after the channel 2 output opening delay time ch2_on_delay operation is completed, the channel 2 coupling processing unit generates a channel 2 output opening signal ch2_outp_on, and the FPGA implements the output opening operation of the program-controlled DC power supply channel 2; S5.6, performing an "OR" operation on the host coupling enable signal frame_couple_en and the channel 1 coupling enable signal ch1_couple_en, and performing an "OR" operation on the host coupling enable signal frame_couple_en and the channel 2 coupling enable signal ch2_couple_en, to generate a channel 1 coupling output enable signal ch1_couple_outp_en and a channel 2 coupling output enable signal ch2_couple_outp_en; S5.7, detecting the channel 1 coupling output enable signal ch1_couple_outp_en; if it is detected that the channel 1 coupling output enable signal ch1_couple_outp_en is valid, executing S5.8; if it is detected that the channel 1 coupling output enable signal ch1_couple_outp_en is invalid, executing S6; Detect channel 2 coupling output enable signal ch2_couple_outp_en; if it is detected that channel 2 coupling output enable signal ch2_couple_outp_en is valid, execute S5.8; if it is detected that channel 2 coupling output enable signal ch2_couple_outp_en is invalid, execute S6; S5.8, the channel 1 coupling processing unit generates a channel 1 coupling output on signal ch1_couple_on, and the channel 2 coupling processing unit generates a channel 2 coupling output on signal ch2_couple_on, and the process goes to S6; In S5.2, the execution of the set output opening detection operation of channel 1 and channel 2 includes the following sub-steps: S5.2.1.

1. Set the channel 1 output on signal ch1_set_on and the channel 2 output on signal ch2_set_on according to the setting parameters sent by the CPU system to the FPGA; S5.2.1.2, check whether the channel 1 output setting on signal ch1_set_on and the channel 2 output setting on signal ch2_set_on are valid; If it is detected that the channel 1 output setting on signal ch1_set_on is valid, execute S5.2.1.3; if it is detected that the channel 1 output setting on signal ch1_set_on is invalid, execute S5.2; If it is detected that the channel 2 output setting on signal ch2_set_on is valid, execute S5.2.1.3; if it is detected that the channel 2 output setting on signal ch2_set_on is invalid, execute S5.2; S5.2.1.3, detect host coupling enable signal frame_couple_en; If it is detected that the host coupling enable signal frame_couple_en is valid, execute S5.3; Or if it is detected that the host coupling enable signal frame_couple_en is invalid, S5.4 is executed; The host coupling output opening detection operation of executing channel 1 and channel 2 includes the following sub-steps: S5.2.2.

1. Detect the host coupling output opening signal frame_couple_on; If it is detected that the host coupling output on signal frame_couple_on is valid, execute S5.2.2.2; If it is detected that the host coupling output on signal frame_couple_on is invalid, then return to execute S5.2; S5.2.2.2, detect host coupling enable signal frame_couple_en; If it is detected that the host coupling enable signal frame_couple_en is valid, execute S5.2.2.3; Or if it is detected that the host coupling enable signal frame_couple_en is invalid, the process returns to execute S5.2; S5.2.2.

3. Detect channel 1 coupling enable signal ch1_couple_en and channel 2 coupling enable signal ch2_couple_en; If it is detected that the channel 1 coupling enable signal ch1_couple_en is valid, then S5.3 is executed; if it is detected that the channel 1 coupling enable signal ch1_couple_en is invalid, then the execution returns to step 5.2; If it is detected that the channel 2 coupling enable signal ch2_couple_en is valid, S5.3 is executed; if it is detected that the channel 2 coupling enable signal ch2_couple_en is invalid, the process returns to step 5.

2.

2. The method for realizing multi-channel coupled output based on FPGA according to claim 1, characterized in that: Each host includes 2 channels, and uses FPGA as the control core of multi-channel coupling output; in the FPGA, it includes a channel 1 coupling processing unit, a channel 2 coupling processing unit, a channel coupling output opening generating unit, a host coupling output opening generating unit, a channel coupling output closing generating unit, a host coupling output closing generating unit, a coupling output opening detection unit, and a coupling output closing detection unit; The channel 1 coupling processing unit and the channel 2 coupling processing unit are respectively connected to the channel coupling output on generating unit, the host coupling output on generating unit, the channel coupling output off unit and the host coupling output off generating unit, the channel coupling output on generating unit and the host coupling output on generating unit are respectively connected to the coupling output on detecting unit, and the channel coupling output off generating unit and the host coupling output off generating unit are respectively connected to the coupling output off detecting unit; The channel 1 coupling processing unit is configured to generate a channel 1 coupling output on signal and a channel 1 coupling output off signal according to the channel 1 setting output on signal, the host coupling output on signal and the host coupling output off signal, and to generate a channel 1 output on signal and a channel 1 output off signal; The channel 2 coupling processing unit is configured to generate a channel 2 coupling output on signal and a channel 2 coupling output off signal according to the channel 2 setting output on signal, the host coupling output on signal and the host coupling output off signal, and to generate a channel 2 output on signal and a channel 2 output off signal; The channel coupling output on generating unit is configured to generate a channel coupling output on signal according to the channel 1 coupling output on signal and the channel 2 coupling output on signal; The host coupling output on generating unit is configured to generate a host coupling output on signal according to the channel coupling output on signal and the coupling output on detection signal; The channel coupling output closing generating unit is configured to generate a channel coupling output closing signal according to the channel 1 coupling output closing signal and the channel 2 coupling output closing signal; The host coupling output closing generating unit is configured to generate a host coupling output closing signal according to the channel coupling output closing signal and the coupling output closing detection signal; The coupling output opening detection unit is configured to detect the channel coupling output opening signal and send it to the digital port coupling output opening pin, and simultaneously detect the digital port coupling output opening pin to generate a coupling output opening detection signal; The coupling output closure detection unit is configured to detect the channel coupling output closure signal and send it to the digital port coupling output closure pin, and simultaneously detect the digital port coupling output closure pin to generate a coupling output closure detection signal.

3. The method for realizing multi-channel coupled output based on FPGA according to claim 1, characterized in that: The circuit has a host coupling enable and each channel coupling enable.

4. The method for realizing multi-channel coupled output based on FPGA according to claim 1, characterized in that: In the two channels of a single host, each channel has an independent channel output open delay time setting function and channel output close delay time setting function.

5. The method for realizing multi-channel coupled output based on FPGA according to claim 1, characterized in that: The circuit has a host general output opening delay time setting function.

6. The method for realizing multi-channel coupled output based on FPGA according to claim 1, characterized in that: By using the host coupling enable, channel coupling enable, host general output open delay time setting, and each channel independent output open delay time setting function, the function of arbitrarily setting channel and arbitrarily setting sequence output open can be realized.

7. The method for realizing multi-channel coupled output based on FPGA according to claim 6, characterized in that: In order to realize the multi-channel coupling output opening delay function and coupling output opening function of two hosts, the coupling output opening pins of the digital ports of host 1 and host 2 are connected, and the coupling output opening pins of host 1 and host 2 are both bidirectional pins; To enable the multi-channel coupled output on two hosts, perform the following steps on Host 1 and Host 2: S1, perform initialization related operations, set the host coupling enable signal, channel 1 coupling enable signal and channel 2 coupling enable signal, and set the host general output opening delay time; S2, detecting the coupling output on pin of the digital port, and generating a coupling output on detection signal detect_couple_on by the digital port coupling output on detection unit; S3, performing an "OR" operation on the channel coupling output on signal ch_couple_on and the coupling output on detection signal detect_couple_on to generate a host coupling output on signal frame_couple_on; and performing a channel 1 coupling output on processing operation and a channel 2 coupling output on processing operation at the same time; S4, performing an "OR" operation on the channel 1 coupled output on signal ch1_couple_on and the channel 2 coupled output on signal ch2_couple_on to generate a channel coupled output on signal ch_couple_on; S5. On the one hand, in the host 1, according to the channel coupling output on signal ch_couple_on, the coupling output on detection unit generates a digital port coupling output on signal digport_couple_on, and sends it to the digital port coupling output on pin of the host 1 as the digital port coupling output on signal of the host 2; In the host 2, according to the channel coupling output on signal ch_couple_on, the coupling output on detection unit generates a digital port coupling output on signal digport_couple_on, which is sent to the digital port coupling output on pin of the host 2 as the digital port coupling output on signal of the host 1; On the other hand, the channel coupling output on signal ch_couple_on is sent to the host coupling output on generating unit, and the process returns to execute S2.

8. The method for realizing multi-channel coupled output based on FPGA according to claim 7, characterized in that: When implementing the multi-channel coupled output shutdown function of a single host or two hosts, it is not necessary to set the host common output shutdown delay time.