Server system and method for improving pin reuse rate of programmable devices
By introducing detection modules and storage modules into programmable devices and utilizing multiplexed pins and power-on status signal control, the problem of insufficient FPGA/CPLD pin resources is solved, efficient pin reuse is achieved, and costs are reduced.
Patent Information
- Application Number
- CN202110937167.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-16
- Publication Date
- 2025-09-09
- Estimated Expiration
- 2041-08-16
AI Technical Summary
FPGA/CPLD pin resources on servers are insufficient, resulting in increased costs for replacing large devices.
By introducing detection modules and storage modules into programmable devices, multiplexing pins are used to receive and store in-position signals, and the pin states are switched under the control of power-on state signals, thus achieving efficient pin multiplexing.
The multiplexing rate of programmable device pins is improved, pin resources are saved, circuit design is simplified, and costs are reduced.
Smart Images

Figure CN115906722B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of integrated circuits, and in particular to a server system and method for improving the pin reuse rate of programmable devices. Background Art
[0002] Servers typically have an FPGA / CPLD to control power-up timing and other logic signal control. However, during the product design phase, FPGA / CPLD pin resources are often insufficient, while the FPGA / CPLD's internal logic resources are sufficient. Replacing the FPGA / CPLD with a larger one increases costs. Summary of the Invention
[0003] In view of the above, it is necessary to propose a server system and method for improving the pin reuse rate of programmable devices to solve the problem of insufficient FPGA / CPLD pin resources.
[0004] An embodiment of the present application provides a server system for improving the pin reuse rate of a programmable device, the system comprising a programmable device, a first device, and a second device, wherein the programmable device is connected to the first device and the second device;
[0005] The programmable device includes a main logic communication module, a detection module, a storage module and a multiplexing pin. The main logic communication module is connected to the first device through the multiplexing pin; the detection module is connected to the second device through the multiplexing pin, and the storage module is connected to the detection module.
[0006] The multiplexed pin is used to receive a presence signal sent by the second device when it is powered on and send the presence signal to the detection module.
[0007] The detection module is used to send the in-place signal to the storage module, and the storage module stores the in-place signal.
[0008] The main logic communication module is used to communicate with the first device through a multiplexed pin.
[0009] The detection module stores the presence signal of the second device obtained by the multiplexed pin in the register, and then the main logic communication module communicates with the first device through the multiplexed pin, thereby improving the pin multiplexing rate.
[0010] In some embodiments, the main logic communication module is an I2C communication module.
[0011] In some embodiments, a power supply is further included, the power supply is connected to the multiplexing pin, the power supply is used to output a power-on status signal to the multiplexing pin, and a switching circuit is provided between the power supply and the multiplexing pin.
[0012] When power-on is not completed, the power-on status signal output by the power supply is at a low level, the switch circuit is turned on, and the programmable device sets the multiplexed pin as an input.
[0013] The second device sends the presence signal to the detection module through a multiplexed pin, the detection module sends the presence signal to the storage module, and the storage module stores the presence signal.
[0014] When power-on is completed, the power-on status signal output by the power supply is high, the switch circuit is turned off, the second device stops sending the presence signal to the detection module through the multiplexed pin, and the programmable device sets the multiplexed pin to output.
[0015] The I2C communication module communicates with the first device through the multiplexed pin.
[0016] By controlling the opening and closing of the switch circuit through the power-on status signal, it can be ensured that no level conflict occurs in the multiplexed pin.
[0017] In some embodiments, when the multiplexing pin is an open-drain output, the switching circuit includes a MOS transistor, and the power supply is connected to the multiplexing pin through the MOS transistor.
[0018] When power-on is not completed, the power-on status signal output by the power supply is at a low level, the MOS tube is turned on, and the programmable device sets the multiplexed pin as an input.
[0019] The second device sends the presence signal to the detection module through a multiplexed pin, the detection module sends the presence signal to the storage module, and the storage module stores the presence signal.
[0020] When power-on is completed, the power-on status signal output by the power supply is high, the MOS tube is turned off, the second device stops sending the in-position signal to the detection module through the multiplexed pin, and the programmable device sets the multiplexed pin to output.
[0021] The I2C communication module communicates with the first device through the multiplexed pin.
[0022] In some embodiments, when the multiplexed pin is a push-pull output, the programmable device sets the multiplexed pin as an input, and the second device sends a presence signal to the detection module through the multiplexed pin;
[0023] The detection module sends the in-place signal to the storage module, the storage module stores the in-place signal, the programmable device sets the multiplexed pin as an output, and the main logic communication module communicates with the first device through the multiplexed pin.
[0024] By adopting the above technical solution, circuit design can be simplified.
[0025] An embodiment of the present application also provides a method for improving the pin reuse rate of a programmable device, which is applied to a system. The system includes a programmable device, a second device, and a first device. The programmable device includes a main logic communication module, a detection module, a storage module, and a multiplexing pin. The main logic communication module is connected to the first device via the multiplexing pin; the detection module is connected to the second device via the multiplexing pin; and the storage module is connected to the detection module. The method includes the following steps:
[0026] The second device is powered on and sends a presence signal to the detection module through the multiplexed pin;
[0027] The detection module sends the presence signal to the storage module
[0028] The main logic communication module communicates with the first device through the multiplexed pin.
[0029] In some embodiments, the main logic communication module is an I2C communication module.
[0030] In some embodiments, the system further includes a power supply, the power supply being connected to the multiplexing pin, the power supply being configured to output a power-on status signal to the multiplexing pin, and a switching circuit being provided between the power supply and the multiplexing pin;
[0031] The method further comprises the following steps:
[0032] When power-on is not completed, the power-on status signal output by the power supply is at a low level, the switch circuit is turned on, and the programmable device sets the multiplexed pin as an input;
[0033] The second device sends the presence signal to the detection module through the multiplexed pin, the detection module sends the presence signal to the storage module, and the storage module stores the presence signal;
[0034] When power-on is completed, the power-on status signal output by the power supply is high, the switch circuit is turned off, the second device stops sending the presence signal to the detection module through the multiplexed pin, and the programmable device sets the multiplexed pin to output.
[0035] The I2C communication module communicates with the first device through the multiplexed pin.
[0036] In some embodiments, when the multiplexing pin is an open-drain output, the switch circuit includes a MOS transistor, and the power supply is connected to the multiplexing pin through the MOS transistor;
[0037] The method further comprises the following steps:
[0038] When power-on is not completed, the power-on status signal output by the power supply is at a low level, the MOS tube is turned on, and the programmable device sets the multiplexed pin as an input;
[0039] The second device sends the presence signal to the detection module through the multiplexed pin, the detection module sends the presence signal to the storage module, and the storage module stores the presence signal;
[0040] When power-on is completed, the power-on status signal output by the power supply is high, the MOS tube is turned off, the second device stops sending the in-position signal to the detection module through the multiplexed pin, and the programmable device sets the multiplexed pin to output.
[0041] The I2C communication module communicates with the first device through the multiplexed pin.
[0042] In some embodiments, when the multiplexed pin is a push-pull output;
[0043] The method comprises the following steps:
[0044] The programmable device sets the multiplexed pin as an input, and the second device sends a presence signal to the detection module through the multiplexed pin;
[0045] The detection module sends the in-place signal to the storage module, and the storage module stores the in-place signal;
[0046] The programmable device sets the multiplexed pin as an output, and the main logic communication module communicates with the first device through the multiplexed pin.
[0047] In this application, the detection module obtains the presence signal of the second device through the multiplexed pin and stores the presence signal in the storage module. The main logic communication module can also communicate with the first device through the multiplexed pin, thereby improving the multiplexing rate of the multiplexed pin of the programmable device and saving pin resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 It is a schematic diagram of the architecture of the server system provided by an embodiment of the present invention.
[0049] Figure 2 yes Figure 1 Schematic diagram of the second device in push-pull mode.
[0050] Figure 3 This is a flow chart of a method for improving pin reuse rate provided by an embodiment of the present invention.
[0051] Description of main component symbols
[0052] System 1
[0053] Programmable device 10
[0054] Storage module 101
[0055] Detection module 102
[0056] Main logic communication module 103
[0057] Multiplexed pin 104
[0058] First device 20
[0059] Second device 30
[0060] Power Supply 40
[0061] Power-on status signal 401
[0062] Switching circuit 50 DETAILED DESCRIPTION
[0063] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0064] An embodiment of the present application provides a server system for improving the pin reuse rate of a programmable device, the system comprising a programmable device, a first device, and a second device, wherein the programmable device is connected to the first device and the second device;
[0065] The programmable device includes a main logic communication module, a detection module, a storage module and a multiplexing pin. The main logic communication module is connected to the first device through the multiplexing pin; the detection module is connected to the second device through the multiplexing pin, and the storage module is connected to the detection module.
[0066] The multiplexed pin is used to receive a presence signal sent by the second device when it is powered on and send the presence signal to the detection module.
[0067] The detection module is used to send the in-place signal to the storage module, and the storage module stores the in-place signal.
[0068] The main logic communication module is used to communicate with the first device through a multiplexed pin.
[0069] An embodiment of the present application further provides a method for improving the pin reuse rate of a programmable device, which is applied to a system, the system comprising a programmable device, a second device, and a first device, the programmable device comprising a main logic communication module, a detection module, a storage module, and a multiplexing pin, the main logic communication module being connected to the first device via the multiplexing pin; the detection module being connected to the second device via the multiplexing pin; and the storage module being connected to the detection module, the method comprising the following steps:
[0070] The second device is powered on and sends a presence signal to the detection module through the multiplexed pin.
[0071] The detection module sends the presence signal to the storage module.
[0072] The main logic communication module communicates with the first device through the multiplexed pin.
[0073] In the above embodiment, the detection module obtains the presence signal of the second device through the multiplexed pin and stores the presence signal in the storage module. The main logic communication module can also communicate with the first device through the multiplexed pin, thereby improving the multiplexing rate of the multiplexed pins of the programmable device and saving pin resources.
[0074] Some embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0075] See also Figure 1 The present invention provides a server system 1 for improving the pin reuse rate of a programmable device. The system 1 includes a programmable device 10, a first device 20, and a second device 30. The programmable device 10 is connected to the first device 20 and the second device 30.
[0076] The programmable device 10 includes a main logic communication module 103, a detection module 102, a storage module 101 and a multiplexing pin 104. The main logic communication module 103 is connected to the first device 20 through the multiplexing pin 104; the detection module 102 is connected to the second device 30 through the multiplexing pin 104, and the storage module 101 is connected to the detection module 102.
[0077] The multiplexing pin 104 is used to receive a presence signal sent when the second device 30 is powered on and send the presence signal to the detection module 102;
[0078] The detection module 102 is used to send the presence signal to the storage module 101, and the storage module 101 stores the presence signal;
[0079] The main logic communication module 103 is used to communicate with the first device 20 through the multiplexed pin 104 .
[0080] In one embodiment, the main logic communication module 103 is an I2C communication module, and the second device 30 is a non-hot-swappable device.
[0081] The first device 20 may be an I2C device, a CPU, or the like.
[0082] The main advantages of the I2C communication module are its simplicity and effectiveness. Since the interface is directly on the component, the I2C communication module occupies very little space, reducing the space of the programmable device 10 and the number of chip pins, thereby reducing costs.
[0083] The I2C communication module is a serial bus consisting of a data line SDA and a clock line SCL. It can send and receive data and perform bidirectional data transmission with I2C devices.
[0084] In the existing design, the programmable device 10 needs to first use two pins to perform power-on detection on the non-hot-swappable device, and then use two pins to communicate with the I2C device. At this time, a total of four pins are required. However, if the programmable device 10 only has two pins, there will be insufficient pin resources when implementing the above functions, so it is necessary to increase the pin multiplexing rate.
[0085] In the present application, the multiplexed pin 104 of the programmable device 10 is two I / O pins, represented here by the first I / O pin and the second I / O pin. The first I / O pin and the second I / O pin are connected to the detection module 102. The first I / O pin is also connected to the data line SDA, and the second I / O pin is also connected to the clock line SCL.
[0086] The non-hot-swappable device is connected to the first I / O pin and the second I / O pin, and the I2C device is connected to the first I / O pin and the second I / O pin;
[0087] When the non-hot-swappable device is powered on, the detection module 102 receives a presence signal of the non-hot-swappable device through the first I / O pin and the second I / O pin, and sends the presence signal to the storage module 101;
[0088] Then the I2C communication module transmits the logic resource to the first I / O pin and the second I / O pin through the data line SDA and the clock line SCL, and the first I / O pin and the second I / O pin transmit the logic resource to the I2C device.
[0089] By adopting the above solution, the programmable device 10 uses only two I / O pins to achieve the function that requires four I / O pins in the original design. Therefore, this application improves the pin reuse rate and saves pin resources.
[0090] However, the clock line SCL and data line SDA on the I2C communication module are open-drain pins. If used as ordinary GPIO, it will be found that the high level output of the pin is extremely unstable or even cannot be output normally.
[0091] Moreover, during the communication between the I2C communication module and the processor, the first I / O pin and the second I / O pin are still receiving the presence signal transmitted by the non-hot-swappable device, so level conflicts are likely to occur during the communication between the I2C communication module and the processor.
[0092] Therefore, in some embodiments, a power supply 40 is further included, and a switching circuit 50 is provided between the power supply 40 and the first I / O pin and the second I / O pin. For example, the switching circuit 50 is configured as a P-channel enhancement type MOS transistor, the power supply 40 is connected to the gate of the MOS transistor, the non-hot-swappable device is connected to the drain of the MOS transistor, and the source of the MOS transistor is connected to the first I / O pin and the second I / O pin.
[0093] When power-on is not completed, the power-on status signal 401 output by the power supply 40 is at a low level, the MOS transistor is turned on, and the programmable device sets the first I / O pin and the second I / O pin as inputs;
[0094] The second device 30 sends the presence signal to the detection module 102 through the first I / O pin and the second I / O pin. The detection module 102 sends the presence signal to the storage module 101. The storage module 101 stores the presence signal.
[0095] When power-on is completed, the power-on status signal 401 output by the power supply 40 is at a high level, the MOS tube is turned off, the second device 30 stops sending the presence signal to the detection module 102 through the first I / O pin and the second I / O pin, and the programmable device sets the first I / O pin and the second I / O pin to output.
[0096] The I2C communication module communicates with the first device 20 through the first I / O pin and the second I / O pin. At this time, the connection between the first I / O pin, the second I / O pin and the power supply 40 is equivalent to a disconnected state. The first I / O pin and the second I / O pin will no longer receive the voltage of the power supply 40. Therefore, at this time, the I2C communication module communicates with the I2C device through the first I / O pin and the second I / O pin, and no level conflict occurs.
[0097] Regardless of whether the multiplexed pin 104 is an open-drain output or a push-pull output, the above solution can solve the problem of level conflict that easily occurs between the main logic communication module 103 and the first device 20. However, when the multiplexed pin 104 is in push-pull mode, the above solution will make the circuit structure more complicated.
[0098] So in some embodiments, such as Figure 2 As shown, when the multiplexed pin 104 is a push-pull output, the programmable device 10 sets the first I / O pin and the second I / O pin as inputs, and the second device 30 sends a presence signal to the detection module 102 through the first I / O pin and the second I / O pin.
[0099] The detection module 102 sends the in-place signal to the storage module 101, which stores the in-place signal. The programmable device 10 then sets the first and second I / O pins as outputs. The programmable device 10 drives the main logic communication module 103 to communicate with the first device 20 via the first and second I / O pins. The main logic communication module 103 can be a frequency reduction module, a power control module, or the like. The main logic communication module 103 sends a frequency reduction signal or a VR enable signal to the first device 20, etc. This embodiment can simplify circuit design.
[0100] The embodiment of the present application also provides a method for improving the pin reuse rate of a programmable device, which is applied to a system, wherein the system includes a programmable device, a second device and a first device, the programmable device includes a main logic communication module, a detection module, a storage module and a multiplexing pin, the main logic communication module is connected to the first device via the multiplexing pin; the detection module is connected to the second device via the multiplexing pin, and the storage module is connected to the detection module, such as Figure 3 As shown, the method includes the following steps:
[0101] S101: The second device is powered on and sends a presence signal to the detection module through a multiplexed pin.
[0102] S102 , the detection module sends the in-place signal to the storage module, and the storage module stores the in-place signal.
[0103] S103: The main logic communication module communicates with the first device through the multiplexed pin.
[0104] In some embodiments, the main logic communication module is an I2C communication module.
[0105] In some embodiments, the system further includes a power supply, the power supply being connected to the multiplexing pin, the power supply being configured to output a power-on status signal to the multiplexing pin, and a switching circuit being provided between the power supply and the multiplexing pin;
[0106] The method further comprises the following steps:
[0107] When power-on is not completed, the power-on status signal output by the power supply is at a low level, the switch circuit is turned on, and the programmable device sets the multiplexed pin as an input;
[0108] The second device sends the presence signal to the detection module through the multiplexed pin, the detection module sends the presence signal to the storage module, and the storage module stores the presence signal;
[0109] When power-on is completed, the power-on status signal output by the power supply is high, the switch circuit is turned off, the second device stops sending the presence signal to the detection module through the multiplexed pin, and the programmable device sets the multiplexed pin to output.
[0110] The I2C communication module communicates with the first device through the multiplexed pin.
[0111] In some embodiments, when the multiplexing pin is an open-drain output, the switch circuit includes a MOS transistor, and the power supply is connected to the multiplexing pin through the MOS transistor;
[0112] The method further comprises the following steps:
[0113] When power-on is not completed, the power-on status signal output by the power supply is at a low level, the MOS tube is turned on, and the programmable device sets the multiplexed pin as an input;
[0114] The second device sends the presence signal to the detection module through the multiplexed pin, the detection module sends the presence signal to the storage module, and the storage module stores the presence signal;
[0115] When power-on is completed, the power-on status signal output by the power supply is high, the MOS tube is turned off, the second device stops sending the in-position signal to the detection module through the multiplexed pin, and the programmable device sets the multiplexed pin to output.
[0116] The I2C communication module communicates with the first device through the multiplexed pin.
[0117] In some embodiments, when the multiplexed pin is a push-pull output;
[0118] The method comprises the following steps:
[0119] The programmable device sets the multiplexed pin as an input, and the second device sends a presence signal to the detection module through the multiplexed pin;
[0120] The detection module sends the in-place signal to the storage module, and the storage module stores the in-place signal;
[0121] The programmable device sets the multiplexed pin as an output, and the main logic communication module communicates with the first device through the multiplexed pin.
[0122] The programmable device may be an off-the-shelf field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc.
[0123] The computer-readable program instructions for performing the operations of the present invention may be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, configuration data for an integrated circuit, or source code or object code language written in any combination of one or more programming languages (including object-oriented programming languages, such as Smalltalk, C++, etc.) and procedural programming languages (such as the "C" programming language or similar programming). The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter case, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (for example, via the Internet using an Internet service provider). In some embodiments, electronic circuits including, for example, programmable logic circuits, field programmable gate arrays (FPGAs), or programmable logic arrays (PLAs) may be personalized using state information of the computer-readable program instructions.
[0124] Various aspects of the present invention are described herein with reference to flowcharts and / or block diagrams of methods, apparatus, and computer program products according to embodiments of the present invention. It will be understood that each block of the flowcharts and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer-readable program instructions.
[0125] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine, so that the instructions are executed via the processor of the computer or other programmable data processing. In this device, a device is created for implementing the functions / actions specified in the flowchart and / or block diagram blocks. These computer-readable program instructions can also be stored in a computer-readable storage medium, which can instruct the computer, programmable data processing device, and / or other device to function in a specific manner, so that the computer-readable storage medium with instructions stored therein. The computer-readable program instructions can also be loaded onto a computer, other programmable data processing device, or other device to cause a series of operational steps to be executed on the computer, other programmable device, or other device to produce a computer-implemented process, for example, the instructions executed on the computer, other programmable device, or other device implement the functions / actions specified in the flowchart and / or block diagram.
[0126] The flowcharts and block diagrams in the accompanying drawings illustrate possible implementation architectures, functions, and operations of devices, methods, and computer program products according to various embodiments of the present invention. In this regard, each box in the flowchart or block diagram may represent a module, fragment, or portion of an instruction that includes one or more executable instructions for implementing a specified logical function. In some alternative embodiments, the functions indicated in the box may not occur in the order indicated in the figure. For example, depending on the functions involved, two boxes shown in succession may actually be executed substantially simultaneously, or the boxes may sometimes be executed in the opposite order. It should also be noted that each box in the block diagram and / or flowchart, as well as combinations of boxes in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system that performs a specified function or action or is based on a specific purpose.
[0127] The description of various embodiments of the present invention has been given for the purpose of illustration and is not intended to be exhaustive or to limit the invention to the disclosed forms. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the invention. The embodiments were chosen and described in order to best explain the principles of the invention and practical application and to enable others skilled in the art to understand the various embodiments of the invention with various modifications suitable for the specific use contemplated.
Claims
1. A server system for improving the pin reuse rate of programmable devices, characterized in that: The system includes a programmable device, a first device and a second device, wherein the programmable device is connected to the first device and the second device; The programmable device includes a main logic communication module, a detection module, a storage module and a multiplexing pin, wherein the main logic communication module is connected to the first device via the multiplexing pin; the detection module is connected to the second device via the multiplexing pin, and the storage module is connected to the detection module; The multiplexed pin is used to receive a presence signal sent when the second device is powered on and send the presence signal to the detection module; The detection module is used to send the in-place signal to the storage module, and the storage module stores the in-place signal; The main logic communication module is used to communicate with the first device through a multiplexed pin.
2. The server system for improving pin reuse rate of programmable devices according to claim 1, wherein: The main logic communication module is an I2C communication module.
3. The server system for improving pin reuse rate of programmable devices according to claim 2, wherein: It also includes a power supply, the power supply is connected to the multiplexing pin, the power supply is used to output a power-on status signal to the multiplexing pin, and a switching circuit is provided between the power supply and the multiplexing pin; When power-on is not completed, the power-on status signal output by the power supply is at a low level, the switch circuit is turned on, and the programmable device sets the multiplexed pin as an input; The second device sends the presence signal to the detection module through the multiplexed pin, the detection module sends the presence signal to the storage module, and the storage module stores the presence signal; When power-on is completed, the power-on status signal output by the power supply is high, the switch circuit is turned off, the second device stops sending the presence signal to the detection module through the multiplexed pin, and the programmable device sets the multiplexed pin to output. The I2C communication module communicates with the first device through the multiplexed pin.
4. The server system for improving pin reuse rate of programmable devices according to claim 3, wherein: When the multiplexing pin is an open-drain output, the switching circuit includes a MOS transistor, and the power supply is connected to the multiplexing pin via the MOS transistor; When power-on is not completed, the power-on status signal output by the power supply is at a low level, the MOS tube is turned on, and the programmable device sets the multiplexed pin as an input; The second device sends the presence signal to the detection module through the multiplexed pin, the detection module sends the presence signal to the storage module, and the storage module stores the presence signal; When power-on is completed, the power-on status signal output by the power supply is high, the MOS tube is turned off, the second device stops sending the in-position signal to the detection module through the multiplexed pin, and the programmable device sets the multiplexed pin to output. The I2C communication module communicates with the first device through the multiplexed pin.
5. The server system for improving pin reuse rate of programmable devices according to claim 1, wherein: When the multiplexed pin is a push-pull output, the programmable device sets the multiplexed pin as an input, and the second device sends a presence signal to the detection module through the multiplexed pin; The detection module sends the in-place signal to the storage module, the storage module stores the in-place signal, the programmable device sets the multiplexed pin as an output, and the main logic communication module communicates with the first device through the multiplexed pin.
6. A method for improving the pin reuse rate of a programmable device, applied to a system comprising a programmable device, a second device, and a first device, wherein the programmable device comprises a main logic communication module, a detection module, a storage module, and multiplexing pins, wherein the main logic communication module is connected to the first device via the multiplexing pins; the detection module is connected to the second device via the multiplexing pins; and the storage module is connected to the detection module, characterized in that: The method comprises the following steps: The second device is powered on and sends a presence signal to the detection module through the multiplexed pin; The detection module sends the presence signal to the storage module The main logic communication module communicates with the first device through the multiplexed pin.
7. The method for improving pin reuse rate of a programmable device according to claim 6, wherein: The main logic communication module is an I2C communication module.
8. The method for improving pin reuse rate of a programmable device according to claim 7, wherein: The system further includes a power supply connected to the multiplexing pin, the power supply being used to output a power-on status signal to the multiplexing pin, and a switch circuit being provided between the power supply and the multiplexing pin; The method further comprises the following steps: When power-on is not completed, the power-on status signal output by the power supply is at a low level, the switch circuit is turned on, and the programmable device sets the multiplexed pin as an input; The second device sends the presence signal to the detection module through the multiplexed pin, the detection module sends the presence signal to the storage module, and the storage module stores the presence signal; When power-on is completed, the power-on status signal output by the power supply is high, the switch circuit is turned off, the second device stops sending the presence signal to the detection module through the multiplexed pin, and the programmable device sets the multiplexed pin to output. The I2C communication module communicates with the first device through the multiplexed pin.
9. The method for improving pin reuse rate of a programmable device according to claim 8, wherein: When the multiplexing pin is an open-drain output, the switching circuit includes a MOS transistor, and the power supply is connected to the multiplexing pin through the MOS transistor; The method further comprises the following steps: When power-on is not completed, the power-on status signal output by the power supply is at a low level, the MOS tube is turned on, and the programmable device sets the multiplexed pin as an input; The second device sends the presence signal to the detection module through the multiplexed pin, the detection module sends the presence signal to the storage module, and the storage module stores the presence signal; When power-on is completed, the power-on status signal output by the power supply is high, the MOS tube is turned off, the second device stops sending the in-position signal to the detection module through the multiplexed pin, and the programmable device sets the multiplexed pin to output. The I2C communication module communicates with the first device through the multiplexed pin.
10. The method for improving pin reuse rate of a programmable device according to claim 6, wherein: When the multiplexed pin is a push-pull output; The method comprises the following steps: The programmable device sets the multiplexed pin as an input, and the second device sends a presence signal to the detection module through the multiplexed pin; The detection module sends the in-place signal to the storage module, and the storage module stores the in-place signal; The programmable device sets the multiplexed pin as an output, and the main logic communication module communicates with the first device through the multiplexed pin.
Citation Information
Patent Citations
Design method and structure of low-speed IO equipment controller
CN110825667A
Programmable logic device pin state detection method, device and system
CN112463502A