WO2015058533A1 - Information processing method and electronic device - Google Patents

Information processing method and electronic device Download PDF

Info

Publication number
WO2015058533A1
WO2015058533A1 PCT/CN2014/079457 CN2014079457W WO2015058533A1 WO 2015058533 A1 WO2015058533 A1 WO 2015058533A1 CN 2014079457 W CN2014079457 W CN 2014079457W WO 2015058533 A1 WO2015058533 A1 WO 2015058533A1
Authority
WO
WIPO (PCT)
Prior art keywords
pld
slave
data
information
pin
Prior art date
Application number
PCT/CN2014/079457
Other languages
French (fr)
Chinese (zh)
Inventor
周栋树
张迪煊
陈卓伟
韦晓成
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2015058533A1 publication Critical patent/WO2015058533A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to an information processing method and an electronic device. Background technique
  • the data communication between the main PLD on the server board and multiple slave PLDs is usually based on the serial universal input/output SGPI O protocol, and the SGPI O protocol is a point-to-point full-duplex communication interface using 4-bit signal lines.
  • the bit signal lines are the clock line CLOC load signal line i_c data input line and the data output line CATA0UT.
  • the main PLD sends an LCAD signal every 12 clocks and data cycles, receives the LCAD signal from the PLD to complete the loading of 12-bit data, and the communication between the PLDs can realize the bidirectional transmission of 12-bit parallel data through the 4-bit serial interface. .
  • the embodiment of the present invention provides an information processing method and an electronic device, which are used to solve the problem that the main PLD data pin resource is existing in the prior art, and the connector between the main board where the main PLD is located and the slave board where the PLD is located. Pins define complex technical issues.
  • An embodiment of the present invention provides an information processing method, where the method includes: a main programmable logic device PLD is connected to N data lines of a serial universal input/output SGPI O bus through N data pins, and Communicating with at least two slave PLDs through the set of SGPI O buses, wherein N is a number of pins of the slave PLD connected to the SGPI O bus; and the slave PLD passes the set of SGPI O buses Communicate with the primary PLD.
  • the primary PLD communicates with the at least two slave PLDs by using the set of SGPI O buses, including: the primary PLD sends the first information to the at least two slave PLDs by a clock cycle; After the PLD communicates with the at least two slave PLDs through the set of SGPI O buses, the method further includes: comparing, by the PLD, the destination address in the first information received by the PLD with an address corresponding to the PLD, and comparing the As a result, the first data in the first information is processed.
  • the processing, by the PLD, the first data in the first information according to the comparison result that: the destination address of the slave PLD in the first information received is the same as the address corresponding to the PLD.
  • the PLD discards the first information. First data.
  • the communicating from the PLD to the primary PLD by using the set of SGPI O buses includes: the destination address of the slave PLD after receiving the first information is the same as the address corresponding to the PLD. And transmitting, after the Mth data loading period, the second information to the primary PLD, where M is a positive integer.
  • the N data lines include a clock line, a loading signal line, a data input line and a data output line; a main clock pin of the main PLD is connected to the clock line, a main load pin is connected to the load signal line, and a main data input pin is connected to the data input line; a main data output pin is connected to the data output line; the slave clock pin of the slave PLD is connected to the clock line, the load pin is connected to the load signal line, and the data input pin is connected to the The data output lines are connected to and connected to the data input lines from the data output pins.
  • the method further includes: stopping outputting the level through the slave data output pins.
  • the slave data output pin is an open-drain output, and the data input line is connected to a pull-up resistor for pulling the data input line level; the slave PLD is passing the group After the SGPI O bus communicates with the main PLD, the method further includes: outputting a high level through the slave data output pin.
  • Another aspect of the present invention further provides an electronic device, including: a main programmable logic device PLD and at least two slave PLDs, wherein the master PLD passes through N data pins and a set of serial general purpose input/output SGPI O N data lines of the bus are connected, wherein N is a number of pins connected to the SGPI 0 bus from the PLD; the main PLD is used to pass the set of SGPI 0 buses and at least two slave PLDs Communicating; the slave PLD for communicating with the primary PLD over the set of SGPI 0 buses.
  • a main programmable logic device PLD and at least two slave PLDs wherein the master PLD passes through N data pins and a set of serial general purpose input/output SGPI O N data lines of the bus are connected, wherein N is a number of pins connected to the SGPI 0 bus from the PLD; the main PLD is used to pass the set of SGPI 0 buses and at least two slave PLDs Communicating; the
  • the primary PLD is specifically configured to: send the first information to the at least two slave PLDs according to a clock cycle; the slave PLD is further configured to: use the received destination address in the first information The address corresponding to the self is compared, and the first data in the first information is processed according to the comparison result.
  • the slave PLD is specifically configured to: after the destination address in the received first information is the same as the address corresponding to the first information, save the first data in the first information, or After the destination address in the first information is different from the address corresponding to the first information, the first data in the first information is discarded.
  • the slave PLD is specifically configured to: a destination address in the received first information After the address corresponding to itself is the same, the second information is sent to the primary PLD in the subsequent Mth data loading period, where M is a positive integer.
  • the N data lines include a clock line, a load signal line, a data input line, and a data output line; a main clock pin of the main PLD and the clock line Connected, a main load pin is connected to the load signal line, a main data input pin is connected to the data input line, and a main data output pin is connected to the data output line; the slave clock pin of the slave PLD is The clock lines are connected, connected to the load signal line from a load pin, connected to the data input line from a data input pin, and connected to the data output line from a data output pin.
  • the slave PLD is further configured to stop outputting the level through the slave data output pin after communicating with the master PLD through the set of SGPI O buses.
  • the electronic device further includes: a pull-up resistor for raising the level of the data input line; the slave data output pin is an open-drain output, and the slave PLD is further configured to: pass After the set of SGPI O buses communicate with the main PLD, a high level is output through the slave data output pin.
  • the primary PLD Since the primary PLD is connected to the N data lines of a group of SGPI O buses through N data pins, and communicates with at least two slave PLDs through the set of SGPI O buses, where N is one of the slaves
  • N is one of the slaves
  • the number of pins connected to the SGPI O bus by the PLD, and the technical solution for communicating with the primary PLD from the PLD through the set of SGPI O buses, the communication mode between the primary PLD and the secondary PLD is no longer a point-to-point communication mode. Instead, they communicate with each other through a set of SGPI O buses.
  • the main PLD only needs to be connected to a group of SGPI O buses through N data pins.
  • the PLD only needs to be connected to the set of SGPI O buses through N data pins.
  • the mutual communication between the primary PLD and the secondary PLD can be implemented, and the situation that the primary PLD needs to provide a multiple of the data pins from the PLD when the primary PLD is connected in a point-to-point manner from the PLD is avoided, so that the prior art is solved.
  • the main PLD data pin resources are tight, and the main board where the main PLD is located and the slave board from which the PLD is located.
  • the connector pins between the two define complex technical problems, which saves the data pin resources of the main PLD, and simplifies the technical effect of defining the complexity of the main PLD and the connector pins between the PLDs. . DRAWINGS
  • FIG. 1 is a schematic diagram showing a connection relationship between a primary PLD and a plurality of secondary PLDs in a server in the prior art
  • FIG. 2 is a flowchart of an information processing method according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a connection relationship between a primary PLD and multiple secondary PLDs according to an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of a primary PLD transmitting first information to a PLD according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of a simulation waveform when a primary PLD is communicated with a PLD according to an embodiment of the present invention
  • the provided slave PLD is configured as an open-drain output from the output pin.
  • FIG. 1 is a schematic diagram of a connection relationship between a primary PLD and a plurality of secondary PLDs in a server in the prior art.
  • the communication mode between the primary PLD and the secondary PLD of the server is point-to-point. That is to say, the main PLD and the slave PLD are directly connected through the 4-bit signal line.
  • it is required to have four times of data pins on the master PLD from the number of PLDs, which easily causes data pin resources of the master PLD to be tight, and may even cause the master PLD.
  • the number of data pins is not enough, and if one is from the board From the PLD, the number of connector pins between the slave board and the motherboard also needs to be four times the number of PLDs on the slave board, and the number of PLDs on each slave board is different, so the motherboard where the master PLD is located is caused.
  • the definition of the connector pin between the slave board and the slave board where the PLD is located is complicated.
  • the embodiment of the present invention provides an information processing method and an electronic device, which are used to solve the problem that the main PLD data pin resource is existing in the prior art, and between the main board where the main PLD is located and the slave board where the PLD is located.
  • the connector pins define complex technical issues.
  • the technical solution in the embodiment of the present invention is to solve the above technical problem.
  • the general idea is as follows:
  • the embodiment of the present invention provides an information processing method, which includes: a main programmable logic device PLD through a N data pin and a set of serial
  • the N data lines of the general-purpose input/output SGPI O bus are connected and communicated with at least two slave PLDs through a set of SGPI 0 total M lines, where N is a number of pins connected from the PLD to the SGPI O bus;
  • the PLD communicates with the primary PLD through a set of SGPI O buses.
  • the primary PLD is connected to the N data lines of a group of SGPI O buses through N data pins, and communicates with at least two slave PLDs through a set of SGPI O buses, where N
  • N For a number of pins connected from the PLD to the SGPI O bus, and a technical solution for the PLD to communicate with the primary PLD through the set of SGPI O buses, the communication between the primary PLD and the secondary PLD is no longer a point-to-point communication method. Instead, they communicate with each other through a set of SGPI O buses.
  • the main PLD only needs to be connected to a group of SGPI O buses through N data pins.
  • the PLD only needs to be connected to the set of SGPI O buses through N data pins. That is, the mutual communication between the primary PLD and the secondary PLD can be realized, and the situation that the primary PLD needs to provide the data pin from the multiple of the PLD when the primary PLD and the PLD are connected in a point-to-point manner is avoided, so the prior art is solved.
  • the main PLD data pin resources are tight, and the motherboards where the main PLD is located and the connector pins between the slave boards where the PLDs are located define complex technical problems, which saves the data pin resources of the main PLD. And where the main motherboard PLD PLD where the connector from between the plates The pin defines the technical effect of the complexity.
  • FIG. 2 is a flowchart of an information processing method according to an embodiment of the present invention. As shown in FIG. 2, the method includes:
  • the main programmable logic device PLD is connected to the N data lines of a set of serial general-purpose input/output SGPI O buses through N data pins, and communicates with at least two slave PLDs through a set of SGPI O buses.
  • N is the number of pins connected from the PLD to the SGPI O bus;
  • the PLD communicates with the primary PLD through the set of SGPI O buses.
  • the PLD may be a CPLD (Conpl ex Progranmabl e Logi c Devi ce, Complex Programmable Logic Device) or an FP (Fiel d - Progranmabl e Gat e Array). Make restrictions.
  • FIG. 3 is a schematic diagram of a connection relationship between a primary PLD and a plurality of secondary PLDs according to an embodiment of the present invention. As shown in FIG. 3 , the primary PLD passes through four data pins and a set of SGPI O buses.
  • the four data lines are connected, and the PLD is connected to the four data lines of the set of SGPI 0 buses through four data pins, and the number of data pins connected to the set of SGPI O buses by the main PLD and a slave PLD and The number of data pins connected to the SGPI O bus is equal, that is, the main PLD only needs to be connected to the data line in the SGPI O bus through four data pins, so that communication with the PLD connected to the SGPI O bus can be realized.
  • the four data lines of the set of SGPI O buses include a clock line, a load signal line, a data input line and a data output line.
  • the main clock pin of the main PLD is connected to the clock line, and the main load pin and the main The load signal line is connected, the main data input pin is connected to the data input line, the main data output pin is connected to the data output line, the slave clock pin of the PLD is connected to the clock line, the load pin is connected to the load signal line, and the slave number Input pin is connected to the data output line connected to the data from the data output pins of the input line.
  • the main PLD needs to pass the main clock pin, the main load pin, the main data input pin, and the main data output pin and a group of SGPIs compared with the prior art.
  • the O bus is connected, that is, the mutual communication between the main PLD and the slave PLD can be realized, and the main PLD as shown in FIG. 1 needs 16 data pins to realize communication with and from the PLD, so the main cause is solved.
  • the communication mode between the PLD and the slave PLD is point-to-point communication, the main PLD needs to have technical problems of data pin resource shortage caused by multiple PLD connections at the same time, and realizes the technical effect of saving the data pin resource of the main PLD.
  • the slave PLD is connected to a group of SGPI O buses from the clock pin, from the load pin, from the data input pin, and from the data output pin, regardless of the number of PLDs from the board, between the motherboard and the slave board.
  • the definition of the connector pins is consistent with the definition of a set of SGPI O buses, so the technical problems of the connector pins defined between the prior art boards and the respective boards are solved, and the motherboard in which the main PLD is simplified is realized.
  • the technical effect of the complexity is defined by the connector pins between the slave boards from which the PLD is located.
  • step S1 the main programmable logic device PLD communicates with at least two slave PLDs through a set of SGPI O buses. Specifically, the master PLD may send the first information to at least two slave PLDs by clock cycle.
  • FIG. 4 is a schematic diagram of the primary PLD sending the first information to the PLD according to the embodiment of the present invention.
  • the primary PLD sends the data output line of the SGPUI bus to all the PLDs according to the clock cycle.
  • the data bit number of the first information, the data bit number of the destination address, and the data bit number of the first data may be selected according to actual conditions, for example, the first information may be 16-bit data, the data of the destination address.
  • the number of bits can be 4 bits of data, and the first number of bits can be 12 bits of data.
  • the number of bits of the destination address can be increased to meet the requirement for all the addresses allocated from the PLD, so that each slave PLD All can be assigned a corresponding address, of course, after increasing the number of bits of the destination address, the number of bits of the first data can be reduced or the number of bits of the first information can be increased, and then the time interval for loading the load signal of the main load pin is adjusted accordingly.
  • the person skilled in the art can also adjust the number of bits of the first data according to actual conditions, for example, adjust the first information to 18 bits or 19 bits, etc., Let me repeat.
  • the main PLD sends the first information to all the slave PLDs through the data output line according to the clock cycle.
  • the first information the first 4 bits of data are the destination address, and the last 12 bits are the first data, and
  • the loading signal is sent through the loading signal line, and the loading of the first information is completed after the PLD receives the loading signal.
  • the load signal line issues the first data load signal to the second data load signal, it can be called a data load cycle.
  • the PLD After receiving the first information, the PLD compares the destination address in the first information with its own address, and processes the first data in the first information according to the comparison result, for example, in the first information.
  • the destination address is 0001.
  • the corresponding address assigned by the first PLD is 0001.
  • the first destination information 0001 in the first information is compared with the corresponding address 0001. If the addresses are the same, it indicates that the destination of the first information is the first slave PLD, and the first slave PLD saves the first data in the first information, thereby implementing communication between the master PLD and the slave PLD.
  • the destination address 0001 in the first information is compared with the address corresponding to itself, because the destination address and the second address in the first information
  • the address corresponding to the PLD itself from the PLCL third is different, so the second slave PLCL third slave PLD and the like will discard the first data in the first information.
  • FIG. 5 is a simulation waveform diagram of the main PLD and the slave PLD according to an embodiment of the present invention. As shown in FIG. 5, the main PLD is continuously sent from the PLD through a data output line of the SGPI 0 bus.
  • the PLD distinguishes according to the address, and the data input line of a group of SGPI 0 buses is used to transmit information to the main PLD, thereby realizing the continuous transmission of waveforms on the entire set of SGPI 0 buses.
  • slave PLDs in order to avoid a certain slave PLD transmitting data, other slave PLDs will pull the data input line of a group of SGPI 0 bus, for example, keep the data input line high, and then cause Data transmission is abnormal. It can be adopted by configuring the slave data output pin from the PLD to a high-impedance state, for example, sending a second message from the PLD to the master PLD, that is, from the PLD through a group of SGPI 0 buses and the master PLD.
  • the slave data output pin of the PLD After communication, stop the output level from the slave data output pin of the PLD, that is, after the PLD communicates with the master PLD, the slave data output pin of the PLD is configured to a high-impedance state, thereby ensuring that the slave PLD is not The data input line will be pulled.
  • the embodiment of the present invention also provides a slave output pin through the slave PLD.
  • the way the open-drain output (CD output) is configured ensures that the data input line is not pulled from the PLD.
  • FIG. 6 is a schematic diagram of the slave PLD from the output pin configured as an open-drain output according to an embodiment of the present invention.
  • the PLD is configured as an open-drain output, and is in the main A pull-up resistor is added to the main input pin of the PLD.
  • One end of the pull-up resistor is connected to the pull-up voltage, and the other end of the pull-up resistor is connected to the data input line.
  • the main input pin can also be configured inside the main PLD. Pull up to achieve line and logic.
  • the PLD outputs a high level from the data output pin through the PLD. Then the entire data input line is in a high state, and the main PLD receives the high level information through the main data input pin, and the output from the PLD through the data output pin is low. At the level, since the data output pin is an open-drain output, the entire data input line is pulled low, and the main PLD receives low-level information through the main data input pin, thereby realizing the guarantee of arbitrary The effect of the PLD on the accuracy of the information generated by the primary PLD.
  • an embodiment of the present invention further provides an electronic device including: a main programmable logic device PLD and at least two slave PLDs, a main PLD through a data pin and a set of serial general purpose input/output SGPI O
  • the root data lines of the bus are connected, wherein ⁇ is a number of pins connected from the PLD to the SGPI O bus; the main PLD is used to communicate with at least two slave PLDs through a set of SGPI O buses; Communicates with the primary PLD over a set of SGPI O buses.
  • the primary PLD is specifically configured to: send the first information to the at least two slave PLDs according to a clock cycle; and the slave PLD is further configured to: compare the destination address in the received first information with the address corresponding to the first PLD. And processing the first data in the first information according to the comparison result.
  • the PLD is specifically configured to: after the destination address in the received first information is the same as the address corresponding to the first information, save the first data in the first information, or in the first information received. After the destination address is different from the address corresponding to itself, the first data in the first information is discarded.
  • the PLD is specifically configured to: after the destination address in the received first information is the same as the address corresponding to itself, send the second information to the primary PLD in the subsequent M data loading period, where M is A positive integer.
  • the N data lines include a clock line, a load signal line, a data input line, and a data output line;
  • the main clock pin of the main PLD is connected to the clock line, and the main load is The pin is connected to the load signal line, the main data input pin is connected to the data input line, the main data output pin is connected to the data output line;
  • the main clock pin of the PLD is connected to the clock line, the load pin and the load signal line are loaded. Connected, connected from the data input pin to the data input line, from the data input The output pin is connected to the data output line.
  • the slave PLD is also used to stop the output level from the data output pin after communicating with the master PLD through a set of SGPI 0 buses.
  • the electronic device further includes: a pull-up resistor for pulling the data input line level; the data output pin is an open-drain output, and the slave PLD is further used to: pass through a group of SGPI O bus After communicating with the main PLD, a high level is output from the data output pin.
  • the electronic device in this embodiment and the information processing method in the foregoing embodiment are based on two aspects under the same inventive concept.
  • the implementation process of the method has been described in detail above, so those skilled in the art can refer to the foregoing description.
  • the structure and implementation process of the electronic device in this embodiment are clearly understood. For the sake of brevity of the description, details are not described herein again.
  • the technical solution in the foregoing embodiments of the present invention has at least the following technical effects or advantages:
  • the primary PLD is connected to the N data lines of a group of SGPI O buses through N data pins, and passes through a group of SGPI Os.
  • the bus communicates with at least two slave PLDs, where N is a number of pins connected from the PLD to the SGPI O bus, and a technical solution for communicating with the master PLD from the PLD through the set of SGPI O buses, the master PLD and the slave PLD
  • the communication mode is no longer a point-to-point communication method, but communicates with each other through a set of SGPI O buses.
  • the main PLD only needs to be connected to a group of SGPI O buses through N data pins, and only N through the PLD.
  • the data pin is connected to the set of SGPI O buses, which can realize mutual communication between the primary PLD and the secondary PLD, and avoids the need for the primary PLD to provide a multiple of the number of PLDs when the primary PLD and the secondary PLD are connected in a point-to-point manner.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Therefore, the present invention can be implemented in an entirely hardware embodiment, fully software implemented For example, or in combination with an embodiment of software and hardware aspects. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, O ROV1 optical storage, etc.) containing computer usable program code.
  • computer-usable storage media including but not limited to disk storage, O ROV1 optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Abstract

An information processing method and an electronic device. The information processing method comprises: a master programmable logic device (PLD) is correspondingly connected to an N-number of data lines of a set of serial general purpose input/output (SGPIO) bus via an N-number of data pins and communicates with at least two slave PLDs via the one set of SGPIO, where N is a number of pins of either slave PLD that are connected with the SGPIO bus; and, the slave PLDs communicate with the master PLD via the one set of SGPIO bus.

Description

一种信息处理方法以及电子设备 本申请要求于 2013 年 10 月 25 曰提交中国专利局、 申请号为 201310513375. 3、 发明名称为" 一种信息处理方法以及电子设备" 的中国 专利申请的优先权,其全部内容通过引用结合在本申请中。  The present invention claims the priority of the Chinese Patent Application entitled "An Information Processing Method and Electronic Equipment", filed on October 25, 2013, with the Chinese Patent Office, Application No. 201310513375. The entire content of which is incorporated herein by reference.
技术领域 本发明涉及电子技术领域,尤其涉及一种信息处理方法以及电子设备。 背景技术 The present invention relates to the field of electronic technologies, and in particular, to an information processing method and an electronic device. Background technique
随着科学技术的不断发展,电子技术也得到了飞速的发展,电子产品 的种类也越来越多,人们对电子设备的要求也越来越高。 例如,以服务器 为例,随着信息化技术的大规模发展,对作为数据中心的重要组成部分的 服务器的处理能力要求也越来越高,相应地,服务器能够实现的功能越来 越强,规格也越来越高,当然复杂度也随之而增加,具体来讲,也即一台 服务器内的单板数量和可编程逻辑器件 PLD的数量越来越多,多个单板和 多个可编程逻辑器件之间连接关系也越来越复杂。  With the continuous development of science and technology, electronic technology has also developed rapidly, and there are more and more types of electronic products. People are increasingly demanding electronic devices. For example, taking the server as an example, with the large-scale development of information technology, the processing capability of the server, which is an important component of the data center, is becoming higher and higher, and accordingly, the functions that the server can achieve are getting stronger and stronger. The specifications are also getting higher and higher, and of course the complexity is also increased. Specifically, the number of boards in a server and the number of programmable logic devices (PLDs) are increasing, and multiple boards and multiples are available. The connection between programmable logic devices is also becoming more complex.
目前,服务器主板上的主 PLD与多个从 PLD之间的数据通信通常是基 于串行通用输入 /输出 SGPI O协议实现, SGPI O协议是采用 4位信号线的点 对点全双工通信接口 , 4位信号线分别为时钟线 CLOC 加载信号线 i_c 数据输入线 和数据输出线 CATA0UT。主 PLD每发送 12个时钟和数据 周期,输出一个 LCAD信号,从 PLD接收到 LCAD信号完成 12位数据的加载, PLD之间的通信就可以通过 4位串行接口实现 12位并行数据的双向传输。  At present, the data communication between the main PLD on the server board and multiple slave PLDs is usually based on the serial universal input/output SGPI O protocol, and the SGPI O protocol is a point-to-point full-duplex communication interface using 4-bit signal lines. The bit signal lines are the clock line CLOC load signal line i_c data input line and the data output line CATA0UT. The main PLD sends an LCAD signal every 12 clocks and data cycles, receives the LCAD signal from the PLD to complete the loading of 12-bit data, and the communication between the PLDs can realize the bidirectional transmission of 12-bit parallel data through the 4-bit serial interface. .
但是,因主 PLD与从 PLD之间的通信方式为点对点,所以现有技术中 存在主 PLD数据管脚资源紧张,以及主 PLD所在的主板和从 PLD所在的从 板之间的连接器管脚定义复杂的技术问题。 发明内容 However, since the communication mode between the primary PLD and the secondary PLD is point-to-point, there is a shortage of the main PLD data pin resources in the prior art, and the main board where the primary PLD is located and the slave from which the PLD is located. The connector pins between the boards define complex technical issues. Summary of the invention
本发明实施例通过提供一种信息处理方法以及电子设备,用以解决现 有技术中存在的主 PLD数据管脚资源紧张,以及主 PLD所在的主板和从 PLD 所在的从板之间的连接器管脚定义复杂的技术问题。  The embodiment of the present invention provides an information processing method and an electronic device, which are used to solve the problem that the main PLD data pin resource is existing in the prior art, and the connector between the main board where the main PLD is located and the slave board where the PLD is located. Pins define complex technical issues.
本发明实施例提供了一种信息处理方法,所述方法包括:主可编程逻 辑器件 PLD通过 N个数据管脚与一组串行通用输入 /输出 SGPI O总线的 N根 数据线对应相连,并通过所述一组 SGPI O总线与至少两个从 PLD进行通信, 其中 N为一个所述从 PLD与所述 SGPI O总线相连的管脚数量;以及所述从 PLD通过所述一组 SGPI O总线与所述主 PLD进行通信。  An embodiment of the present invention provides an information processing method, where the method includes: a main programmable logic device PLD is connected to N data lines of a serial universal input/output SGPI O bus through N data pins, and Communicating with at least two slave PLDs through the set of SGPI O buses, wherein N is a number of pins of the slave PLD connected to the SGPI O bus; and the slave PLD passes the set of SGPI O buses Communicate with the primary PLD.
可选地,所述主 PLD通过所述一组 SGPI O总线与至少两个从 PLD进行 通信,包括:所述主 PLD按时钟周期向所述至少两个从 PLD发送第一信息; 所述主 PLD通过所述一组 SGPI O总线与至少两个从 PLD进行通信之后,还 包括:所述从 PLD将收到的所述第一信息中的目的地址与自身对应的地址 进行比较,并根据比较结果对所述第一信息中的第一数据进行处理。  Optionally, the primary PLD communicates with the at least two slave PLDs by using the set of SGPI O buses, including: the primary PLD sends the first information to the at least two slave PLDs by a clock cycle; After the PLD communicates with the at least two slave PLDs through the set of SGPI O buses, the method further includes: comparing, by the PLD, the destination address in the first information received by the PLD with an address corresponding to the PLD, and comparing the As a result, the first data in the first information is processed.
可选地,所述从 PLD根据比较结果对所述第一信息中的第一数据进行 处理,包括:所述从 PLD在收到的所述第一信息中的目的地址与自身对应 的地址相同后,保存所述第一信息中的第一数据;或所述从 PLD在收到的 所述第一信息中的目的地址与自身对应的地址不相同后,丟弃所述第一信 息中的第一数据。  Optionally, the processing, by the PLD, the first data in the first information according to the comparison result, that: the destination address of the slave PLD in the first information received is the same as the address corresponding to the PLD. After the first data in the first information is saved, or the destination address of the PLD that is received by the first information is different from the address corresponding to the first information, the PLD discards the first information. First data.
可选地,所述从 PLD通过所述一组 SGPI O总线与所述主 PLD进行通信, 包括:所述从 PLD在收到的所述第一信息中的目的地址与自身对应的地址 相同后,在之后的第 M个数据加载周期向所述主 PLD发送第二信息, M为正 整数。  Optionally, the communicating from the PLD to the primary PLD by using the set of SGPI O buses includes: the destination address of the slave PLD after receiving the first information is the same as the address corresponding to the PLD. And transmitting, after the Mth data loading period, the second information to the primary PLD, where M is a positive integer.
可选地,在 N为 4时,所述 N根数据线包括一时钟线、 一加载信号线、 一数据输入线和一数据输出线;所述主 PLD的主时钟管脚与所述时钟线相 连、 主加载管脚与所述加载信号线相连、 主数据输入管脚与所述数据输入 线相连、 主数据输出管脚与所述数据输出线相连;所述从 PLD的从时钟管 脚与所述时钟线相连、 从加载管脚与所述加载信号线相连、 从数据输入管 脚与所述数据输出线相连、 从数据输出管脚与所述数据输入线相连。 Optionally, when N is 4, the N data lines include a clock line, a loading signal line, a data input line and a data output line; a main clock pin of the main PLD is connected to the clock line, a main load pin is connected to the load signal line, and a main data input pin is connected to the data input line; a main data output pin is connected to the data output line; the slave clock pin of the slave PLD is connected to the clock line, the load pin is connected to the load signal line, and the data input pin is connected to the The data output lines are connected to and connected to the data input lines from the data output pins.
可选地,所述从 PLD在通过所述一组 SGPI O总线与所述主 PLD进行通 信之后,还包括:停止通过所述从数据输出管脚输出电平。  Optionally, after the slave PLD communicates with the master PLD through the set of SGPI O buses, the method further includes: stopping outputting the level through the slave data output pins.
可选地,所述从数据输出管脚为漏极开路输出 ,所述数据输入线与用 于拉高所述数据输入线电平的上拉电阻相连;所述从 PLD在通过所述一组 SGPI O总线与所述主 PLD进行通信之后,还包括:通过所述从数据输出管脚 输出高电平。  Optionally, the slave data output pin is an open-drain output, and the data input line is connected to a pull-up resistor for pulling the data input line level; the slave PLD is passing the group After the SGPI O bus communicates with the main PLD, the method further includes: outputting a high level through the slave data output pin.
本发明实施例另一方面还提供一种电子设备,包括:主可编程逻辑器 件 PLD和至少两个从 PLD ,所述主 PLD通过 N个数据管脚与一组串行通用输 入 /输出 SGPI O总线的 N根数据线对应相连,其中 N为一个所述从 PLD与所 述 SGPI 0总线相连的管脚数量;所述主 PLD ,用于通过所述一组 SGPI 0总线 与至少两个从 PLD进行通信;所述从 PLD ,用于通过所述一组 SGPI 0总线与 所述主 PLD进行通信。  Another aspect of the present invention further provides an electronic device, including: a main programmable logic device PLD and at least two slave PLDs, wherein the master PLD passes through N data pins and a set of serial general purpose input/output SGPI O N data lines of the bus are connected, wherein N is a number of pins connected to the SGPI 0 bus from the PLD; the main PLD is used to pass the set of SGPI 0 buses and at least two slave PLDs Communicating; the slave PLD for communicating with the primary PLD over the set of SGPI 0 buses.
可选地,所述主 PLD具体用于:按时钟周期向所述至少两个从 PLD发 送第一信息;所述从 PLD还用于:将收到的所述第一信息中的目的地址与 自身对应的地址进行比较,并根据比较结果对所述第一信息中的第一数据 进行处理。  Optionally, the primary PLD is specifically configured to: send the first information to the at least two slave PLDs according to a clock cycle; the slave PLD is further configured to: use the received destination address in the first information The address corresponding to the self is compared, and the first data in the first information is processed according to the comparison result.
可选地,所述从 PLD具体用于:在收到的所述第一信息中的目的地址 与自身对应的地址相同后,保存所述第一信息中的第一数据,或在收到的 所述第一信息中的目的地址与自身对应的地址不相同后,丟弃所述第一信 息中的第一数据。  Optionally, the slave PLD is specifically configured to: after the destination address in the received first information is the same as the address corresponding to the first information, save the first data in the first information, or After the destination address in the first information is different from the address corresponding to the first information, the first data in the first information is discarded.
可选地,所述从 PLD具体用于:在收到的所述第一信息中的目的地址 与自身对应的地址相同后,在之后的第 M个数据加载周期向所述主 PLD发 送第二信息, M为正整数。 Optionally, the slave PLD is specifically configured to: a destination address in the received first information After the address corresponding to itself is the same, the second information is sent to the primary PLD in the subsequent Mth data loading period, where M is a positive integer.
可选地,在 N为 4时,所述 N根数据线包括一时钟线、 一加载信号线、 一数据输入线和一数据输出线;所述主 PLD的主时钟管脚与所述时钟线相 连、 主加载管脚与所述加载信号线相连、 主数据输入管脚与所述数据输入 线相连、 主数据输出管脚与所述数据输出线相连;所述从 PLD的主时钟管 脚与所述时钟线相连、 从加载管脚与所述加载信号线相连、 从数据输入管 脚与所述数据输入线相连、 从数据输出管脚与所述数据输出线相连。  Optionally, when N is 4, the N data lines include a clock line, a load signal line, a data input line, and a data output line; a main clock pin of the main PLD and the clock line Connected, a main load pin is connected to the load signal line, a main data input pin is connected to the data input line, and a main data output pin is connected to the data output line; the slave clock pin of the slave PLD is The clock lines are connected, connected to the load signal line from a load pin, connected to the data input line from a data input pin, and connected to the data output line from a data output pin.
可选地,所述从 PLD还用于:在通过所述一组 SGPI O总线与所述主 PLD 进行通信之后,停止通过所述从数据输出管脚输出电平。  Optionally, the slave PLD is further configured to stop outputting the level through the slave data output pin after communicating with the master PLD through the set of SGPI O buses.
可选地,所述电子设备还包括:用于拉高所述数据输入线电平的上拉 电阻;所述从数据输出管脚为漏极开路输出,所述从 PLD还用于:在通过 所述一组 SGPI O总线与所述主 PLD进行通信之后,通过所述从数据输出管 脚输出高电平。  Optionally, the electronic device further includes: a pull-up resistor for raising the level of the data input line; the slave data output pin is an open-drain output, and the slave PLD is further configured to: pass After the set of SGPI O buses communicate with the main PLD, a high level is output through the slave data output pin.
本发明实施例中提供的一个或多个技术方案,至少具有如下技术效果 或优  One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages.
由于采用了主 PLD通过 N个数据管脚与一组 SGPI O总线的 N根数据线 对应相连,并通过所述一组 SGPI O总线与至少两个从 PLD进行通信,其中 N 为一个所述从 PLD与所述 SGPI O总线相连的管脚数量,以及从 PLD通过该 一组 SGPI O总线与主 PLD进行通信的技术方案,主 PLD与从 PLD之间的通 信方式不再为点对点的通信方式,而是通过一组 SGPI O总线进行相互通信, 主 PLD只需要通过 N个数据管脚与一组 SGPI O总线相连,从 PLD只需要通 过 N个数据管脚和该一组 SGPI O总线相连,即能够实现主 PLD与从 PLD之 间的相互通信,避免了主 PLD与从 PLD之间通过点对点方式相连时需要主 PLD提供从 PLD的数量倍数的数据管脚的情形,所以解决了现有技术中存在 的主 PLD数据管脚资源紧张,以及主 PLD所在的主板和从 PLD所在的从板 之间的连接器管脚定义复杂的技术问题,实现了节省主 PLD的数据管脚资 源,简化主 PLD所在的主板和从 PLD所在的从板之间的连接器管脚定义复 杂度的技术效果。 附图说明 Since the primary PLD is connected to the N data lines of a group of SGPI O buses through N data pins, and communicates with at least two slave PLDs through the set of SGPI O buses, where N is one of the slaves The number of pins connected to the SGPI O bus by the PLD, and the technical solution for communicating with the primary PLD from the PLD through the set of SGPI O buses, the communication mode between the primary PLD and the secondary PLD is no longer a point-to-point communication mode. Instead, they communicate with each other through a set of SGPI O buses. The main PLD only needs to be connected to a group of SGPI O buses through N data pins. The PLD only needs to be connected to the set of SGPI O buses through N data pins. The mutual communication between the primary PLD and the secondary PLD can be implemented, and the situation that the primary PLD needs to provide a multiple of the data pins from the PLD when the primary PLD is connected in a point-to-point manner from the PLD is avoided, so that the prior art is solved. The main PLD data pin resources are tight, and the main board where the main PLD is located and the slave board from which the PLD is located The connector pins between the two define complex technical problems, which saves the data pin resources of the main PLD, and simplifies the technical effect of defining the complexity of the main PLD and the connector pins between the PLDs. . DRAWINGS
图 1为现有技术中的服务器中主 PLD与多个从 PLD之间的连接关系示 意图;  1 is a schematic diagram showing a connection relationship between a primary PLD and a plurality of secondary PLDs in a server in the prior art;
图 2为本发明实施例提供的信息处理方法的流程图;  2 is a flowchart of an information processing method according to an embodiment of the present invention;
图 3为本发明实施例提供的主 PLD与多个从 PLD之间的连接关系示意 图;  FIG. 3 is a schematic diagram of a connection relationship between a primary PLD and multiple secondary PLDs according to an embodiment of the present disclosure;
图 4为本发明实施例提供的主 PLD向从 PLD发送第一信息的示意图; 图 5为本发明实施例提供的主 PLD与从 PLD进行通信时的仿真波形图; 图 6为本发明实施例提供的保从 PLD的从输出管脚配置为漏极开路输 出的示意图。 具体实施方式  4 is a schematic diagram of a primary PLD transmitting first information to a PLD according to an embodiment of the present invention; FIG. 5 is a schematic diagram of a simulation waveform when a primary PLD is communicated with a PLD according to an embodiment of the present invention; The provided slave PLD is configured as an open-drain output from the output pin. detailed description
在具体介绍本发明实施例中的技术方案之前,为了让本发明所属技术 领域的技术人员能够更好地理解本发明实施例中的技术方案,下面,先结 合图 1 对现有技术中的方案及现有技术中存在的技术问题进行描述。 具体 如下:  Before the technical solutions in the embodiments of the present invention are specifically described, in order to enable a person skilled in the art to better understand the technical solutions in the embodiments of the present invention, the following is a prior art solution in conjunction with FIG. And the technical problems existing in the prior art are described. details as follows:
请参考图 1 ,图 1是现有技术中的服务器中主 PLD与多个从 PLD之间的 连接关系示意图,如图 1所示,服务器的主 PLD与从 PLD之间的通信方式 为点对点,也就是说,主 PLD与从 PLD是直接通过 4位信号线相连的。 这 样,在一个主 PLD与多个从 PLD相连的情况下,需要主 PLD上具有从 PLD 数量的 4倍的数据管脚,很容易就造成主 PLD的数据管脚资源紧张,甚至 会导致主 PLD的数据管脚数量不够用的情形,同时,若一个从板上具有多 个从 PLD ,则该从板与主板之间的连接器管脚数量也需要为该从板上从 PLD 数量的 4倍,各个从板上 PLD的数量不一样,所以会造成主 PLD所在的主 板和从 PLD所在的从板之间的连接器管脚定义复杂。 Please refer to FIG. 1. FIG. 1 is a schematic diagram of a connection relationship between a primary PLD and a plurality of secondary PLDs in a server in the prior art. As shown in FIG. 1, the communication mode between the primary PLD and the secondary PLD of the server is point-to-point. That is to say, the main PLD and the slave PLD are directly connected through the 4-bit signal line. Thus, in the case where one master PLD is connected to multiple slave PLDs, it is required to have four times of data pins on the master PLD from the number of PLDs, which easily causes data pin resources of the master PLD to be tight, and may even cause the master PLD. The number of data pins is not enough, and if one is from the board From the PLD, the number of connector pins between the slave board and the motherboard also needs to be four times the number of PLDs on the slave board, and the number of PLDs on each slave board is different, so the motherboard where the master PLD is located is caused. The definition of the connector pin between the slave board and the slave board where the PLD is located is complicated.
因此,现有技术中存在主 PLD数据管脚资源紧张,以及主 PLD所在的 主板和从 PLD所在的从板之间的连接器管脚定义复杂的技术问题。  Therefore, in the prior art, there is a problem that the main PLD data pin resource is tight, and the motherboard where the main PLD is located and the connector pin between the slave boards where the PLD is located are complicated.
为此,本发明实施例通过提供一种信息处理方法以及电子设备,用以 解决现有技术中存在的主 PLD数据管脚资源紧张,以及主 PLD所在的主板 和从 PLD所在的从板之间的连接器管脚定义复杂的技术问题。  To this end, the embodiment of the present invention provides an information processing method and an electronic device, which are used to solve the problem that the main PLD data pin resource is existing in the prior art, and between the main board where the main PLD is located and the slave board where the PLD is located. The connector pins define complex technical issues.
本发明实施例中的技术方案为解决上述技术问题,总体思路如下: 本发明实施例提供一种信息处理方法,该方法包括:主可编程逻辑器 件 PLD通过 N个数据管脚与一组串行通用输入 /输出 SGPI O总线的 N根数据 线对应相连,并通过一组 SGPI 0总 M线与至少两个从 PLD进行通信,其中 N 为一个从 PLD与 SGPI O总线相连的管脚数量;以及从 PLD通过一组 SGPI O 总线与主 PLD进行通信。  The technical solution in the embodiment of the present invention is to solve the above technical problem. The general idea is as follows: The embodiment of the present invention provides an information processing method, which includes: a main programmable logic device PLD through a N data pin and a set of serial The N data lines of the general-purpose input/output SGPI O bus are connected and communicated with at least two slave PLDs through a set of SGPI 0 total M lines, where N is a number of pins connected from the PLD to the SGPI O bus; The PLD communicates with the primary PLD through a set of SGPI O buses.
通过上述部分可以看出,由于采用了主 PLD通过 N个数据管脚与一组 SGPI O总线的 N根数据线对应相连,并通过一组 SGPI O总线与至少两个从 PLD进行通信,其中 N为一个从 PLD与 SGPI O总线相连的管脚数量,以及从 PLD通过该一组 SGPI O总线与主 PLD进行通信的技术方案,主 PLD与从 PLD 之间的通信方式不再为点对点的通信方式,而是通过一组 SGPI O总线进行 相互通信,主 PLD只需要通过 N个数据管脚与一组 SGPI O总线相连,从 PLD 只需要通过 N个数据管脚和该一组 SGPI O总线相连,即能够实现主 PLD与 从 PLD之间的相互通信,避免了主 PLD与从 PLD之间通过点对点方式相连 时需要主 PLD提供从 PLD的数量倍数的数据管脚的情形,所以解决了现有 技术中存在的主 PLD数据管脚资源紧张,以及主 PLD所在的主板和从 PLD 所在的从板之间的连接器管脚定义复杂的技术问题,实现了节省主 PLD的 数据管脚资源,简化主 PLD所在的主板和从 PLD所在的从板之间的连接器 管脚定义复杂度的技术效果。 It can be seen from the above that the primary PLD is connected to the N data lines of a group of SGPI O buses through N data pins, and communicates with at least two slave PLDs through a set of SGPI O buses, where N For a number of pins connected from the PLD to the SGPI O bus, and a technical solution for the PLD to communicate with the primary PLD through the set of SGPI O buses, the communication between the primary PLD and the secondary PLD is no longer a point-to-point communication method. Instead, they communicate with each other through a set of SGPI O buses. The main PLD only needs to be connected to a group of SGPI O buses through N data pins. The PLD only needs to be connected to the set of SGPI O buses through N data pins. That is, the mutual communication between the primary PLD and the secondary PLD can be realized, and the situation that the primary PLD needs to provide the data pin from the multiple of the PLD when the primary PLD and the PLD are connected in a point-to-point manner is avoided, so the prior art is solved. The main PLD data pin resources are tight, and the motherboards where the main PLD is located and the connector pins between the slave boards where the PLDs are located define complex technical problems, which saves the data pin resources of the main PLD. And where the main motherboard PLD PLD where the connector from between the plates The pin defines the technical effect of the complexity.
为了更好地理解上述技术方案,下面将结合说明书附图以及具体的实 施方式对上述技术方案进行详细的说明。  In order to better understand the above technical solutions, the above technical solutions will be described in detail below in conjunction with the drawings and specific embodiments.
本发明实施例提供一种信息处理方法,请参考图 2 ,图 2是本发明实施 例提供的信息处理方法的流程图,如图 2所示,该方法包括:  An embodiment of the present invention provides an information processing method. Referring to FIG. 2, FIG. 2 is a flowchart of an information processing method according to an embodiment of the present invention. As shown in FIG. 2, the method includes:
51 :主可编程逻辑器件 PLD通过 N个数据管脚与一组串行通用输入 /输 出 SGPI O总线的 N根数据线对应相连,并通过一组 SGPI O总线与至少两个 从 PLD进行通信,其中 N为一个从 PLD与 SGPI O总线相连的管脚数量; 51: The main programmable logic device PLD is connected to the N data lines of a set of serial general-purpose input/output SGPI O buses through N data pins, and communicates with at least two slave PLDs through a set of SGPI O buses. Where N is the number of pins connected from the PLD to the SGPI O bus;
52:从 PLD通过该一组 SGPI O总线与主 PLD进行通信。 52: The PLD communicates with the primary PLD through the set of SGPI O buses.
在本实施例中, PLD具体可以是 CPLD ( Conpl ex Progranmabl e Logi c Devi ce ,复杂可编程逻辑器件)或者 FP ( Fi el d - Progranmabl e Gat e Array ,现场可编程门阵列),在此不做限制。  In this embodiment, the PLD may be a CPLD (Conpl ex Progranmabl e Logi c Devi ce, Complex Programmable Logic Device) or an FP (Fiel d - Progranmabl e Gat e Array). Make restrictions.
请继续参考图 3 ,图 3是本发明实施例提供的主 PLD与多个从 PLD之间 的连接关系示意图,如图 3所示,主 PLD通过 4个数据管脚与一组 SGPI O 总线中的 4根数据线相连,从 PLD通过 4个数据管脚与该一组 SGPI 0总线 的 4根数据线相连,主 PLD与该一组 SGPI O总线相连的数据管脚的数量与 一个从 PLD与 SGPI O总线相连的数据管脚的数量相等,也即主 PLD只需要 通过 4个数据管脚与 SGPI O总线中的数据线相连,即可实现与和 SGPI O总 线相连的从 PLD的通信,具体地,该一组 SGPI O总线的 4根数据线包括一 时钟线、 一加载信号线、 一数据输入线与一数据输出线,主 PLD的主时钟 管脚与时钟线相连、 主加载管脚与加载信号线相连、 主数据输入管脚与数 据输入线相连、 主数据输出管脚与数据输出线相连,从 PLD的从时钟管脚 与时钟线相连、 从加载管脚与加载信号线相连、 从数据输入管脚与数据输 出线相连、 从数据输出管脚与数据输入线相连。  Please refer to FIG. 3 . FIG. 3 is a schematic diagram of a connection relationship between a primary PLD and a plurality of secondary PLDs according to an embodiment of the present invention. As shown in FIG. 3 , the primary PLD passes through four data pins and a set of SGPI O buses. The four data lines are connected, and the PLD is connected to the four data lines of the set of SGPI 0 buses through four data pins, and the number of data pins connected to the set of SGPI O buses by the main PLD and a slave PLD and The number of data pins connected to the SGPI O bus is equal, that is, the main PLD only needs to be connected to the data line in the SGPI O bus through four data pins, so that communication with the PLD connected to the SGPI O bus can be realized. The four data lines of the set of SGPI O buses include a clock line, a load signal line, a data input line and a data output line. The main clock pin of the main PLD is connected to the clock line, and the main load pin and the main The load signal line is connected, the main data input pin is connected to the data input line, the main data output pin is connected to the data output line, the slave clock pin of the PLD is connected to the clock line, the load pin is connected to the load signal line, and the slave number Input pin is connected to the data output line connected to the data from the data output pins of the input line.
当然,在实际应用中,通过本实施例的介绍,本领域所属的技术人员 能够根据实际情况,对 SGPI O总线的数据线的数量进行增減,在此不做限 制。 在接下来的部分中,将以主 PLD通过 4个数据管脚与一组 SGPI 0总线 的 4根数据线相连的情形来进行描述,需要注意的是,本实施例中所介绍 的主 PLD通过 4个数据管脚与一组 SGPI 0总线的 4根数据线的情形只是为 了举例,而不是用于限制本发明实施例中的技术方案。 Of course, in practical applications, by the introduction of this embodiment, those skilled in the art can increase or decrease the number of data lines of the SGPI O bus according to actual conditions, and do not limit the number of data lines of the SGPI O bus. System. In the following part, the description will be made of the case where the main PLD is connected to four data lines of a group of SGPI 0 buses through four data pins. It should be noted that the main PLD introduced in this embodiment passes. The case of four data pins and four data lines of a group of SGPI 0 buses is for the sake of example only, and is not intended to limit the technical solution in the embodiments of the present invention.
如图 3所示,在本实施例中,与现有技术中相比,只需要主 PLD通过 主时钟管脚、 主加载管脚、 主数据输入管脚和主数据输出管脚与一组 SGPI O 总线相连,即能够实现主 PLD与从 PLD之间的相互通信,而不需要如图 1 所示的主 PLD需要 16个数据管脚才能实现和从 PLD之间的通信,所以解决 了因主 PLD与从 PLD之间的通信方式为点对点通信时,主 PLD需要同时和 多个从 PLD相连所造成的数据管脚资源紧张的技术问题,实现了节省主 PLD 的数据管脚资源的技术效果。  As shown in FIG. 3, in this embodiment, only the main PLD needs to pass the main clock pin, the main load pin, the main data input pin, and the main data output pin and a group of SGPIs compared with the prior art. The O bus is connected, that is, the mutual communication between the main PLD and the slave PLD can be realized, and the main PLD as shown in FIG. 1 needs 16 data pins to realize communication with and from the PLD, so the main cause is solved. When the communication mode between the PLD and the slave PLD is point-to-point communication, the main PLD needs to have technical problems of data pin resource shortage caused by multiple PLD connections at the same time, and realizes the technical effect of saving the data pin resource of the main PLD.
同时,从 PLD通过从时钟管脚、 从加载管脚、 从数据输入管脚和从数 据输出管脚与一组 SGPI O总线相连,无论从板上从 PLD的数量多少,主板 与从板之间的连接器管脚定义都与一组 SGPI O总线的定义一致,所以解决 了现有技术中板和各个从板之间的连接器管脚定义复杂的技术问题,实现 了简化主 PLD所在的主板和从 PLD所在的从板之间的连接器管脚定义复杂 度的技术效果。  At the same time, the slave PLD is connected to a group of SGPI O buses from the clock pin, from the load pin, from the data input pin, and from the data output pin, regardless of the number of PLDs from the board, between the motherboard and the slave board. The definition of the connector pins is consistent with the definition of a set of SGPI O buses, so the technical problems of the connector pins defined between the prior art boards and the respective boards are solved, and the motherboard in which the main PLD is simplified is realized. The technical effect of the complexity is defined by the connector pins between the slave boards from which the PLD is located.
在步骤 S1中,主可编程逻辑器件 PLD通过一组 SGPI O总线与至少两个 从 PLD进行通信,具体来讲,可以是主 PLD按时钟周期向至少两个从 PLD 发送第一信息。  In step S1, the main programmable logic device PLD communicates with at least two slave PLDs through a set of SGPI O buses. Specifically, the master PLD may send the first information to at least two slave PLDs by clock cycle.
请参考图 4 ,图 4是本发明实施例提供的主 PLD向从 PLD发送第一信息 的示意图,如图 4所示,主 PLD按时钟周期通过 SGPUI总线的数据输出线 向所有从 PLD发送第一信息,第一信息中包括目的地址与第一数据。 在具 体实施过程中,第一信息的数据位数、 目的地址的数据位数和第一数据的 数据位数可以根据实际情况进行选择,例如,第一信息可以为 16位数据, 目的地址的数据位数可以为 4位数据,第一数据可以为 12位数据。 在实际应用中,若从 PLD的数量较多,4位数据不足以为所有从 PLD分 配地址,则可以增加目的地址的位数,以满足为所有从 PLD分配地址的需 求,这样,每一个从 PLD都能够分配一个对应的地址,当然,增加目的地 址的位数后,可以相应的減少第一数据的位数或者增加第一信息的位数, 然后对应调整主加载管脚输出加载信号的时间间隔即可,当然,通过本实 施例的介绍,本领域所属的技术人员还能够根据实际情况调整第一数据的 位数,例如将第一信息调整为 18位或者 19位等等,在此就不再赘述了。 Please refer to FIG. 4. FIG. 4 is a schematic diagram of the primary PLD sending the first information to the PLD according to the embodiment of the present invention. As shown in FIG. 4, the primary PLD sends the data output line of the SGPUI bus to all the PLDs according to the clock cycle. A message, the first information including the destination address and the first data. In the specific implementation process, the data bit number of the first information, the data bit number of the destination address, and the data bit number of the first data may be selected according to actual conditions, for example, the first information may be 16-bit data, the data of the destination address. The number of bits can be 4 bits of data, and the first number of bits can be 12 bits of data. In practical applications, if the number of PLDs is large, and the 4-bit data is not enough to allocate all addresses from the PLD, the number of bits of the destination address can be increased to meet the requirement for all the addresses allocated from the PLD, so that each slave PLD All can be assigned a corresponding address, of course, after increasing the number of bits of the destination address, the number of bits of the first data can be reduced or the number of bits of the first information can be increased, and then the time interval for loading the load signal of the main load pin is adjusted accordingly. Yes, of course, through the introduction of this embodiment, the person skilled in the art can also adjust the number of bits of the first data according to actual conditions, for example, adjust the first information to 18 bits or 19 bits, etc., Let me repeat.
如图 4所示,主 PLD按时钟周期,通过数据输出线向所有从 PLD发出 第一信息,在第一信息中,前 4位数据为目的地址,后 12位为第一数据, 并在第一信息发送完成的时候通过加载信号线发出加载信号,从 PLD在接 收到加载信号后完成第一信息的加载。 在实际应用中,从加载信号线发出 第一个数据加载信号到发出第二个数据加载信号之间,可以称作一个数据 加载周期。  As shown in FIG. 4, the main PLD sends the first information to all the slave PLDs through the data output line according to the clock cycle. In the first information, the first 4 bits of data are the destination address, and the last 12 bits are the first data, and When the information is sent, the loading signal is sent through the loading signal line, and the loading of the first information is completed after the PLD receives the loading signal. In practical applications, from the time the load signal line issues the first data load signal to the second data load signal, it can be called a data load cycle.
从 PLD在接收到第一信息后,将第一信息中的目的地址与自身对应的 地址进行比较,并根据比较结果对第一信息中的第一数据进行处理,例如, 以第一信息中的目的地址为 0001为例,第一从 PLD分配的对应地址为 0001 , 则第一从 PLD接收到第一信息后,将第一信息中的目的地址 0001和自身对 应的地址 0001进行比较,因为两个地址一样,则表明第一信息的目的地为 第一从 PLD ,第一从 PLD即保存第一信息中的第一数据,从而实现主 PLD 与从 PLD之间的通信。  After receiving the first information, the PLD compares the destination address in the first information with its own address, and processes the first data in the first information according to the comparison result, for example, in the first information. The destination address is 0001. For example, the corresponding address assigned by the first PLD is 0001. After receiving the first information from the PLD, the first destination information 0001 in the first information is compared with the corresponding address 0001. If the addresses are the same, it indicates that the destination of the first information is the first slave PLD, and the first slave PLD saves the first data in the first information, thereby implementing communication between the master PLD and the slave PLD.
其他从 PLD如第二从 PLCL 第三从 PLD等等在接收到第一信息后,将第 一信息中的目的地址 0001和自身对应的地址进行比较,由于第一信息中的 目的地址与第二从 PLCL 第三从 PLD自身对应的地址均不一样,所以第二从 PLCL 第三从 PLD等等均会丟弃第一信息中的第一数据。  After receiving the first information from the PLD, such as the second slave PLCL, the third slave PLD, etc., the destination address 0001 in the first information is compared with the address corresponding to itself, because the destination address and the second address in the first information The address corresponding to the PLD itself from the PLCL third is different, so the second slave PLCL third slave PLD and the like will discard the first data in the first information.
从 PLD在收到的第一信息中的目的地址与自身对应的地址相同后,在 之后的第 M个数据加载周期向主 PLD发送第二信息,从而实现从 PLD与主 PLD之间的通信, Μ为一预设的正整数,例如可以是 1、 2、 3等等,在此不 做限制。 请参考图 5 ,图 5是本发明实施例提供的主 PLD与从 PLD进行通信 时的仿真波形图,如图 5所示,主 PLD通过一组 SGPI 0总线的数据输出线 向从 PLD连续发送信息,而从 PLD根据地址区分,分时段占用一组 SGPI 0 总线的数据输入线向主 PLD发送信息,从而实现在整个一组 SGPI 0总线上 呈现连续发送的波形。 After the destination address in the first information received by the PLD is the same as the address corresponding to itself, the second information is sent to the primary PLD in the subsequent M data loading period, thereby implementing the slave PLD and the master. The communication between the PLDs is a preset positive integer, for example, 1, 2, 3, etc., and is not limited herein. Please refer to FIG. 5. FIG. 5 is a simulation waveform diagram of the main PLD and the slave PLD according to an embodiment of the present invention. As shown in FIG. 5, the main PLD is continuously sent from the PLD through a data output line of the SGPI 0 bus. Information, and the PLD distinguishes according to the address, and the data input line of a group of SGPI 0 buses is used to transmit information to the main PLD, thereby realizing the continuous transmission of waveforms on the entire set of SGPI 0 buses.
在具体实施过程中,为避免某个从 PLD在发送数据时,其他的从 PLD 会将一组 SGPI 0总线的数据输入线拉死,例如一直将数据输入线保持在高 电平状态,继而导致数据发送异常,可以采用通过将从 PLD的从数据输出 管脚配置为高阻态的方式,例如,在从 PLD向主 PLD发送第二信息,也即 从 PLD通过一组 SGPI 0总线与主 PLD进行通信之后,停止通过从 PLD的从 数据输出管脚输出电平,也即在从 PLD与主 PLD进行通信之后,将从 PLD 的从数据输出管脚配置为高阻态,从而保证从 PLD不会将数据输入线拉死。  In the specific implementation process, in order to avoid a certain slave PLD transmitting data, other slave PLDs will pull the data input line of a group of SGPI 0 bus, for example, keep the data input line high, and then cause Data transmission is abnormal. It can be adopted by configuring the slave data output pin from the PLD to a high-impedance state, for example, sending a second message from the PLD to the master PLD, that is, from the PLD through a group of SGPI 0 buses and the master PLD. After communication, stop the output level from the slave data output pin of the PLD, that is, after the PLD communicates with the master PLD, the slave data output pin of the PLD is configured to a high-impedance state, thereby ensuring that the slave PLD is not The data input line will be pulled.
除了上述将从 PLD的从数据输出管脚配置为高阻态的方式来保证从 PLD 不会将数据输入线拉死之外,本发明实施例还提供一种通过将从 PLD的从 输出管脚配置为漏极开路输出(CD输出)的方式保证从 PLD不会将数据输 入线拉死。  In addition to the above-described way of configuring the slave data output pin from the PLD to a high-impedance state to ensure that the data input line is not pulled from the PLD, the embodiment of the present invention also provides a slave output pin through the slave PLD. The way the open-drain output (CD output) is configured ensures that the data input line is not pulled from the PLD.
请继续参考 6 ,图 6是本发明实施例提供的保从 PLD的从输出管脚配置 为漏极开路输出的示意图,如图 6所示,将从 PLD配置为漏极开路输出, 并在主 PLD的主输入管脚上添加上拉电阻,上拉电阻的一端与上拉电压相 连,上拉电阻的另一端与数据输入线相连,当然,也可以在主 PLD内部将 主输入管脚配置为上拉,从而实现线与逻辑。  Please refer to FIG. 6 again. FIG. 6 is a schematic diagram of the slave PLD from the output pin configured as an open-drain output according to an embodiment of the present invention. As shown in FIG. 6, the PLD is configured as an open-drain output, and is in the main A pull-up resistor is added to the main input pin of the PLD. One end of the pull-up resistor is connected to the pull-up voltage, and the other end of the pull-up resistor is connected to the data input line. Of course, the main input pin can also be configured inside the main PLD. Pull up to achieve line and logic.
这样,在一组 SGPI O总线的数据输入线处于高电平状态时,即能够保 证任意从 PLD向主 PLD发送信息的准确性,例如是从 PLD通过其从数据输 出管脚输出高电平,则整个数据输入线处于高电平状态,主 PLD通过主数 据输入管脚会接收到该高电平信息,从 PLD通过其从数据输出管脚输出低 电平时,由于从数据输出管脚为漏极开路输出,所以会将整个数据输入线 拉为低电平,主 PLD通过主数据输入管脚会接收到低电平信息,从而实现 了保证任意从 PLD向主 PLD发生信息的准确性的效果。 In this way, when the data input line of a group of SGPI O bus is in a high state, the accuracy of any information sent from the PLD to the main PLD can be ensured, for example, the PLD outputs a high level from the data output pin through the PLD. Then the entire data input line is in a high state, and the main PLD receives the high level information through the main data input pin, and the output from the PLD through the data output pin is low. At the level, since the data output pin is an open-drain output, the entire data input line is pulled low, and the main PLD receives low-level information through the main data input pin, thereby realizing the guarantee of arbitrary The effect of the PLD on the accuracy of the information generated by the primary PLD.
当然,通过本实施例的介绍,本领域所属的技术人员能够根据实际情 况,选择其他合适的方式来保证从 PLD向主 PLD正常发送信息,以满足实 际情况的需要,在此就不再赘述了。  Of course, through the introduction of this embodiment, those skilled in the art can select other suitable manners to ensure that the information is normally sent from the PLD to the primary PLD to meet the actual situation, and will not be described here. .
基于同一发明构思,本发明实施例还提供一种电子设备,包括:主可 编程逻辑器件 PLD和至少两个从 PLD ,主 PLD通过 Ν个数据管脚与一组串行 通用输入 /输出 SGPI O总线的 Ν根数据线对应相连,其中 Ν为一个从 PLD与 SGPI O总线相连的管脚数量;主 PLD ,用于通过一组 SGPI O总线与至少两个 从 PLD进行通信;从 PLD ,用于通过一组 SGPI O总线与主 PLD进行通信。  Based on the same inventive concept, an embodiment of the present invention further provides an electronic device including: a main programmable logic device PLD and at least two slave PLDs, a main PLD through a data pin and a set of serial general purpose input/output SGPI O The root data lines of the bus are connected, wherein Ν is a number of pins connected from the PLD to the SGPI O bus; the main PLD is used to communicate with at least two slave PLDs through a set of SGPI O buses; Communicates with the primary PLD over a set of SGPI O buses.
在具体实施过程中,主 PLD具体用于:按时钟周期向至少两个从 PLD 发送第一信息;从 PLD还用于:将收到的第一信息中的目的地址与自身对 应的地址进行比较,并根据比较结果对第一信息中的第一数据进行处理。  In a specific implementation process, the primary PLD is specifically configured to: send the first information to the at least two slave PLDs according to a clock cycle; and the slave PLD is further configured to: compare the destination address in the received first information with the address corresponding to the first PLD. And processing the first data in the first information according to the comparison result.
在具体实施过程中,从 PLD具体用于:在收到的第一信息中的目的地 址与自身对应的地址相同后,保存第一信息中的第一数据,或在收到的第 一信息中的目的地址与自身对应的地址不相同后,丟弃第一信息中的第一 数据。  In a specific implementation process, the PLD is specifically configured to: after the destination address in the received first information is the same as the address corresponding to the first information, save the first data in the first information, or in the first information received. After the destination address is different from the address corresponding to itself, the first data in the first information is discarded.
在具体实施过程中,从 PLD具体用于:在收到的第一信息中的目的地 址与自身对应的地址相同后,在之后的第 M个数据加载周期向主 PLD发送 第二信息, M为正整数。  In the specific implementation process, the PLD is specifically configured to: after the destination address in the received first information is the same as the address corresponding to itself, send the second information to the primary PLD in the subsequent M data loading period, where M is A positive integer.
在具体实施过程中,在 N为 4时, N根数据线包括一时钟线、 一加载信 号线、 一数据输入线和一数据输出线;主 PLD的主时钟管脚与时钟线相连、 主加载管脚与加载信号线相连、 主数据输入管脚与数据输入线相连、 主数 据输出管脚与数据输出线相连;从 PLD的主时钟管脚与时钟线相连、 从加 载管脚与加载信号线相连、 从数据输入管脚与数据输入线相连、 从数据输 出管脚与数据输出线相连。 In a specific implementation process, when N is 4, the N data lines include a clock line, a load signal line, a data input line, and a data output line; the main clock pin of the main PLD is connected to the clock line, and the main load is The pin is connected to the load signal line, the main data input pin is connected to the data input line, the main data output pin is connected to the data output line; the main clock pin of the PLD is connected to the clock line, the load pin and the load signal line are loaded. Connected, connected from the data input pin to the data input line, from the data input The output pin is connected to the data output line.
在具体实施过程中,从 PLD还用于:在通过一组 SGPI 0总线与主 PLD 进行通信之后,停止通过从数据输出管脚输出电平。  In the implementation process, the slave PLD is also used to stop the output level from the data output pin after communicating with the master PLD through a set of SGPI 0 buses.
在具体实施过程中,该电子设备还包括:用于拉高数据输入线电平的 上拉电阻;从数据输出管脚为漏极开路输出,从 PLD还用于:在通过一组 SGPI O总线与主 PLD进行通信之后,通过从数据输出管脚输出高电平。  In a specific implementation process, the electronic device further includes: a pull-up resistor for pulling the data input line level; the data output pin is an open-drain output, and the slave PLD is further used to: pass through a group of SGPI O bus After communicating with the main PLD, a high level is output from the data output pin.
本实施例中的电子设备与前述实施例中的信息处理方法是基于同一发 明构思下的两个方面,在前面已经对方法的实施过程作了详细的描述,所 以本领域技术人员可根据前述描述清楚的了解本实施例中的电子设备的结 构及实施过程,为了说明书的简洁,在此就不再赘述了。  The electronic device in this embodiment and the information processing method in the foregoing embodiment are based on two aspects under the same inventive concept. The implementation process of the method has been described in detail above, so those skilled in the art can refer to the foregoing description. The structure and implementation process of the electronic device in this embodiment are clearly understood. For the sake of brevity of the description, details are not described herein again.
上述本发明实施例中的技术方案,至少具有如下的技术效果或优点: 由于采用了主 PLD通过 N个数据管脚与一组 SGPI O总线的 N根数据线 对应相连,并通过一组 SGPI O总线与至少两个从 PLD进行通信,其中 N为 一个从 PLD与 SGPI O总线相连的管脚数量,以及从 PLD通过该一组 SGPI O 总线与主 PLD进行通信的技术方案,主 PLD与从 PLD之间的通信方式不再 为点对点的通信方式,而是通过一组 SGPI O总线进行相互通信,主 PLD只 需要通过 N个数据管脚与一组 SGPI O总线相连,从 PLD只需要通过 N个数 据管脚和该一组 SGPI O总线相连,即能够实现主 PLD与从 PLD之间的相互 通信,避免了主 PLD与从 PLD之间通过点对点方式相连时需要主 PLD提供 从 PLD的数量倍数的数据管脚的情形,所以解决了现有技术中存在的主 PLD 数据管脚资源紧张,以及主 PLD所在的主板和从 PLD所在的从板之间的连 接器管脚定义复杂的技术问题,实现了节省主 PLD的数据管脚资源,简化 主 PLD所在的主板和从 PLD所在的从板之间的连接器管脚定义复杂度的技 术效果。  The technical solution in the foregoing embodiments of the present invention has at least the following technical effects or advantages: The primary PLD is connected to the N data lines of a group of SGPI O buses through N data pins, and passes through a group of SGPI Os. The bus communicates with at least two slave PLDs, where N is a number of pins connected from the PLD to the SGPI O bus, and a technical solution for communicating with the master PLD from the PLD through the set of SGPI O buses, the master PLD and the slave PLD The communication mode is no longer a point-to-point communication method, but communicates with each other through a set of SGPI O buses. The main PLD only needs to be connected to a group of SGPI O buses through N data pins, and only N through the PLD. The data pin is connected to the set of SGPI O buses, which can realize mutual communication between the primary PLD and the secondary PLD, and avoids the need for the primary PLD to provide a multiple of the number of PLDs when the primary PLD and the secondary PLD are connected in a point-to-point manner. The situation of the data pin, so that the resource shortage of the main PLD data pin existing in the prior art is solved, and the main board where the main PLD is located and the slave board where the PLD is located are Connector pin definitions complicated technical problem to achieve a primary resource saving data pins of PLD, PLD simplifies board where the main and the PLD where technical complexity results from the connector pins defined between the plates.
本领域内的技术人员应明白 ,本发明的实施例可提供为方法、 系统、 或计算机程序产品。 因此,本发明可采用完全硬件实施例、 完全软件实施 例、 或结合软件和硬件方面的实施例的形式。 而且,本发明可采用在一个 或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不 限于磁盘存储器、 O ROV1 光学存储器等)上实施的计算机程序产品的形 式。 Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Therefore, the present invention can be implemented in an entirely hardware embodiment, fully software implemented For example, or in combination with an embodiment of software and hardware aspects. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, O ROV1 optical storage, etc.) containing computer usable program code.
本发明是参照根据本发明实施例的方法、 设备(系统 λ 和计算机程序 产品的流程图和 /或方框图来描述的。 应理解可由计算机程序指令实现流 程图和 /或方框图中的每一流程和 /或方框、 以及流程图和 /或方框图中 的流程和 /或方框的结合。 可提供这些计算机程序指令到通用计算机、 专 用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个 机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产 生用于实现在流程图一个流程或多个流程和 /或方框图一个方框或多个方 框中指定的功能的装置。  The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, devices (system λ and computer program products) according to embodiments of the invention. It is understood that each of the flowcharts and/or block diagrams can be implemented by computer program instructions. / or a combination of blocks and flow diagrams and/or blocks in a flowchart and/or block diagram. Processors for providing such computer program instructions to a general purpose computer, special purpose computer, embedded processor or other programmable data processing device To generate a machine such that instructions executed by a processor of a computer or other programmable data processing device generate functions for implementing a process in a flow or a flow and/or a block diagram in a block or blocks. s installation.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理 设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存 储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个 流程或多个流程和 /或方框图一个方框或多个方框中指定的功能。  The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备 上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机 实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现 在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的 功能的步骤。  These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发 明的精神和范围。 这样,倘若本发明的这些修改和变型属于本发明权利要 求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。 It is apparent that those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and the modifications

Claims

权利要求 Rights request
1、 一种信息处理方法,其特征在于,所述方法包括: 1. An information processing method, characterized in that the method includes:
主可编程逻辑器件 PLD通过 N个数据管脚与一组串行通用输入 /输出 SGPI 0总线的 N根数据线对应相连,并通过所述一组 SGPI 0总线与至少两个 从 PLD进行通信,其中 N为一个所述从 PLD与所述 SGPI 0总线相连的管脚 数量;以及 The master programmable logic device PLD is connected to N data lines of a set of serial general-purpose input/output SGPI 0 buses through N data pins, and communicates with at least two slave PLDs through the set of SGPI 0 buses, Where N is the number of pins connected to the SGPI 0 bus of a slave PLD; and
所述从 PLD通过所述一组 SGPI 0总线与所述主 PLD进行通信。 The slave PLD communicates with the master PLD through the set of SGPI 0 buses.
2、 如权利要求 1所述的方法,其特征在于,所述主 PLD通过所述一组 SGPI 0总线与至少两个从 PLD进行通信,包括: 2. The method of claim 1, wherein the master PLD communicates with at least two slave PLDs through the set of SGPI 0 buses, including:
所述主 PLD按时钟周期向所述至少两个从 PLD发送第一信息; 所述主 PLD通过所述一组 SGPI 0总线与至少两个从 PLD进行通信之后, 还包括: The master PLD sends the first information to the at least two slave PLDs in a clock cycle; after the master PLD communicates with the at least two slave PLDs through the set of SGPI 0 buses, it also includes:
所述从 PLD将收到的所述第一信息中的目的地址与自身对应的地址进 行比较,并根据比较结果对所述第一信息中的第一数据进行处理。 The slave PLD compares the destination address in the received first information with its corresponding address, and processes the first data in the first information according to the comparison result.
3、 如权利要求 2所述的方法,其特征在于,所述从 PLD根据比较结果 对所述第一信息中的第一数据进行处理,包括: 3. The method of claim 2, wherein the slave PLD processes the first data in the first information according to the comparison result, including:
所述从 PLD在收到的所述第一信息中的目的地址与自身对应的地址相 同后,保存所述第一信息中的第一数据;或 After the destination address in the received first information is the same as its corresponding address, the slave PLD saves the first data in the first information; or
所述从 PLD在收到的所述第一信息中的目的地址与自身对应的地址不 相同后,丟弃所述第一信息中的第一数据。 After the destination address in the received first information is different from its corresponding address, the slave PLD discards the first data in the first information.
4、 如权利要求 3所述的方法,其特征在于,所述从 PLD通过所述一组 SGPI 0总线与所述主 PLD进行通信,包括: 4. The method of claim 3, wherein the slave PLD communicates with the master PLD through the set of SGPI 0 buses, including:
所述从 PLD在收到的所述第一信息中的目的地址与自身对应的地址相 同后,在之后的第 M个数据加载周期向所述主 PLD发送第二信息, M为正整 After the destination address in the received first information is the same as its corresponding address, the slave PLD sends the second information to the master PLD in the Mth data loading cycle, where M is a positive integer.
5、 如权利要求 1所述的方法,其特征在于,在 N为 4时,所述 N根数 据线包括一时钟线、 一加载信号线、 一数据输入线和一数据输出线; 5. The method of claim 1, wherein when N is 4, the N data lines include a clock line, a loading signal line, a data input line and a data output line;
所述主 PLD的主时钟管脚与所述时钟线相连、 主加载管脚与所述加载 信号线相连、 主数据输入管脚与所述数据输入线相连、 主数据输出管脚与 所述数据输出线相连; The main clock pin of the main PLD is connected to the clock line, the main loading pin is connected to the loading signal line, the main data input pin is connected to the data input line, and the main data output pin is connected to the data The output lines are connected;
所述从 PLD的从时钟管脚与所述时钟线相连、 从加载管脚与所述加载 信号线相连、 从数据输入管脚与所述数据输出线相连、 从数据输出管脚与 所述数据输入线相连。 The slave clock pin of the slave PLD is connected to the clock line, the slave load pin is connected to the load signal line, the slave data input pin is connected to the data output line, the slave data output pin is connected to the data The input lines are connected.
6、 如权利要求 5所述的方法,其特征在于,所述从 PLD在通过所述一 组 SGPI 0总线与所述主 PLD进行通信之后,还包括: 6. The method of claim 5, wherein after the slave PLD communicates with the master PLD through the set of SGPI 0 buses, it further includes:
停止通过所述从数据输出管脚输出电平。 Stops the output level via the slave data output pin.
7、 如权利要求 5所述的方法,其特征在于,所述从数据输出管脚为漏 极开路输出,所述数据输入线与用于拉高所述数据输入线电平的上拉电阻 相连; 7. The method of claim 5, wherein the slave data output pin is an open-drain output, and the data input line is connected to a pull-up resistor for pulling up the level of the data input line. ;
所述从 PLD在通过所述一组 SGPI O总线与所述主 PLD进行通信之后, 还包括:通过所述从数据输出管脚输出高电平。 After the slave PLD communicates with the master PLD through the set of SGPIO buses, it further includes: outputting a high level through the slave data output pin.
8、 一种电子设备,其特征在于,包括:主可编程逻辑器件 PLD和至少 两个从 PLD ,所述主 PLD通过 N个数据管脚与一组串行通用输入 /输出 SGPI O 总线的 N根数据线对应相连,其中 N为一个所述从 PLD与所述 SGPI O总线 相连的管脚数量; 8. An electronic device, characterized in that it includes: a master programmable logic device PLD and at least two slave PLDs. The master PLD communicates with a set of serial general-purpose input/output SGPIO buses through N data pins. The data lines are connected correspondingly, where N is the number of pins connected to the slave PLD and the SGPI O bus;
所述主 PLD用于通过所述一组 SGPI O总线与至少两个从 PLD进行通信; 所述从 PLD ,用于通过所述一组 SGPI O总线与所述主 PLD进行通信。 The master PLD is used to communicate with at least two slave PLDs through the set of SGPIO buses; and the slave PLD is used to communicate with the master PLD through the set of SGPIO buses.
9、 如权利要求 8所述的电子设备,其特征在于,所述主 PLD具体用于: 按时钟周期向所述至少两个从 PLD发送第一信息; 9. The electronic device according to claim 8, wherein the master PLD is specifically configured to: send the first information to the at least two slave PLDs in a clock cycle;
所述从 PLD还用于: The slave PLD is also used for:
将收到的所述第一信息中的目的地址与自身对应的地址进行比较,并 根据比较结果对所述第一信息中的第一数据进行处理。 Compare the destination address in the received first information with its corresponding address, and The first data in the first information is processed according to the comparison result.
10、 如权利要求 9所述的电子设备,其特征在于,所述从 PLD具体用 于: 10. The electronic device according to claim 9, wherein the slave PLD is specifically used for:
在收到的所述第一信息中的目的地址与自身对应的地址相同后,保存 所述第一信息中的第一数据,或在收到的所述第一信息中的目的地址与自 身对应的地址不相同后,丟弃所述第一信息中的第一数据。 After the destination address in the received first information is the same as the address corresponding to itself, the first data in the first information is saved, or the destination address in the received first information corresponds to itself. After the addresses are different, the first data in the first information is discarded.
11、 如权利要求 10所述的电子设备,其特征在于,所述从 PLD具体用 于: 11. The electronic device according to claim 10, wherein the slave PLD is specifically used for:
在收到的所述第一信息中的目的地址与自身对应的地址相同后,在之 后的第 M个数据加载周期向所述主 PLD发送第二信息, M为正整数。 After the destination address in the received first information is the same as its corresponding address, the second information is sent to the main PLD in the Mth data loading cycle, where M is a positive integer.
12、 如权利要求 8所述的电子设备,其特征在于,在 N为 4时,所述 N 根数据线包括一时钟线、 一加载信号线、 一数据输入线和一数据输出线; 所述主 PLD的主时钟管脚与所述时钟线相连、 主加载管脚与所述加载 信号线相连、 主数据输入管脚与所述数据输入线相连、 主数据输出管脚与 所述数据输出线相连; 12. The electronic device according to claim 8, wherein when N is 4, the N data lines include a clock line, a loading signal line, a data input line and a data output line; The main clock pin of the main PLD is connected to the clock line, the main load pin is connected to the load signal line, the main data input pin is connected to the data input line, the main data output pin is connected to the data output line connected; connected
所述从 PLD的主时钟管脚与所述时钟线相连、 从加载管脚与所述加载 信号线相连、 从数据输入管脚与所述数据输入线相连、 从数据输出管脚与 所述数据输出线相连。 The main clock pin of the slave PLD is connected to the clock line, the slave load pin is connected to the load signal line, the slave data input pin is connected to the data input line, the slave data output pin is connected to the data The output lines are connected.
13、如权利要求 12所述的电子设备,其特征在于,所述从 PLD还用于: 在通过所述一组 SGPI 0总线与所述主 PLD进行通信之后,停止通过所 述从数据输出管脚输出电平。 13. The electronic device of claim 12, wherein the slave PLD is further configured to: after communicating with the master PLD through the set of SGPI 0 buses, stop passing the slave data output pipe. pin output level.
14、 如权利要求 12所述的电子设备,其特征在于,所述电子设备还包 括:用于拉高所述数据输入线电平的上拉电阻; 14. The electronic device according to claim 12, wherein the electronic device further includes: a pull-up resistor for pulling up the level of the data input line;
所述从数据输出管脚为漏极开路输出,所述从 用于:在通过所述 一组 SGPI Qg、线与所述主 PL[¾S行通信之后,通过所述从数据输出管脚输出 局电平。 The slave data output pin is an open-drain output, and the slave is used to: after communicating with the master PL line through the group of SGPI Qg, lines, output the slave data through the slave data output pin. level.
PCT/CN2014/079457 2013-10-25 2014-06-09 Information processing method and electronic device WO2015058533A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310513375.3 2013-10-25
CN201310513375.3A CN103559159A (en) 2013-10-25 2013-10-25 Information processing method and electronic device

Publications (1)

Publication Number Publication Date
WO2015058533A1 true WO2015058533A1 (en) 2015-04-30

Family

ID=50013409

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/079457 WO2015058533A1 (en) 2013-10-25 2014-06-09 Information processing method and electronic device

Country Status (2)

Country Link
CN (1) CN103559159A (en)
WO (1) WO2015058533A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103559159A (en) * 2013-10-25 2014-02-05 华为技术有限公司 Information processing method and electronic device
CN105404607B (en) * 2015-11-20 2018-02-13 英业达科技有限公司 The data transmission method of general serial input and output
CN107368444A (en) * 2017-08-02 2017-11-21 杭州迪普科技股份有限公司 Electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1725205A (en) * 2005-07-19 2006-01-25 杭州华为三康技术有限公司 Combined access device and method of controller and multiple programmable logical device
US20090089473A1 (en) * 2007-10-01 2009-04-02 Wangping He Data transmission system and method thereof
CN102200940A (en) * 2010-03-26 2011-09-28 鸿富锦精密工业(深圳)有限公司 HDD (Hard Disk Driver) backboard testing system
CN103559159A (en) * 2013-10-25 2014-02-05 华为技术有限公司 Information processing method and electronic device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6487618B1 (en) * 1999-05-14 2002-11-26 Xilinx, Inc. Method for resisting an FPGA interface device
CN1963906B (en) * 2006-11-10 2010-05-12 北京巨数数字技术开发有限公司 Driving control system for overturn row-by-row and its method and LED display screen
CN101222732B (en) * 2008-01-22 2011-01-05 中兴通讯股份有限公司 State control signal testing device
CN103166821A (en) * 2011-12-12 2013-06-19 深圳市华为安捷信电气有限公司 Method, device and system capable of achieving serial port communication
WO2013114398A2 (en) * 2012-01-30 2013-08-08 The Tata Power Company Ltd. Fpga system for usb bridge implementation
CN102880571A (en) * 2012-08-16 2013-01-16 浙江宇视科技有限公司 Synchronous serial connection device
CN103235767B (en) * 2013-04-11 2015-12-09 和记奥普泰通信技术有限公司 A kind of principal and subordinate MII management interface serial communication method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1725205A (en) * 2005-07-19 2006-01-25 杭州华为三康技术有限公司 Combined access device and method of controller and multiple programmable logical device
US20090089473A1 (en) * 2007-10-01 2009-04-02 Wangping He Data transmission system and method thereof
CN102200940A (en) * 2010-03-26 2011-09-28 鸿富锦精密工业(深圳)有限公司 HDD (Hard Disk Driver) backboard testing system
CN103559159A (en) * 2013-10-25 2014-02-05 华为技术有限公司 Information processing method and electronic device

Also Published As

Publication number Publication date
CN103559159A (en) 2014-02-05

Similar Documents

Publication Publication Date Title
TWI733752B (en) System and method for side band communication, and tangible, non-transitory, computer-readable medium
EP3234788B1 (en) DATA TRANSMISSION USING PCIe PROTOCOL VIA USB PORT
US10140242B2 (en) General purpose input/output (GPIO) signal bridging with I3C bus interfaces and virtualization in a multi-node network
US7562172B2 (en) I2C Slave/master interface enhancement using state machines
US20080195764A1 (en) Programming Parallel 12C Slave Devices from a Single 12C Data Stream
US10204065B2 (en) Methods and apparatus for a multiple master bus protocol
US8543740B2 (en) Apparatus and method for increased address range of an I2C or I2C compatible bus
WO2022161244A1 (en) Multi-host arbitration method and apparatus, and readable storage medium
CN103092175A (en) Controlling method and device for serial clock line (SCL) between inter-integrated circuit (I2C) master equipment and slave equipment
WO2015058533A1 (en) Information processing method and electronic device
TW201805830A (en) Apparatus allocating controller and apparatus allocating method
US11314668B2 (en) Method, apparatus and system for device transparent grouping of devices on a bus
KR20170139673A (en) Communication between integrated circuits
WO2012171582A1 (en) Resolving address conflicts in a bus system
TWI761624B (en) Addressing method for integrated circuit chip and system thereof
JP5770383B2 (en) Method and system for reducing power supply noise during training of high speed communication links
TWI729491B (en) Ethernet network communication system using gipo pins and network server having the same
Smitha et al. Design of I2C Protocol in Verilog-A New Approach
WO2021035398A1 (en) Synchronization circuit and synchronization chip
TWI475392B (en) Dual-mode electronic device, electronic system and host determination method
JP2014096768A (en) Management data access system, management data access device, managed device, and communication device
JP2022095198A (en) Information processing apparatus
TW201837730A (en) System, method and computer-readable storage device for improved server module addressing

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14854934

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14854934

Country of ref document: EP

Kind code of ref document: A1