Method for configuring input and output interfaces, I/O interface configuration device and control system
11573547 · 2023-02-07
Assignee
Inventors
Cpc classification
Y02D10/00
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
G05B2219/33125
PHYSICS
G05B19/045
PHYSICS
International classification
G05B19/045
PHYSICS
Abstract
An I/O interface configuration device for configuring I/O interfaces comprises an input interface, an output interface, a storage unit, a detecting pin, a converting unit and a computing unit. The input interface electrically connects to a controlling port of a controlling circuit to receive a data type. The output interface electrically connects to a controlled port of a controlled device to output another data type. The storage unit stores a plurality of configuration files, one of the configuration files corresponds to a circuit type of the controlling circuit. The detecting pin is adapted to retrieve the circuit type. The converting unit converts the data type to said another data type and selectively outputs said another data type from the output interface. The computing unit loads the configuration file corresponding to the circuit type and control the converting unit to configure the I/O interface according to the configuration file.
Claims
1. A method for configuring input and output interfaces adapted to electrically connect a controlling circuit to a controlled device, wherein the controlling circuit comprises a controlling port and an output port indicating a hardware identification number of the controlling circuit, and the controlled device comprises a controlled port, said method for configuring input and output interfaces comprising: electrically connecting the controlling port to an input interface of an FPGA, wherein the input interface is configured to receive a data type sent by the controlling port; controlling a converting unit of the FPGA to convert the data type into another data type; electrically connecting the controlled port to an output interface of the FPGA, wherein the output interface is configured to output said another data type; storing a plurality of configuration files by a storage unit, wherein one of the plurality of configuration files corresponds to the hardware identification number of the controlling circuit; retrieving the hardware identification number of the controlling circuit by a detecting pin of the FPGA after the controlling circuit electrically connects to the FPGA, wherein the detecting pin is electrically connected to the output port of the controlling circuit and a computing unit of the FPGA; loading the configuration file corresponding to the hardware identification number from the storage unit by the computing unit of the FPGA; and controlling the converting unit of the FPGA for configuring the input interface and the output interface by the computing unit according to the configuration file corresponding to the hardware identification number.
2. An I/O interface configuration device for configuring input and output interfaces adapted to electrically connect a controlling circuit to a controlled device, wherein the controlling circuit comprises a controlling port and an output port indicating a hardware identification number of the controlling circuit, and the controlled device comprises a controlled port, the I/O interface configuration device comprises: an input interface adapted to electrically connect to the controlling port for receiving a data type sent by the controlling port; an output interface adapted to electrically connect to the controlled port for outputting another data type; a storage unit storing a plurality of configuration files, wherein one of the plurality of configuration files corresponds to the hardware identification number of the controlling circuit; a detecting pin retrieving the hardware identification number of the controlling circuit, wherein the detecting pin is electrically connected to the output port of the controlling circuit; a converting unit electrically connecting to the input interface and the output interface, wherein the converting unit corresponds to the controlled device, converts the data type to said another data type and is adapted to selectively output said another data type through the output interface; and a computing unit electrically connecting to the detecting pin, the storage unit and the converting unit, wherein the computing unit is adapted to load the configuration file corresponding to the hardware identification number from the storage unit and control the converting unit to configure the input interface and the output interface according to the configuration file of the hardware identification number.
3. The I/O interface configuration device according to claim 2, wherein the I/O interface configuration device is an FPGA or a CPLD.
4. The I/O interface configuration device according to claim 2, wherein the controlling circuit is an expander chip or a RAID control chip.
5. The I/O interface configuration device according to claim 2, wherein the input interface is PPI, SPI, GPIO, or I.sup.2C.
6. The I/O interface configuration device according to claim 2, wherein the output interface is SPI, SGPIO, or I.sup.2C.
7. A control system comprises: a controlling circuit comprising a controlling port and an output port indicating a hardware identification number of the controlling circuit; a controlled device comprising a controlled port, wherein the controlled device is adapted to receive an instruction or a data from the controlled port; and an I/O interface configuration device for configuring input and output interfaces electrically connecting to the controlling circuit and the controlled device, and the I/O interface configuration device comprising: an input interface adapted to electrically connect to the controlling port for receiving a data type sent by the controlling port; an output interface adapted to electrically connect to the controlled port for outputting another data type, wherein said another data type is the instruction or the data; a storage unit storing a plurality of configuration files, wherein one of the plurality of the configuration files corresponds to the hardware identification number of the controlling circuit; a detecting pin retrieving the hardware identification number of the controlling circuit, wherein the detecting pin is electrically connected to the output port of the controlling circuit; a converting unit electrically connecting to the input interface and the output interface, wherein the converting unit corresponds to the controlled device, converts the data type to said another data type and is adapted to selectively output said another data type through the output interface; and a computing unit electrically connecting to the detecting pin, the storage unit and the converting unit, wherein the computing unit is adapted to load the configuration file corresponding to the hardware identification number from the storage unit and control the converting unit to configure the input interface and the output interface according to the configuration file of the hardware identification number.
8. The control system according to claim 7, wherein the I/O interface configuration device is an FPGA or a CPLD.
9. The control system according to claim 7, wherein the input interface is PPI, SPI, GPIO, or I.sup.2C.
10. The control system according to claim 7, wherein the output interface is SPI, SGPIO, or I.sup.2C.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The present disclosure will become more fully understood from the detailed description given hereinbelow and the accompanying drawings which are given by way of illustration only and thus are not limitative of the present disclosure and wherein:
(2)
(3)
DETAILED DESCRIPTION
(4) In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the disclosed embodiments. It will be apparent, however, that one or more embodiments may be practiced without these specific details. In other instances, well-known structures and devices are schematically shown in order to simplify the drawings.
(5) Please refer to
(6) The controlling circuit 1 has a circuit type and comprises a controlling port. In practice, the controlling circuit 1 is, for example, an expander chip applied to an enterprise-level storage product, a RAID (Redundant Array of Independent Disks) controller chip, or an ASIC (Application-Specific Integrated Circuit) that has similar functions to the above devices. The controlling port is such as a PPI (Parallel Peripheral Interface), an SPI (Serial Peripheral Interface), a GPIO (General Purpose Input Output), or an I.sup.2C (Inter-Integrated Circuit), but not limited to the above types or combinations thereof. The controlling circuits 1 produced by different manufacturers have different circuit types and their controlling ports are also different. It should be noticed that the control system 10 of an embodiment according to the present disclosure can adaptively adjust the I/O interface configuration device 5 based on different control circuits 1 to achieve the target that the controlling circuit 1 controls the controlled device 3.
(7) The controlled device 3 has a controlled port. The controlled device 3 receives an instruction or a data from the controlled port, then executes the received instruction or stores the received data. The controlled port of the controlled device 3 is such as an SPI, an I.sup.2C, an SGPIO (Serial General Purpose Input Output) or a combination of above types but not limited to the above types only. In addition, in practice, there may be a plurality of controlled devices 3 with different interface types. For example, an LED (Light-Emitting Diode) using the SGPIO, a button, a 7-segment display, a fan control module, a current/voltage/temperature sensing module using the I.sup.2C, or an EEPROM (Electrically-Erasable Programmable Read-Only Memory). The present disclosure does not limit the number of the controlled devices 3.
(8) The I/O interface configuration device 5 electrically connects to the controlling circuit 1 and the controlled device 3 as shown in
(9) The input interfaces in1-in3 electrically connect to the controlling ports respectively for receiving data types sent by the controlling ports. Practically, the input interfaces in1-in3 are PPI, SPI, GPIO or I.sup.2C. The output interfaces out1-out3 electrically connect to controlled ports respectively for outputting another data type, wherein said another data type is the instruction or the data. Output interfaces out1-out3 are SPI, GPIO or I.sup.2C. In practice, the input interfaces in1-in3 and the output interfaces out1-out3 can be composed of general-purpose hardware pins on the FPGA, and the interface type of these generic hardware pins can be specified by modifying the program burning on the FPGA. In other words, a set of general-purpose hardware pins can represent specific types of input interfaces in1-in3 or output interfaces out1-out3 according to specific programs running on the FPGA.
(10) The storage unit 52 stores a plurality of configuration files, and one of these configuration files corresponds to the circuit type of the controlling circuit 1. In practice, the specification of the controlling ports of the various controlling circuits 1 can be obtained in advance, thus the required input and output interfaces can be configured by programming, and the configuration files corresponding to these controlling circuits 1 can be stored in the storage unit 52. The storage unit 52 is, for example, a block RAM of the FPGA, or an external storage device such as EPROM (Erasable Programmable Read Only Memory), OTPROM (One Time Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory) or Flash Memory.
(11) The detecting pin sp in
(12) The converting unit 54 electrically connects to the input interfaces in1-in3 and the output interfaces out1-out3 as shown in
(13) The computing unit 56 electrically connects to the detecting pin sp, the storage unit 52 and the converting unit 54 as shown in
(14) Please refer to
(15) Please refer to step S1, “Connect the controlling circuit 1 to the FPGA” as shown in
(16) Please refer to step S2, “Connect the controlled device 3 to the FPGA” as shown in
(17) Please refer to step S3, “Store a plurality of configuration files to the storage unit 52” as shown in
(18) Please refer to step S4, “Retrieve the circuit type of the controlling circuit 1 through the detecting pin sp” as shown in
(19) Please refer to step S5, “Load the configuration file S5 corresponding to the circuit type” as shown in
(20) Please refer to step S6, “Configure the input and output interfaces of the FPGA according to the configuration file” as shown in
(21) To sum up, the method and the I/O interface configuration device for configuring input and output interfaces and the control system plan the hardware's input and output through FPGA programs for configuring the interfaces that support various kinds of control chips and the hardware specifications required by customers. According to the present disclosure, the development time of the enterprise-level storage product can be greatly reduced, and the flexibility of the product function is thus improved.