WO2012012994A1 - Device with unified shelf management architecture and management control method thereof - Google Patents

Device with unified shelf management architecture and management control method thereof Download PDF

Info

Publication number
WO2012012994A1
WO2012012994A1 PCT/CN2010/079281 CN2010079281W WO2012012994A1 WO 2012012994 A1 WO2012012994 A1 WO 2012012994A1 CN 2010079281 W CN2010079281 W CN 2010079281W WO 2012012994 A1 WO2012012994 A1 WO 2012012994A1
Authority
WO
WIPO (PCT)
Prior art keywords
logic unit
board
cpu
control board
main control
Prior art date
Application number
PCT/CN2010/079281
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 WO2012012994A1 publication Critical patent/WO2012012994A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/10Distribution of clock signals, e.g. skew
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0038System on Chip

Definitions

  • the present invention relates to the field of communications, and in particular to a device having a unified machine 11 management architecture and a management control method thereof.
  • BACKGROUND OF THE INVENTION Machine-framed devices are widely used in the fields of electronics, communications, and machinery.
  • the device is based on a chassis, and multiple slots are provided on the chassis for each unit device in the device, such as a service ticket.
  • the board access, the unified machine 411 management architecture is managed by the machine 411 management board, and the service board in the machine 411 is managed.
  • the subrack management board is the main control board, and the other managed service boards are controlled. board. In the current communication equipment, the services running on the controlled board usually need to be managed and maintained.
  • the CPU runs software to process and communicate with the main control board.
  • the main control board and the controlled board communicate according to a certain protocol, as shown in Figure 1.
  • the initialization and configuration of the control board is completed by the CPU of the board.
  • the control boards of different services have different CPU requirements. For example, boards such as E1 or Ethernet have low requirements for CPU management and maintenance.
  • the above design mainly has two points to consider: First, the design is simple, there are a large number of general circuit support; Second, the efficiency is high, the development and debugging of each controlled board can be carried out in parallel. However, in today's increasingly fierce competition in the communications industry, cost will be an important factor in the vitality of the product market. The cost of a CPU on a controlled board cannot be ignored. At the same time, maintaining multiple codes on the software also adds cost and complexity.
  • the main technical problem to be solved by the present invention is to provide a device with a unified chassis management architecture and a management control method thereof, which can reduce the management control cost of a device having a unified chassis management architecture.
  • a device having a unified chassis management architecture including a main control board and a control board, the main control board a CPU and a first logic unit connected to the CPU, the controlled board includes a second logic unit, a clock module, and an application module, where the second logic unit communicates with the first logic of the main control board through a communication interface Units are coupled to communicate with the first logic unit to effect signal interaction with the CPU; the second logic unit is coupled to the application module via a control interface for control by the CPU The application module is managed and controlled; the clock module is configured to complete clock distribution of the second logic unit and the application module by reading a preset configuration word pre-stored in the memory.
  • the signal communicated between the first logic unit and the second logic unit includes a clock signal, a data signal, and an enable signal.
  • the control interface of the second logic unit includes a serial bus interface, a parallel bus interface, a serial bus interface, and other control interfaces than the parallel bus interface.
  • the serial bus interface includes an I2C serial interface, an SPI serial interface, and an SMI serial interface;
  • the parallel bus interface includes a LOCAL BUS interface; the other control interface Includes state control interface.
  • the main control board is one, and the controlled boards are multiple, and the communication interfaces of the main control board and each controlled board have respective addresses and respective Independent read and write unit.
  • the first logic unit and the second logic unit are an FPGA or an EPLD.
  • the present invention also provides a management control method for any device with a unified chassis management architecture, including: initializing configuration of a controlled board by a CPU in a main control board, and CPU and a controlled board in the main control board The second logical unit performs data interaction to manage and control the controlled board.
  • the CPU in the main control board includes a power-on process before initializing the configuration of the controlled board, where the power-on process includes: controlled power-on, clock module read configuration Word, generate the required clock, distribute to the second logic The unit and the application module; the second logic unit is started, and the board status information of the board is obtained after the power is successfully sent, and the board status information and the initialization request are sent to the main control board.
  • the power-on process includes: controlled power-on, clock module read configuration Word, generate the required clock, distribute to the second logic The unit and the application module; the second logic unit is started, and the board status information of the board is obtained after the power is successfully sent, and the board status information and the initialization request are sent to the main control board.
  • the CPU in the main control board performs data interaction with the second logic unit of the controlled board to manage and control the controlled board, including a data uplink process, and the data uplink process
  • the second logic unit acquires the status information of the board, encapsulates the information into the frame, and sends the frame to the first logic unit after the verification; the frame includes the frame type, the data type, the data, and the school-risk information; After the unit successfully checks the received frame, the CPU in the main control board is notified to read and the frame type and data type are processed accordingly.
  • the CPU in the main control board performs data interaction with the second logic unit of the controlled board to manage and control the controlled board, including a data downlink process, and the data downlink process
  • the method includes: the CPU in the main control board encapsulates the data into a frame, and the first logic unit sends the frame to the second logic unit after the frame is diagnosed and failed; and the second logical unit succeeds in the received frame. - Performing a corresponding operation according to the frame; the second logic unit acquires a return result or a status indication of the application module to determine whether the operation is successful.
  • FIG. 1 is a general-purpose main control board communication architecture
  • FIG. 3 is a flowchart of a data communication process according to an embodiment of the present invention
  • Fig. 4 is a schematic view showing a concrete implementation of an application example of the present invention.
  • BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be further described in detail by way of specific embodiments with reference to the accompanying drawings.
  • the main idea of the present invention is to implement controlled by a logic unit, such as an FPGA (Field Programmable Logic 'J) or other 1 unit (Erasable Programmable Logic Device).
  • the management of the board controls the production and maintenance costs of the product.
  • the implementation program mainly includes: a device having a unified chassis management architecture, including a main control board and a control board, where the main control board includes a CPU and a first logic unit connected to the CPU, the control board a second logic unit, a clock module, and an application module, where the second logic unit is connected to the first logic unit of the main control board through a communication interface to communicate with the first logic unit to implement the CPU Inter-signal interaction; the second logic unit is connected to the application module through a control interface, and is configured to manage and control the application module under control of the CPU; the clock module is configured to read The preset configuration words pre-stored in the memory complete the clock distribution of the second logic unit and the application module. As shown in FIG. 2, in the example of FIG.
  • the first logic unit and the second logic unit are both FPGAs
  • the controlled board replaces the CPU with the cost of the FPGA to complete various services and configurations of the controlled board.
  • Management and control The main control board sends a control command to the controlled board, and the protocol is unpacked by the controlled board FPGA, and the control operation is completed.
  • the control and management of the controlled board is unified on the main control board and encapsulated by the CPU software of the main control board.
  • the CPU software in the main control board reads and writes the FPGA on the main control board to complete the control operation command and data transmission and reception.
  • the protocol package of the main control board is completed by the CPU software in the main control board, and distributed to each control board slot through the main control board FPGA.
  • the communication interface between the main control board and the controlled board (between the first logic unit and the second logic unit) can reduce the signal line of the interface between the main control board and the controlled board on the backplane by using the high-speed serial bus.
  • the controlled board FPGA mainly completes the parsing of the protocol and performs corresponding operations according to the pre-established protocol. The specific operations are implemented according to different types of controlled board services.
  • the interface between the main control board and the controlled board mainly has the following signal lines: Clock line: High-speed clock signal to ensure the data rate; Data line: Pass the communication data of the main control board, select half-duplex and duplex mode Single root One-way line to save the trace or 2 to the two-way line to ensure real-time; enable line: enable signal, used to control the path between the gated main control board.
  • the CPU-less controlled board of the FPGA in the embodiment of the present invention mainly has the following differences: 1.
  • the application module of the controlled board (for example, a service module for performing service processing or A storage module for storage, etc., that is, a module other than the FPGA and the clock module that can implement an application function, is unchanged, and the FPGA replaces the control interface of the CPU.
  • These interfaces include: Serial bus interface: such as I2C (Inter-Integrated Circuit), SPI (Serial Peripheral Interface), SMI (Serial Management Interface) Such as the commonly used serial interface, of course, can also be other serial interfaces; Parallel bus interface: such as LOCAL BUS interface, of course, can also be other parallel interfaces, including custom interfaces; Other control interfaces: such as state control interfaces .
  • the clock with the CPU controlled board is configured and managed by the CPU, as shown in Figure 1.
  • clock distribution is no longer controlled by the CPU, but is done by the clock module reading a predetermined configuration word in the EEPROM (Electrically Erasable Read Only Memory), as shown in Figure 2.
  • EEPROM Electrically Erasable Read Only Memory
  • the software interface encapsulation and configuration of a part of the application module of the controlled board is handed over to the CPU software of the main control board for packaging.
  • the communication interface between the main control board FPGA and each controlled board FPGA has its own independent read and write operation unit, and each interface has its own address.
  • the CPU in the main control board directly encapsulates the data frame structure of the interface of the controlled board application module, including the protocol type, data type, and data transfer to the main control board FPGA.
  • the main control board FPGA performs verification and encapsulates the data into a unified The frame structure is sent to the controlled board.
  • the controlled board FPGA completes simple interface conversion according to the protocol type delivered by the main control board, and directly generates the corresponding interface timing by the data frame already encapsulated by the main control board, and completes communication with the application module.
  • the FPGA of the controlled board only adds the received data and information to the protocol frame of the protocol type and is reported to the main control board.
  • the device of the embodiment of the invention has a management control method corresponding to the original controlled board management control. Differently, the method mainly includes: initializing the configuration of the controlled board by the CPU in the main control board, and performing data interaction between the CPU in the main control board and the second logic unit of the controlled board to manage and control the controlled board. As shown in FIG.
  • the process of the management control method includes a power-on process, a data uplink process, and a data downlink process, which are respectively described below.
  • the specific process of the power-on process of the control board includes: Step A. The controlled board power, the on-board clock module reads the configuration word through the EEPROM, generates the clock required by the board, and distributes the clock to each module. , including FPGA (second logic unit) and other modules (such as multiple application modules shown in Figure 2). Step B. The FPGA is started, and the FPGA is downloaded from the SPI Flash on the board to complete the startup configuration of the FPGA. Step C.
  • the controlled board FPGA obtains the status information of the board and sends the status information to the main board. Board status information and initialization request.
  • the initialization request of the CPU-controlled board in the main control board completes the initial configuration of the controlled board.
  • the uplink process of data communication includes: Step D.
  • the controlled board FPGA obtains the status information of the board, such as some board registration information, etc.
  • Step E The controlled board FPGA encapsulates the data into the defined frame structure and is in the frame. The header is attached to the frame type and the data type, and the frame is sent to the main control board through the interface between the main control board and the controlled board after the verification; Step F.
  • the main control board FPGA After the main control board FPGA receives the frame, after the verification succeeds Notify the controlled board that the FPGA receives successfully, otherwise it returns a failure.
  • the main control board FPGA notifies the CPU on the main control board, and the CPU reads the frame received by the FPGA, and judges the type of data and service according to the frame type and the frame data, and further processing and operations are performed by the CPU software.
  • the downlink process of data communication includes: Step G.
  • the CPU software in the main control board directly encapsulates the processed data into a data frame structure to be transmitted, and the main control board FPGA only applies the data to the insurance and adds the school-risk information. And then packaged into a frame and sent to the controlled board FPGA; Step H.
  • the controlled board FPGA After the controlled board FPGA receives the data, and the verification succeeds, the main control board is notified to deliver successfully. Otherwise the return fails.
  • the controlled board FPGA judges the further operation of the FPGA according to the parameters and types defined in the received data frame header. Step I.
  • the controlled board FPGA determines the operation type, completes the specific operation, such as completing the control of a certain module or
  • the data in the received frame is directly sent to each module according to the type of operation to generate the corresponding interface timing (such as SPI).
  • Step J The controlled board FPGA obtains the return result of each module (some write operations to the module may not need to return a result) or status indication to indicate whether an operation is successful. If necessary, report the result to the main control board according to the procedure in step DF.
  • Step K The main control board initiates the FPGA update command, according to the process of step G-H, delivers
  • Step L After the FPGA response command is confirmed, the main control board sends the FPGA update data to the controlled board through step G.
  • the controlled board FPGA writes the data to the flash through the SPI port according to step H, and returns the result to the main control board.
  • Step M After receiving the control board update success message, the main control board resets the controlled board and repeats the operation of step AC. If the result of the failure is returned, repeat the operation of step KM.
  • FIG. 4 is an application example of an Ethernet switch-based control board in an embodiment of the present invention.
  • the main control board includes a CPU and an FPGA module 107 (first logic unit); the controlled board mainly includes a clock module 101 (including an EEPROM storing a preset configuration word), and an FPGA module 102 (second Logic unit), SPI Flash (flash) 103, switch module 108, PHY (Physical Layer) module 109, EEPROM and sensor module 111.
  • the switch module 108, the PHY (Physical Layer) module 109, the EEPROM and the sensor module 111 in FIG. 4 are the aforementioned application modules, and are used to implement application functions such as Ethernet switching, storage, and sensing. Communication between the main control board and the controlled board is through the communication interface 106.
  • the FPGA module 102 interacts with the clock module 101 through the SPI interface 106, interacts with the interaction module 108 through the SMI control interface 107, interacts with the module 111 such as the EEPROM and the sensor through the I2C interface 112, and performs SMI control between the switch module 108 and the PHY module 109.
  • Interface 110 interacts.
  • the FPGA module 102 includes a control module 104 and an interface module 105.
  • the data communication interface 106 of the main control board and the control board is a serial bus, including data, time Clock and enable signal lines. In order to save the backplane routing, it is compatible with other serial management buses with CPU-controlled boards (such as the IPMI (Intelligent Platform Management Interface) bus), which can support the intermixing of multiple types of boards.
  • IPMI Intelligent Platform Management Interface
  • the data communication interface 106 takes an I2C serial bus as an example, and its data bit width is 48 bits (different applications, data bit width may be different), the first 12 bits are communication protocol information and control information, the last 32 bits are data information, and the last 4 bits are School - dangerous position.
  • the controlled-board FPGA sets the data line to indicate that the reception was successful, otherwise it fails, and notifies the CPU that an error is returned.
  • the clock module 101 reads the configuration word through the EEPROM on the board to complete the configuration of the clock module. After the clock configuration is completed, the clock is distributed to each module, including the FPGA module 102, the switch module 108, and the PHY (Physical Layer) module 109.
  • the FPGA module 102 loads the FPGA program through the SPI Flash module 103 on the board under the operating clock.
  • the controlled board FPGA module 102 starts to work.
  • the control module 104 acquires the state of the board, and combines the data into a 32-bit frame, plus a 12-bit frame header (including data type, service type, start/end, etc.), and finally adds The upper 4 bits of the verification result is sent to the main control board FPGA module 107 through the interface module 105.
  • the main control board FPGA module 107 receives the data and notifies the CPU to process it.
  • the CPU reads 44 bits of data (the parity bit has been removed), and determines the type of the data as the power-on information and the initialization request according to a predefined protocol.
  • the CPU in the main control board After the CPU in the main control board registers the information and status of the controlled board, the CPU sends a configuration command to the controlled board through the FPGA module 107.
  • the data frame sent by the FPGA is completely generated by the CPU software, which can minimize the complexity of the logic unit, further reduce the resource occupancy rate, and improve the efficiency of the debugging application. Taking the switching chip operation management of the switching module 108 as an example, the process of one downlink communication is described.
  • the CPU in the main control board determines the frame type sent by the FPGA module 107, and generates the frame type of the switch chip configuration, including the 12-bit frame header (frame type, operation type, etc.) and the standard SMI management frame structure (32 bits).
  • a 48-bit data frame is generated, which is sent to the interface module 105 of the controlled-board FPGA module 102 through the communication interface 106 between the main control boards.
  • the interface module 105 extracts protocol information according to the first 12 bits of the received frame.
  • the interface module 105 determines that the operation of the switch module 108 is to be performed, and directly sends the SMI interface timing of the data generation of the last 32 bits to the switch module 108, and directly returns a success message according to the corresponding state of the module.
  • the content of the message is performed according to the uplink communication flow.
  • the controlled board FPGA directly or indirectly encapsulates the return result (32bits) or status information of the switching module 108 into a 32-bit data frame, adds the frame header protocol of the uplink communication, and performs verification, and then puts 48-bit frame data into the frame.
  • the data is sent to the main control board FPGA while waiting for the communication interface 106 between the main control boards to be idle. Number of work received
  • the CPU reads the data and hands it to the CPU software to process the data. This completes a communication handshake and data transfer between the main control boards.
  • the configuration and communication of the switching module 108 are completed in sequence.
  • the processing of other modules on the board is similar to the above steps. The difference is that the data frame encapsulation of the CPU in the main control board and the conversion of the interface timing between the application modules by the FPGA interface module 105 are different.
  • the control module 104 in the FPGA module 102 can perform simple single board control tasks.
  • the management control of the CPU of the main control board and the control of the single board of the FPGA of the controlled board are roughly classified according to the complexity.
  • the CPU of the main control board completes the configuration related to the initialization of each controlled board; and the command operation and data processing
  • controlled board FPGAs can handle the operation and processing, such as simple processing of interrupts, monitoring and reporting of application module status information, etc., by the controlled board FPGA; Operations and processing that are not strong and complex are handled by the CPU of the main control board.
  • a compatible version with CPU and FPGA can be designed for debugging convenience.
  • FPGA debugging is performed according to the above method flow. At this point, FPGA debugging only focuses on communication and processing. In the later stage, the parameters of the previous commissioning will be carried out. When the system is stable, external circuits such as the CPU can be removed during production. The invention also satisfies the requirements of production testing, and is also compatible with hybrid insertion multiplexing of CPU boards. Compared with the prior art, the present invention uses a low-cost FPGA instead of a CPU to manage and control the controlled board.
  • the FPGA has relatively low resource requirements, and as the price advantage of the FPGA increases, the current high-speed digital In the circuit, FPGAs are used more and more widely, and FPGAs are generally used on the single boards, so the cost pressure is controlled.
  • the CPU-free solution can reduce a large number of CPU peripherals and circuits, reducing the complexity of the hardware. And cost;
  • the FPGA is replaced by the FPGA software to control the controlled board, which improves the stability and reliability of the board, and also saves a lot of CPU software expenses.
  • the present invention can be applied to an application scenario in which multiple boards that need to be managed and maintained are used, and the application scenario is richer and has better versatility.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)

Abstract

A device with a unified shelf management architecture and a management control method thereof are provided. The device includes a master control board and a controlled board. The master control board comprises a Central Processing Unit (CPU) and a first logic unit connected with the CPU. The controlled board comprises a second logic unit, a clock module, and an application module. The second logic unit connects with the first logic unit of the master control board to communicate with the first logic unit via a communication interface, so as to realize the signal interaction with the CPU. The second logic unit, which connects with the application module via a control interface, is used for managing and controlling the application module under the control of the CPU. The clock module is used for completing the clock distribution for the second logic unit and the application module by reading a preset configuration word pre-stored in a memory.

Description

具有统一机框管理架构的设备及其管理控制方法 技术领域 本发明涉及通信领域, 具体而言, 涉及一种具有统一机 11管理架构的设 备及其管理控制方法。 背景技术 机框架构的设备, 广泛应用在电子、 通信、 机械等领域, 是指设备以机 框为主体, 在机框上设置多个槽位, 以供设备中的各个单元设备, 例如业务 单板接入, 统一机 411管理架构, 是由机 411管理板统一对机 411内的业务单板进 行管理, 其中, 机框管理板即为主控板, 其他受管理的业务单板为受控板。 在目前的通信领域里的设备中, 受控板上运行的业务通常都需要管理和 维护,一般釆用 CPU运行软件来处理, 并与主控板进行通信。 主控板与受控 板之间按照一定的协议进行通信,如图 1。受控板的初始化和配置由本板 CPU 来完成, 不同业务的受控板对 CPU的需求也不一样, 如 E1或者以太网等单 板, 对 CPU的管理和维护的需求并不高。 上述设计主要有 2点考虑: 一、设计简单, 有大量的通用电路支持; 二、 效率高, 各个受控板的开发和调试可以并行进行。 但是在通信行业竟争愈加 激烈的今天, 成本将是关系到产品市场生命力的重要因素。 受控板上 CPU带 来的一系列成本支出不可忽视。 同时软件上维护多个代码也增加了成本和复 杂度。 如果对所有业务的受控板进行一样的处理, 会造成不必要的浪费和复 杂度的提升。 发明内容 本发明要解决的主要技术问题是, 提供一种具有统一机框管理架构的设 备及其管理控制方法, 能够降低具有统一机框管理架构的设备的管理控制成 本。 为解决上述技术问题, 本发明釆用了如下技术方案: 一种具有统一机框管理架构的设备, 包括主控板和受控板, 所述主控板 包含 CPU和与所述 CPU相连的第一逻辑单元, 所述受控板包含第二逻辑单 元、 时钟模块、 应用模块, 所述第二逻辑单元通过通信接口与所述主控板的 第一逻辑单元相连接以与所述第一逻辑单元通信而实现与所述 CPU 之间的 信号交互; 所述第二逻辑单元通过控制接口与所述应用模块相连接, 用于在 所述 CPU的控制下对所述应用模块进行管理和控制;所述时钟模块用于通过 读取预存在存储器中的预设配置字来完成第二逻辑单元和应用模块的时钟分 发。 在本发明所述设备的一种实施例中, 所述第一逻辑单元与第二逻辑单元 之间通信的信号包括时钟信号、 数据信号、 使能信号。 在本发明所述设备的一种实施例中, 所述第二逻辑单元的控制接口包括 串行总线接口、 并行总线接口、 串行总线接口和并行总线接口之外的其他控 制接口。 在本发明所述设备的一种实施例中, 所述串行总线接口包括 I2C串行接 口、 SPI串行接口、 SMI串行接口; 所述并行总线接口包括 LOCAL BUS接 口; 所述其他控制接口包括状态控制接口。 在本发明所述设备的一种实施例中, 所述主控板为一个, 所述受控板为 多个, 所述主控板与每一受控板的通信接口具有各自的地址以及各自独立的 读写单元。 在本发明所述设备的一种实施例中, 所述第一逻辑单元和第二逻辑单元 为 FPGA或者 EPLD。 本发明还提供了上述任一种具有统一机框管理架构的设备的管理控制方 法, 包括: 主控板中的 CPU对受控板进行初始化配置, 以及 主控板中的 CPU 与受控板的第二逻辑单元进行数据交互以对受控板进 行管理和控制。 在本发明所述方法的一种实施例中,主控板中的 CPU对受控板进行初始 化配置之前包括上电流程, 所述上电流程包括: 受控板上电, 时钟模块读取配置字, 产生所需的时钟, 分发给第二逻辑 单元和应用模块; 第二逻辑单元启动, 在上电成功后获取本板的单板状态信息, 向主控板 发送单板状态信息和初始化请求。 在本发明所述方法的一种实施例中,主控板中的 CPU与受控板的第二逻 辑单元进行数据交互以对受控板进行管理和控制包括数据上行流程, 所述数 据上行流程包括: 第二逻辑单元获取本板状态信息, 封装到帧中, 校验后将帧发送到第一 逻辑单元; 所述帧中包括帧类型、 数据类型、 数据和校-险信息; 第一逻辑单元对收到的帧校-险成功后 ,通知主控板中的 CPU进行读取并 居帧类型和数据类型进行相应的处理。 在本发明所述方法的一种实施例中,主控板中的 CPU与受控板的第二逻 辑单元进行数据交互以对受控板进行管理和控制包括数据下行流程, 所述数 据下行流程包括: 主控板中的 CPU将数据封装成帧,第一逻辑单元对所述帧校 -险后发送所 述帧到第二逻辑单元; 第二逻辑单元对收到的帧校-险成功后, -据所述帧完成相应操作; 第二逻辑单元获取应用模块的返回结果或状态指示,确定操作是否成功。 本发明的有益效果是: 通过在受控板中设置第二逻辑单元, 与主控板的 第一逻辑单元通信并与主控板中的 CPU完成信号交互, 在主控板的 CPU控 制下可以实现对受控板应用模块的管理控制,从而可以实现受控板的无 CPU 化, 降低了受控板的成本, 从而从整体上降低了具有统一机框管理架构的设 备的管理控制成本。 附图说明 图 1是目前通用的主受控板通信架构; The present invention relates to the field of communications, and in particular to a device having a unified machine 11 management architecture and a management control method thereof. BACKGROUND OF THE INVENTION Machine-framed devices are widely used in the fields of electronics, communications, and machinery. The device is based on a chassis, and multiple slots are provided on the chassis for each unit device in the device, such as a service ticket. The board access, the unified machine 411 management architecture, is managed by the machine 411 management board, and the service board in the machine 411 is managed. The subrack management board is the main control board, and the other managed service boards are controlled. board. In the current communication equipment, the services running on the controlled board usually need to be managed and maintained. Generally, the CPU runs software to process and communicate with the main control board. The main control board and the controlled board communicate according to a certain protocol, as shown in Figure 1. The initialization and configuration of the control board is completed by the CPU of the board. The control boards of different services have different CPU requirements. For example, boards such as E1 or Ethernet have low requirements for CPU management and maintenance. The above design mainly has two points to consider: First, the design is simple, there are a large number of general circuit support; Second, the efficiency is high, the development and debugging of each controlled board can be carried out in parallel. However, in today's increasingly fierce competition in the communications industry, cost will be an important factor in the vitality of the product market. The cost of a CPU on a controlled board cannot be ignored. At the same time, maintaining multiple codes on the software also adds cost and complexity. If the same processing is performed on the controlled boards of all services, unnecessary waste and complexity will be caused. SUMMARY OF THE INVENTION The main technical problem to be solved by the present invention is to provide a device with a unified chassis management architecture and a management control method thereof, which can reduce the management control cost of a device having a unified chassis management architecture. In order to solve the above technical problem, the present invention uses the following technical solutions: A device having a unified chassis management architecture, including a main control board and a control board, the main control board a CPU and a first logic unit connected to the CPU, the controlled board includes a second logic unit, a clock module, and an application module, where the second logic unit communicates with the first logic of the main control board through a communication interface Units are coupled to communicate with the first logic unit to effect signal interaction with the CPU; the second logic unit is coupled to the application module via a control interface for control by the CPU The application module is managed and controlled; the clock module is configured to complete clock distribution of the second logic unit and the application module by reading a preset configuration word pre-stored in the memory. In an embodiment of the device of the present invention, the signal communicated between the first logic unit and the second logic unit includes a clock signal, a data signal, and an enable signal. In an embodiment of the device of the present invention, the control interface of the second logic unit includes a serial bus interface, a parallel bus interface, a serial bus interface, and other control interfaces than the parallel bus interface. In an embodiment of the device of the present invention, the serial bus interface includes an I2C serial interface, an SPI serial interface, and an SMI serial interface; the parallel bus interface includes a LOCAL BUS interface; the other control interface Includes state control interface. In an embodiment of the device of the present invention, the main control board is one, and the controlled boards are multiple, and the communication interfaces of the main control board and each controlled board have respective addresses and respective Independent read and write unit. In an embodiment of the device of the present invention, the first logic unit and the second logic unit are an FPGA or an EPLD. The present invention also provides a management control method for any device with a unified chassis management architecture, including: initializing configuration of a controlled board by a CPU in a main control board, and CPU and a controlled board in the main control board The second logical unit performs data interaction to manage and control the controlled board. In an embodiment of the method, the CPU in the main control board includes a power-on process before initializing the configuration of the controlled board, where the power-on process includes: controlled power-on, clock module read configuration Word, generate the required clock, distribute to the second logic The unit and the application module; the second logic unit is started, and the board status information of the board is obtained after the power is successfully sent, and the board status information and the initialization request are sent to the main control board. In an embodiment of the method of the present invention, the CPU in the main control board performs data interaction with the second logic unit of the controlled board to manage and control the controlled board, including a data uplink process, and the data uplink process The second logic unit acquires the status information of the board, encapsulates the information into the frame, and sends the frame to the first logic unit after the verification; the frame includes the frame type, the data type, the data, and the school-risk information; After the unit successfully checks the received frame, the CPU in the main control board is notified to read and the frame type and data type are processed accordingly. In an embodiment of the method of the present invention, the CPU in the main control board performs data interaction with the second logic unit of the controlled board to manage and control the controlled board, including a data downlink process, and the data downlink process The method includes: the CPU in the main control board encapsulates the data into a frame, and the first logic unit sends the frame to the second logic unit after the frame is diagnosed and failed; and the second logical unit succeeds in the received frame. - Performing a corresponding operation according to the frame; the second logic unit acquires a return result or a status indication of the application module to determine whether the operation is successful. The beneficial effects of the present invention are: by setting a second logic unit in the controlled board, communicating with the first logic unit of the main control board and performing signal interaction with the CPU in the main control board, under the control of the CPU of the main control board The management control of the controlled board application module is realized, thereby realizing the CPUless of the controlled board and reducing the cost of the controlled board, thereby reducing the management control cost of the equipment with the unified chassis management architecture as a whole. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a general-purpose main control board communication architecture;
图 3是本发明实施例的数据通信处理流程; 图 4是本发明的一个应用实例的具体实施示意图。 具体实施方式 下面通过具体实施方式结合附图对本发明作进一步详细说明。 本发明的主要构思在于, 利用逻辑单元, 例如 FPGA (现场可编程逻辑 阵歹 'J )或者其他1 辑单元 (例 口 EPLD, Erasable Programmable Logic Device, 可擦除可编辑逻辑器件) 来实施受控板的管理控制, 从而降低产品的生产和 维护成本。 其实施方案主要包括: 一种具有统一机框管理架构的设备, 包括 主控板和受控板,所述主控板包含 CPU和与所述 CPU相连的第一逻辑单元, 所述受控板包含第二逻辑单元、 时钟模块、 应用模块, 所述第二逻辑单元通 过通信接口与所述主控板的第一逻辑单元相连接以与所述第一逻辑单元通信 而实现与所述 CPU之间的信号交互;所述第二逻辑单元通过控制接口与所述 应用模块相连接, 用于在所述 CPU 的控制下对所述应用模块进行管理和控 制; 所述时钟模块用于通过读取预存在存储器中的预设配置字来完成第二逻 辑单元和应用模块的时钟分发。 如图 2所示,在图 2的示例中,第一逻辑单元和第二逻辑单元均为 FPGA, 受控板釆用 氏成本的 FPGA代替 CPU来完成对受控板的多种业务和配置的 管理与控制。 主控板下发给受控板控制命令, 由受控板 FPGA解包协议, 并 完成控制操作。 受控板的控制和管理统一在主控板进行, 由主控板的 CPU软 件进行封装。 主控板中的 CPU软件读写主控板上的 FPGA, 完成控制操作命 令和数据的传递与接收。 为保证主控板同时可操作多个受控板, 主控板的协 议封装由主控板中的 CPU软件完成, 并通过主控板 FPGA各自分发到各个 受控板槽位。 主控板与受控板之间的通信接口 (第一逻辑单元和第二逻辑单 元之间) 利用高速的串行总线, 可以减少主控板与受控板在背板接口的信号 线。 受控板 FPGA主要完成协议的解析, 并按照预先制定的协议进行相应的 操作。 具体的操作根据不同的受控板业务类型来具体实现。 主控板与受控板之间的接口主要有以下信号线: 时钟线: 高速时钟信号, 保证数据的速率; 数据线: 传递主受控板的通信数据, 可选择半双工和双工模式, 即单根 单向线来节省走线或 2才艮双向线保证实时性; 使能线: 使能信号, 用来控制选通主受控板之间的通路。 与原有 CPU受控板相比, 本发明实施例中釆用 FPGA的无 CPU受控板 主要有以下不同: 1、 替代 CPU后, 受控板的应用模块 (例如进行业务处理的业务模块或 者用于存储的存储模块等等, 即 FPGA与时钟模块之外的可以实现某种应用 功能的模块) 不变, FPGA取代 CPU的控制接口。 这些接口包括: 串行总线接口: 如 I2C ( Inter-Integrated Circuit , 两线式串行总线)、 SPI ( Serial Peripheral Interface , 串行夕卜设接口 )、 SMI ( Serial Management Interface , 串行管理接口) 等常用的串行接口, 当然也可以是其他串行接口; 并行总线接口: 如 LOCAL BUS等的接口, 当然也可以是其他并行接口, 包括自定义的接口; 其他控制接口: 如状态控制接口等。 3 is a flowchart of a data communication process according to an embodiment of the present invention; Fig. 4 is a schematic view showing a concrete implementation of an application example of the present invention. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be further described in detail by way of specific embodiments with reference to the accompanying drawings. The main idea of the present invention is to implement controlled by a logic unit, such as an FPGA (Field Programmable Logic 'J) or other 1 unit (Erasable Programmable Logic Device). The management of the board controls the production and maintenance costs of the product. The implementation program mainly includes: a device having a unified chassis management architecture, including a main control board and a control board, where the main control board includes a CPU and a first logic unit connected to the CPU, the control board a second logic unit, a clock module, and an application module, where the second logic unit is connected to the first logic unit of the main control board through a communication interface to communicate with the first logic unit to implement the CPU Inter-signal interaction; the second logic unit is connected to the application module through a control interface, and is configured to manage and control the application module under control of the CPU; the clock module is configured to read The preset configuration words pre-stored in the memory complete the clock distribution of the second logic unit and the application module. As shown in FIG. 2, in the example of FIG. 2, the first logic unit and the second logic unit are both FPGAs, and the controlled board replaces the CPU with the cost of the FPGA to complete various services and configurations of the controlled board. Management and control. The main control board sends a control command to the controlled board, and the protocol is unpacked by the controlled board FPGA, and the control operation is completed. The control and management of the controlled board is unified on the main control board and encapsulated by the CPU software of the main control board. The CPU software in the main control board reads and writes the FPGA on the main control board to complete the control operation command and data transmission and reception. To ensure that the main control board can operate multiple control boards at the same time, the protocol package of the main control board is completed by the CPU software in the main control board, and distributed to each control board slot through the main control board FPGA. The communication interface between the main control board and the controlled board (between the first logic unit and the second logic unit) can reduce the signal line of the interface between the main control board and the controlled board on the backplane by using the high-speed serial bus. The controlled board FPGA mainly completes the parsing of the protocol and performs corresponding operations according to the pre-established protocol. The specific operations are implemented according to different types of controlled board services. The interface between the main control board and the controlled board mainly has the following signal lines: Clock line: High-speed clock signal to ensure the data rate; Data line: Pass the communication data of the main control board, select half-duplex and duplex mode Single root One-way line to save the trace or 2 to the two-way line to ensure real-time; enable line: enable signal, used to control the path between the gated main control board. Compared with the original CPU-controlled board, the CPU-less controlled board of the FPGA in the embodiment of the present invention mainly has the following differences: 1. After replacing the CPU, the application module of the controlled board (for example, a service module for performing service processing or A storage module for storage, etc., that is, a module other than the FPGA and the clock module that can implement an application function, is unchanged, and the FPGA replaces the control interface of the CPU. These interfaces include: Serial bus interface: such as I2C (Inter-Integrated Circuit), SPI (Serial Peripheral Interface), SMI (Serial Management Interface) Such as the commonly used serial interface, of course, can also be other serial interfaces; Parallel bus interface: such as LOCAL BUS interface, of course, can also be other parallel interfaces, including custom interfaces; Other control interfaces: such as state control interfaces .
FPGA取代 CPU后, 完成这些接口协议的转换, 并实现一些简单的监控 和处理任务, 如状态监控和简单的中断处理任务等, 如图 2。 After the FPGA replaces the CPU, it completes the conversion of these interface protocols and implements some simple monitoring and processing tasks, such as status monitoring and simple interrupt processing tasks, as shown in Figure 2.
2、 有 CPU受控板的时钟由 CPU来完成配置管理, 如图 1。 在无 CPU 受控板中, 时钟分发不再由 CPU控制, 而是由时钟模块读取 EEPROM (电 可擦除只读存储器) 中预先确定好的配置字来完成, 如图 2。 2. The clock with the CPU controlled board is configured and managed by the CPU, as shown in Figure 1. In a CPU-free board, clock distribution is no longer controlled by the CPU, but is done by the clock module reading a predetermined configuration word in the EEPROM (Electrically Erasable Read Only Memory), as shown in Figure 2.
3、 受控板一部分应用模块的软件接口封装和配置移交给主控板的 CPU 软件来封装完成。 主控板 FPGA与每个受控板 FPGA之间的通信接口有各自 独立的读写操作单元, 各个接口有各自的地址。 主控板中的 CPU直接封装好 受控板应用模块接口的数据帧结构, 包括协议类型、 数据类型和数据传递给 主控板 FPGA, 主控板 FPGA将这些数据进行校验后封装成统一的帧结构下 发到受控板。 受控板 FPGA根据主控板下发的协议类型, 完成简单的接口转 换, 直接将主控板已经封装好的数据帧生成相应的接口时序, 完成与应用模 块的通信。 上报数据时, 受控板 FPGA仅将收到的数据和信息直接加上协议 类型封装成单板间通信的协议帧, 上报给主控板即可。 本发明实施例的设备, 其管理控制方法相应也与原有的受控板管理控制 不同, 其主要包括: 主控板中的 CPU对受控板进行初始化配置, 以及主控板 中的 CPU 与受控板的第二逻辑单元进行数据交互以对受控板进行管理和控 制。 如图 3所示, 管理控制方法的流程包括上电流程、 数据上行流程、 数据 下行流程, 下面分别予以说明。 本发明实施例中, 受控板的上电流程的具体流程包括: 步骤 A. 受控板上电, 板上时钟模块通过 EEPROM读取配置字, 产生 单板所需的时钟, 分发到各个模块, 包括 FPGA (第二逻辑单元) 和其他模 块 (例如图 2所示的多个应用模块)。 步骤 B. FPGA启动, 通过单板上的 SPI Flash下载 FPGA還辑程序, 以 完成 FPGA的启动配置; 步骤 C. 上电成功后, 受控板 FPGA获取单板状态信息, 并向主控板发 送单板状态信息和初始化请求。 主控板中的 CPU 居受控板的初始化请求完成对受控板的初始化配置。 数据通信的上行流程包括: 步骤 D. 受控板 FPGA获取本板的状态信息, 如一些单板注册信息等; 步骤 E. 受控板 FPGA将数据封装到定义好的帧结构中, 并在帧头附加 上帧类型和数据类型, 并做校验后通过主控板和受控板之间的接口将帧发送 到主控板; 步骤 F. 主控板 FPGA收到帧后, 校验成功后通知受控板 FPGA接收成 功, 否则返回失败。 主控板 FPGA通知主控板上的 CPU, 由 CPU读取 FPGA 接收到的帧, 并根据帧类型和帧数据来判断数据和业务的类型, 由 CPU软件 进行进一步的处理和操作。 数据通信的下行流程包括: 步骤 G.主控板中的 CPU软件将处理好的数据直接封装成要传送的数据 帧结构, 主控板 FPGA只对这些数据故校-险并加上校-险信息, 然后封装成帧 发送给受控板 FPGA; 步骤 H. 受控板 FPGA收到数据后,并校验成功后通知主控板下发成功, 否则返回失败。 受控板 FPGA根据收到的数据帧头中定义的参数和类型, 判 断 FPGA的进一步操作; 步骤 I. 受控板 FPGA判断操作类型, 完成具体的操作, 如完成对某个 模块的控制或者将接收到的帧中的数据直接按照操作类型产生相应的接口时 序 (如 SPI ), 下发到各个模块中。 步骤 J. 受控板 FPGA获取各个模块的返回结果 (一些对模块的写操作 可能不需要返回结果)或者状态指示, 来表明一次操作是否成功。 如果需要, 则可按照步骤 D-F的流程, 将结果上报给主控板。 3. The software interface encapsulation and configuration of a part of the application module of the controlled board is handed over to the CPU software of the main control board for packaging. The communication interface between the main control board FPGA and each controlled board FPGA has its own independent read and write operation unit, and each interface has its own address. The CPU in the main control board directly encapsulates the data frame structure of the interface of the controlled board application module, including the protocol type, data type, and data transfer to the main control board FPGA. The main control board FPGA performs verification and encapsulates the data into a unified The frame structure is sent to the controlled board. The controlled board FPGA completes simple interface conversion according to the protocol type delivered by the main control board, and directly generates the corresponding interface timing by the data frame already encapsulated by the main control board, and completes communication with the application module. When the data is reported, the FPGA of the controlled board only adds the received data and information to the protocol frame of the protocol type and is reported to the main control board. The device of the embodiment of the invention has a management control method corresponding to the original controlled board management control. Differently, the method mainly includes: initializing the configuration of the controlled board by the CPU in the main control board, and performing data interaction between the CPU in the main control board and the second logic unit of the controlled board to manage and control the controlled board. As shown in FIG. 3, the process of the management control method includes a power-on process, a data uplink process, and a data downlink process, which are respectively described below. In the embodiment of the present invention, the specific process of the power-on process of the control board includes: Step A. The controlled board power, the on-board clock module reads the configuration word through the EEPROM, generates the clock required by the board, and distributes the clock to each module. , including FPGA (second logic unit) and other modules (such as multiple application modules shown in Figure 2). Step B. The FPGA is started, and the FPGA is downloaded from the SPI Flash on the board to complete the startup configuration of the FPGA. Step C. After the power is successfully applied, the controlled board FPGA obtains the status information of the board and sends the status information to the main board. Board status information and initialization request. The initialization request of the CPU-controlled board in the main control board completes the initial configuration of the controlled board. The uplink process of data communication includes: Step D. The controlled board FPGA obtains the status information of the board, such as some board registration information, etc. Step E. The controlled board FPGA encapsulates the data into the defined frame structure and is in the frame. The header is attached to the frame type and the data type, and the frame is sent to the main control board through the interface between the main control board and the controlled board after the verification; Step F. After the main control board FPGA receives the frame, after the verification succeeds Notify the controlled board that the FPGA receives successfully, otherwise it returns a failure. The main control board FPGA notifies the CPU on the main control board, and the CPU reads the frame received by the FPGA, and judges the type of data and service according to the frame type and the frame data, and further processing and operations are performed by the CPU software. The downlink process of data communication includes: Step G. The CPU software in the main control board directly encapsulates the processed data into a data frame structure to be transmitted, and the main control board FPGA only applies the data to the insurance and adds the school-risk information. And then packaged into a frame and sent to the controlled board FPGA; Step H. After the controlled board FPGA receives the data, and the verification succeeds, the main control board is notified to deliver successfully. Otherwise the return fails. The controlled board FPGA judges the further operation of the FPGA according to the parameters and types defined in the received data frame header. Step I. The controlled board FPGA determines the operation type, completes the specific operation, such as completing the control of a certain module or The data in the received frame is directly sent to each module according to the type of operation to generate the corresponding interface timing (such as SPI). Step J. The controlled board FPGA obtains the return result of each module (some write operations to the module may not need to return a result) or status indication to indicate whether an operation is successful. If necessary, report the result to the main control board according to the procedure in step DF.
FPGA版本在线更新流程: 步骤 K. 主控板发起 FPGA 更新的命令, 按照步骤 G-H 的流程, 下发FPGA version online update process: Step K. The main control board initiates the FPGA update command, according to the process of step G-H, delivers
FPGA更新的命令。 步骤 L. 受控板 FPGA响应命令确认后, 主控板通过步骤 G, 将 FPGA 更新数据下发到受控板。 受控板 FPGA按照步骤 H, 通过 SPI口, 将数据写 入 Flash中, 并返回结果给主控板。 步骤 M. 主控板收到受控板更新成功消息后, 对受控板进行整版复位, 重复步骤 A-C的操作。 如果返回失败结果, 重复步骤 K-M的操作。 如图 4所示, 图 4是本发明实施例中的基于以太网交换机受控板的一个 应用实例。 在该应用实例中, 主控板上包括 CPU和 FPGA模块 107 (第一逻 辑单元); 受控板上主要包括时钟模块 101 (包括存储有预设配置字的 EEPROM )、 FPGA模块 102 (第二逻辑单元)、 SPI Flash (闪存) 103、 交换 模块 108、 PHY ( Physical Layer, 物理层)模块 109、 EEPROM和传感器等 模块 111。 图 4中的交换模块 108、 PHY ( Physical Layer, 物理层)模块 109、 EEPROM和传感器等模块 111即前述的应用模块, 用来实现以太网交换、 存 储和传感等应用功能。 主控板与受控板之间通过通信接口 106 实现通信。 FPGA模块 102通过 SPI接口 106与时钟模块 101实现交互, 通过 SMI控制 接口 107与交互模块 108交互, 通过 I2C接口 112与 EEPROM和传感器等 模块 111交互, 交换模块 108与 PHY模块 109之间通过 SMI控制接口 110 交互。 FPGA模块 102包括控制模块 104和接口模块 105。 主控板和受控板的数据通信接口 106, 是一种串行总线, 包括数据、 时 钟和使能信号线。 为节省背板走线, 与其他有 CPU受控板的串行管理总线兼 容(如 IPMI ( Intelligent Platform Management Interface, 智能平台管理接口 ) 总线), 能够支持多种类型单板的混插。 数据通信接口 106 以一种类 I2C 串行总线为例, 其数据位宽 48bits (不 同应用, 数据位宽可能不一样), 前 12bits 为通信协议信息和控制信息, 后 32bits为数据信息, 最后 4bits为校-险位。 在第 49个时钟周期, 受控板 FPGA 将数据线置氏, 表示接收成功, 否则为失败, 并通知 CPU, 返回错误。 受控板上电, 时钟模块 101通过单板上的 EEPROM读取配置字, 完成 时钟模块的配置。 时钟配置完成后, 分发时钟给各个模块, 包括 FPGA模块 102、 交换模块 108和 PHY ( Physical Layer, 物理层)模块 109。 FPGA模块 102在工作时钟下通过单板上的 SPI Flash模块 103加载 FPGA程序。 受控板 FPGA模块 102开始工作, 首先控制模块 104获取单板的状态, 并将数据组成 32bit的帧, 加上 12bits的帧头 (包含数据类型、 业务类型、 开始 /结束等信息), 最后加上 4bits的校验结果, 通过接口模块 105向主控板 FPGA模块 107发送数据。 主控板 FPGA模块 107收到数据, 通知 CPU来处 理。 CPU读取 44bits数据 (已除去校验位), 并根据预先定义好的协议, 判 断数据的类型为上电信息和初始化请求。主控板中的 CPU注册受控板的信息 和状态后, 由 CPU通过 FPGA模块 107向受控板发送配置命令。 FPGA发送 的数据帧完全由 CPU软件来产生, 这样可以尽量降氏逻辑单元的复杂度, 进 一步降低资源占用率, 还能够提高调试应用的效率。 以交换模块 108的交换芯片操作管理为例, 描述一次下行通信的过程。 主控板中的 CPU确定 FPGA模块 107发送的帧类型, 产生交换芯片配置的 帧类型, 包括 12bits的帧头 (帧类型、 操作类型等) 以及标准的 SMI管理帧 结构 ( 32bits )„ 接下来由 FPGA模块 107做校验后生成 48bits的数据帧, 通 过主受控板间的通信接口 106发向受控板 FPGA模块 102的接口模块 105。 接口模块 105根据收到帧的前 12bits提取协议信息。 接口模块 105判断为对 交换模块 108的操作管理, 直接将后 32bits的数据产生 SMI接口时序发送给 交换模块 108, 并根据模块的相应状态或者直接返回成功消息。 消息的内容 按照上行通信流程进行。 受控板 FPGA将交换模块 108的返回结果 ( 32bits ) 或者状态信息直接或间接地封装到 32bits数据帧里, 加上上行通信的帧头协 议, 并做校验后, 将 48bits的帧数据放到发送緩冲区中, 等待主受控板间的 通信接口 106空闲时将数据发送到主控板 FPGA。 主控板 FPGA成功收到数 据后, 同时 CPU读取数据, 并交给 CPU软件来处理数据。 这样完成了一次 主受控板间的通信握手和数据传递。 按照上述步骤, 依次完成对交换模块 108的配置与通信。 对单板上其他 模块的处理与上述步骤类似, 不同的是主控板中的 CPU 的数据帧封装和 FPGA接口模块 105对应用模块之间的接口时序的转换不同。 The FPGA update command. Step L. After the FPGA response command is confirmed, the main control board sends the FPGA update data to the controlled board through step G. The controlled board FPGA writes the data to the flash through the SPI port according to step H, and returns the result to the main control board. Step M. After receiving the control board update success message, the main control board resets the controlled board and repeats the operation of step AC. If the result of the failure is returned, repeat the operation of step KM. As shown in FIG. 4, FIG. 4 is an application example of an Ethernet switch-based control board in an embodiment of the present invention. In this application example, the main control board includes a CPU and an FPGA module 107 (first logic unit); the controlled board mainly includes a clock module 101 (including an EEPROM storing a preset configuration word), and an FPGA module 102 (second Logic unit), SPI Flash (flash) 103, switch module 108, PHY (Physical Layer) module 109, EEPROM and sensor module 111. The switch module 108, the PHY (Physical Layer) module 109, the EEPROM and the sensor module 111 in FIG. 4 are the aforementioned application modules, and are used to implement application functions such as Ethernet switching, storage, and sensing. Communication between the main control board and the controlled board is through the communication interface 106. The FPGA module 102 interacts with the clock module 101 through the SPI interface 106, interacts with the interaction module 108 through the SMI control interface 107, interacts with the module 111 such as the EEPROM and the sensor through the I2C interface 112, and performs SMI control between the switch module 108 and the PHY module 109. Interface 110 interacts. The FPGA module 102 includes a control module 104 and an interface module 105. The data communication interface 106 of the main control board and the control board is a serial bus, including data, time Clock and enable signal lines. In order to save the backplane routing, it is compatible with other serial management buses with CPU-controlled boards (such as the IPMI (Intelligent Platform Management Interface) bus), which can support the intermixing of multiple types of boards. The data communication interface 106 takes an I2C serial bus as an example, and its data bit width is 48 bits (different applications, data bit width may be different), the first 12 bits are communication protocol information and control information, the last 32 bits are data information, and the last 4 bits are School - dangerous position. On the 49th clock cycle, the controlled-board FPGA sets the data line to indicate that the reception was successful, otherwise it fails, and notifies the CPU that an error is returned. After the board is powered on, the clock module 101 reads the configuration word through the EEPROM on the board to complete the configuration of the clock module. After the clock configuration is completed, the clock is distributed to each module, including the FPGA module 102, the switch module 108, and the PHY (Physical Layer) module 109. The FPGA module 102 loads the FPGA program through the SPI Flash module 103 on the board under the operating clock. The controlled board FPGA module 102 starts to work. First, the control module 104 acquires the state of the board, and combines the data into a 32-bit frame, plus a 12-bit frame header (including data type, service type, start/end, etc.), and finally adds The upper 4 bits of the verification result is sent to the main control board FPGA module 107 through the interface module 105. The main control board FPGA module 107 receives the data and notifies the CPU to process it. The CPU reads 44 bits of data (the parity bit has been removed), and determines the type of the data as the power-on information and the initialization request according to a predefined protocol. After the CPU in the main control board registers the information and status of the controlled board, the CPU sends a configuration command to the controlled board through the FPGA module 107. The data frame sent by the FPGA is completely generated by the CPU software, which can minimize the complexity of the logic unit, further reduce the resource occupancy rate, and improve the efficiency of the debugging application. Taking the switching chip operation management of the switching module 108 as an example, the process of one downlink communication is described. The CPU in the main control board determines the frame type sent by the FPGA module 107, and generates the frame type of the switch chip configuration, including the 12-bit frame header (frame type, operation type, etc.) and the standard SMI management frame structure (32 bits). After the FPGA module 107 performs verification, a 48-bit data frame is generated, which is sent to the interface module 105 of the controlled-board FPGA module 102 through the communication interface 106 between the main control boards. The interface module 105 extracts protocol information according to the first 12 bits of the received frame. The interface module 105 determines that the operation of the switch module 108 is to be performed, and directly sends the SMI interface timing of the data generation of the last 32 bits to the switch module 108, and directly returns a success message according to the corresponding state of the module. The content of the message is performed according to the uplink communication flow. The controlled board FPGA directly or indirectly encapsulates the return result (32bits) or status information of the switching module 108 into a 32-bit data frame, adds the frame header protocol of the uplink communication, and performs verification, and then puts 48-bit frame data into the frame. In the send buffer, the data is sent to the main control board FPGA while waiting for the communication interface 106 between the main control boards to be idle. Number of work received After that, the CPU reads the data and hands it to the CPU software to process the data. This completes a communication handshake and data transfer between the main control boards. According to the above steps, the configuration and communication of the switching module 108 are completed in sequence. The processing of other modules on the board is similar to the above steps. The difference is that the data frame encapsulation of the CPU in the main control board and the conversion of the interface timing between the application modules by the FPGA interface module 105 are different.
FPGA模块 102中的控制模块 104可以完成简单的单板控制任务。 主控 板的 CPU的管理控制与受控板的 FPGA的单板控制大致按复杂度区分, 一 般的, 由主控板的 CPU完成各受控板的初始化的相关配置; 而命令操作及数 据处理, 对于实时性较强、 复杂度不高, 受控板 FPGA力所能及的操作与处 理, 如对中断的简单处理, 应用模块状态信息的监控与上报等, 由受控板 FPGA 完成; 而对于实时性不强、 复杂度较高的操作与处理, 则交由主控板 的 CPU来完成。 该方案的实施在前期, 为了调试方便可以设计一个带有 CPU 和 FPGA 兼容版本, 在单板调试前期将各个模块的配置和应用调试稳定后, 再按照上 述的方法流程进行 FPGA调试。 此时, FPGA调试只用关注通信和处理方面 的工作。 后期再将前期调试完成的参数进行-险证。 当系统达到稳定后, 就可 以在生产时将 CPU等外部电路去掉。 本发明同样满足生产测试的要求, 也兼 容有 CPU单板的混插复用。 与现有技术相比较, 本发明釆用了一个低成本的 FPGA代替 CPU来管 理控制受控板, FPGA的资源要求相对较低, 并且随着 FPGA价格优势的不 断增加, 同时在目前的高速数字电路中, FPGA 的使用领域越来越广, 一般 的单板上都有 FPGA, 因此成本压力得到控制; 另外, 无 CPU的方案可以减 少大量的 CPU外围设备以及电路, 降低了硬件上的复杂度和成本; 同时, 由 FPGA代替 CPU软件来控制受控板, 提高的单板的稳定性和可靠性, 也节省 了大笔的 CPU软件开支。 本发明可以适用于有多个需要管理维护的单板的应用场景中, 应用场景 更加丰富, 具备较好的通用性。 主控板的 FPGA与各个受控板间的接口能够 并行处理, 提高了系统的处理性能。 以上内容是结合具体的实施方式对本发明所作的进一步详细说明, 不能 认定本发明的具体实施只局限于这些说明。 对于本发明所属技术领域的普通 技术人员来说, 在不脱离本发明构思的前提下, 还可以做出若千简单推演或 替换, 都应当视为属于本发明的保护范围。 The control module 104 in the FPGA module 102 can perform simple single board control tasks. The management control of the CPU of the main control board and the control of the single board of the FPGA of the controlled board are roughly classified according to the complexity. Generally, the CPU of the main control board completes the configuration related to the initialization of each controlled board; and the command operation and data processing For real-time, low-complexity, controlled board FPGAs can handle the operation and processing, such as simple processing of interrupts, monitoring and reporting of application module status information, etc., by the controlled board FPGA; Operations and processing that are not strong and complex are handled by the CPU of the main control board. In the early stage of implementation, a compatible version with CPU and FPGA can be designed for debugging convenience. After the configuration and application debugging of each module are stabilized in the early stage of board debugging, FPGA debugging is performed according to the above method flow. At this point, FPGA debugging only focuses on communication and processing. In the later stage, the parameters of the previous commissioning will be carried out. When the system is stable, external circuits such as the CPU can be removed during production. The invention also satisfies the requirements of production testing, and is also compatible with hybrid insertion multiplexing of CPU boards. Compared with the prior art, the present invention uses a low-cost FPGA instead of a CPU to manage and control the controlled board. The FPGA has relatively low resource requirements, and as the price advantage of the FPGA increases, the current high-speed digital In the circuit, FPGAs are used more and more widely, and FPGAs are generally used on the single boards, so the cost pressure is controlled. In addition, the CPU-free solution can reduce a large number of CPU peripherals and circuits, reducing the complexity of the hardware. And cost; At the same time, the FPGA is replaced by the FPGA software to control the controlled board, which improves the stability and reliability of the board, and also saves a lot of CPU software expenses. The present invention can be applied to an application scenario in which multiple boards that need to be managed and maintained are used, and the application scenario is richer and has better versatility. The interface between the FPGA of the main control board and each controlled board can be processed in parallel, which improves the processing performance of the system. The above is a further detailed description of the present invention in connection with the specific embodiments, and the specific implementation of the invention is not limited to the description. Common to the technical field to which the present invention pertains The skilled person can make a simple deduction or replacement without departing from the inventive concept, and should be regarded as belonging to the protection scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种具有统一机框管理架构的设备, 包括主控板和受控板, 其特征在 于, 所述主控板包含 CPU和与所述 CPU相连的第一逻辑单元, 所述 受控板包含第二逻辑单元、 时钟模块、 应用模块, 所述第二逻辑单元 通过通信接口与所述主控板的第一逻辑单元相连接以与所述第一逻辑 单元通信而实现与所述 CPU之间的信号交互; 所述第二逻辑单元通过 控制接口与所述应用模块相连接, 用于在所述 CPU的控制下对所述应 用模块进行管理和控制; 所述时钟模块用于通过读取预存在存储器中 的预设配置字来完成第二逻辑单元和应用模块的时钟分发。 A device having a unified chassis management architecture, including a main control board and a control board, wherein the main control board includes a CPU and a first logic unit connected to the CPU, and the control board a second logic unit, a clock module, and an application module, where the second logic unit is connected to the first logic unit of the main control board through a communication interface to communicate with the first logic unit to implement the CPU The second logic unit is connected to the application module through a control interface, and is configured to manage and control the application module under the control of the CPU; the clock module is configured to read The preset configuration words pre-stored in the memory complete the clock distribution of the second logic unit and the application module.
2. 如权利要求 1 所述的设备, 其特征在于, 所述第一逻辑单元与第二逻 辑单元之间通信的信号包括时钟信号、 数据信号、 使能信号。 2. The device according to claim 1, wherein the signal communicated between the first logic unit and the second logic unit comprises a clock signal, a data signal, and an enable signal.
3. 如权利要求 1 所述的设备, 其特征在于, 所述第二逻辑单元的控制接 口包括串行总线接口、 并行总线接口、 串行总线接口和并行总线接口 之外的其他控制接口。 3. The device according to claim 1, wherein the control interface of the second logic unit comprises a serial bus interface, a parallel bus interface, a serial bus interface, and other control interfaces than the parallel bus interface.
4. 如权利要求 3 所述的设备, 其特征在于, 所述串行总线接口包括 I2C 串行接口、 SPI 串行接口、 SMI 串行接口; 所述并行总线接口包括 LOCAL BUS接口; 所述其他控制接口包括状态控制接口。 4. The device of claim 3, wherein the serial bus interface comprises an I2C serial interface, an SPI serial interface, an SMI serial interface; the parallel bus interface comprises a LOCAL BUS interface; The control interface includes a state control interface.
5. 如权利要求 1 所述的设备, 其特征在于, 所述主控板为一个, 所述受 控板为多个, 所述主控板与每一受控板的通信接口具有各自的地址以 及各自独立的读写单元。 The device according to claim 1, wherein the main control board is one, and the controlled boards are multiple, and the communication interface between the main control board and each controlled board has a respective address. And separate read and write units.
6. 如权利要求 1-5 任一所述的设备, 其特征在于, 所述第一逻辑单元和 所述第二逻辑单元均为 FPGA或者 EPLD。 The device according to any one of claims 1-5, wherein the first logic unit and the second logic unit are both an FPGA or an EPLD.
7. —种如权利要求 1-5 任一所述的具有统一机框管理架构的设备的管理 控制方法, 其特征在于, 包括: 主控板中的 CPU对受控板进行初始化配置, 以及 主控板中的 CPU 与受控板的第二逻辑单元进行数据交互以对受 控板进行管理和控制。 如权利要求 7所述的方法, 其特征在于, 主控板中的 CPU对受控板进 行初始化配置之前包括上电流程, 所述上电流程包括: 受控板上电, 时钟模块读取配置字, 产生所需的时钟, 分发给第 二逻辑单元和应用模块; 第二逻辑单元启动, 在上电成功后获取本板的单板状态信息, 向 主控板发送单板状态信息和初始化请求。 如权利要求 7所述的方法, 其特征在于, 主控板中的 CPU与受控板的 第二逻辑单元进行数据交互以对受控板进行管理和控制包括数据上行 流程, 所述数据上行流程包括: 第二逻辑单元获取本板状态信息, 封装到帧中, 校验后将帧发送 到第一逻辑单元; 所述帧中包括帧类型、 数据类型、 数据和校-险信息; 第一逻辑单元对收到的帧校 -险成功后,通知主控板中的 CPU进行 读取并 -据帧类型和数据类型进行相应的处理。 如权利要求 7所述的方法, 其特征在于, 主控板中的 CPU与受控板的 第二逻辑单元进行数据交互以对受控板进行管理和控制包括数据下行 流程, 所述数据下行流程包括: 主控板中的 CPU将数据封装成帧, 第一逻辑单元对所述帧校 -险后 发送所述帧到第二逻辑单元; 第二逻辑单元对收到的帧进行校-险并告知主控板, 并才艮据所述帧 完成相应操作或发送给相应的应用模块处理; 第二逻辑单元获取应用模块的返回结果或状态指示, 确定操作是 否成功。 The management control method of the device with a unified chassis management architecture according to any one of claims 1-5, comprising: initializing configuration of the controlled board by the CPU in the main control board, and The CPU in the control board interacts with the second logic unit of the controlled board to manage and control the controlled board. The method of claim 7, wherein the CPU in the main control board includes a power-on process before initializing the configuration of the controlled board, where the power-on process includes: controlled power-on, clock module read configuration The words, generate the required clocks, and distribute them to the second logic unit and the application module. The second logic unit starts, and obtains the board status information of the board after the power is successfully sent, and sends the board status information and the initialization request to the main control board. . The method of claim 7, wherein the CPU in the main control board performs data interaction with the second logic unit of the controlled board to manage and control the controlled board, including a data uplink process, and the data uplink process The second logic unit acquires the status information of the board, encapsulates the information into the frame, and sends the frame to the first logic unit after the verification; the frame includes the frame type, the data type, the data, and the school-risk information; After the unit successfully checks the received frame, the CPU in the main control board is notified to read and perform corresponding processing according to the frame type and data type. The method of claim 7, wherein the CPU in the main control board performs data interaction with the second logic unit of the controlled board to manage and control the controlled board, including a data downlink process, and the data downlink process The method includes: the CPU in the main control board encapsulates the data into a frame, the first logic unit sends the frame to the second logic unit after the frame is diagnosed, and the second logic unit performs the calibration on the received frame. The main control board is informed, and the corresponding operation is performed according to the frame or sent to the corresponding application module for processing; the second logic unit acquires a return result or a status indication of the application module, and determines whether the operation is successful.
PCT/CN2010/079281 2010-07-30 2010-11-30 Device with unified shelf management architecture and management control method thereof WO2012012994A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2010102415858A CN102346501A (en) 2010-07-30 2010-07-30 Equipment with unified machine frame management framework and management control method thereof
CN201010241585.8 2010-07-30

Publications (1)

Publication Number Publication Date
WO2012012994A1 true WO2012012994A1 (en) 2012-02-02

Family

ID=45529376

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/079281 WO2012012994A1 (en) 2010-07-30 2010-11-30 Device with unified shelf management architecture and management control method thereof

Country Status (2)

Country Link
CN (1) CN102346501A (en)
WO (1) WO2012012994A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017032112A1 (en) * 2015-08-26 2017-03-02 中兴通讯股份有限公司 Method for communicating with board having no central processing unit and communication device
CN108304338A (en) * 2017-12-20 2018-07-20 深圳比特微电子科技有限公司 More board managing methods

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793533B (en) * 2014-02-27 2017-12-08 大唐移动通信设备有限公司 A kind of Distributed Data Synchronization method and apparatus
CN104022898A (en) * 2014-05-28 2014-09-03 上海斐讯数据通信技术有限公司 Switch configuration management method
CN104123167B (en) * 2014-08-06 2017-06-23 无锡中微爱芯电子有限公司 MCU method for energizing and starting and its self checking method with configuration words self-checking function
CN105527919A (en) * 2016-01-26 2016-04-27 上海海得控制系统股份有限公司 Parallel bus backboard of PLC controller
CN106326173A (en) * 2016-08-25 2017-01-11 杭州迪普科技有限公司 Data processing method and device
CN107766273B (en) * 2017-11-09 2020-07-31 安徽皖通邮电股份有限公司 Method for realizing data interaction between boards by two-line coding and decoding and localbus mutual conversion
CN111324503B (en) * 2018-12-17 2022-11-04 中兴通讯股份有限公司 Machine frame management device, method and computer readable storage medium
CN111385133A (en) * 2018-12-29 2020-07-07 中兴通讯股份有限公司 Resource management method and system
CN112506848A (en) * 2020-12-03 2021-03-16 中国电子科技集团公司第三十研究所 Information interaction control model and method based on configuration
CN113407396B (en) * 2021-06-10 2022-07-29 杭州加速科技有限公司 ATE chip test-based synchronization method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1665154A (en) * 2004-03-04 2005-09-07 中兴通讯股份有限公司 An embedded system in-band reset method and apparatus thereof
CN1848103A (en) * 2005-04-12 2006-10-18 华为技术有限公司 Method and system for realizing central control of central control unit to single board
CN101631345A (en) * 2009-08-13 2010-01-20 中兴通讯股份有限公司 Method and device for monitoring running state of single plate
CN101741593A (en) * 2008-11-19 2010-06-16 华为技术有限公司 Method for dynamically loading service boards and dynamic loading system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1154046C (en) * 2001-04-06 2004-06-16 华为技术有限公司 Method for testing single board presence
CN101446805A (en) * 2007-11-27 2009-06-03 飞跃中科(台州)数控系统有限公司 Household computerized embroidery machine and method for inputting data therein

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1665154A (en) * 2004-03-04 2005-09-07 中兴通讯股份有限公司 An embedded system in-band reset method and apparatus thereof
CN1848103A (en) * 2005-04-12 2006-10-18 华为技术有限公司 Method and system for realizing central control of central control unit to single board
CN101741593A (en) * 2008-11-19 2010-06-16 华为技术有限公司 Method for dynamically loading service boards and dynamic loading system
CN101631345A (en) * 2009-08-13 2010-01-20 中兴通讯股份有限公司 Method and device for monitoring running state of single plate

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017032112A1 (en) * 2015-08-26 2017-03-02 中兴通讯股份有限公司 Method for communicating with board having no central processing unit and communication device
CN108304338A (en) * 2017-12-20 2018-07-20 深圳比特微电子科技有限公司 More board managing methods

Also Published As

Publication number Publication date
CN102346501A (en) 2012-02-08

Similar Documents

Publication Publication Date Title
WO2012012994A1 (en) Device with unified shelf management architecture and management control method thereof
US8879570B2 (en) Systems and methods for reconfiguring a network adapter in sleep mode
CN110554943B (en) Multi-node server CMC management system and method based on I3C
WO2015131516A1 (en) Distributed intelligent platform management bus connection method and atca frame
US8843689B2 (en) Concurrent repair of the PCIe switch units in a tightly-coupled, multi-switch, multi-adapter, multi-host distributed system
CN105357147B (en) A kind of network-on-chip adaptation unit that high speed is highly reliable
CN106959935B (en) Method compatible with I2C communication and IPMB communication
WO2014056248A1 (en) Lpc2468-based mvb-wtb gateway and working method thereof
WO2023103301A1 (en) Distributed heterogeneous acceleration platform communication method and system, and device and medium
CN110177058B (en) Ethernet switch board state monitoring transceiver based on FPGA
CN107741915A (en) A kind of FPGA plate level communicators and communication means based on SDIO interfaces
CN102447634B (en) Method, device and system for transmitting message
WO2022228408A1 (en) Server management framework and server
US20070124607A1 (en) System and method for semi-automatic power control in component architecture systems
WO2018209513A1 (en) Hard drive operation method and hard drive manager
WO2024113767A1 (en) Power-on method and power-on apparatus for smart network interface cards
JP6197195B2 (en) Apparatus, program, and method
CN102736908B (en) System, the device and method of remotely located CMOS parameters
CN112199211B (en) Communication method between CORBA middleware ORBs based on RapidIO
US9619005B2 (en) Apparatus and method for saving power of USB device
CN109725621A (en) A kind of secondary bus program based on 1553B bus and CAN bus is in line writing method
CN116055347A (en) Computing system and network device management method
JP2021057884A (en) Emulating broadcast in network on chip
CN114510259A (en) Method and device for importing and exporting BIOS configuration based on BMC
CN103927153B (en) A kind of method of system configuration, equipment and system

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: 10855221

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: 10855221

Country of ref document: EP

Kind code of ref document: A1