WO2013149561A1 - Method and device for quick initialization of chip - Google Patents

Method and device for quick initialization of chip Download PDF

Info

Publication number
WO2013149561A1
WO2013149561A1 PCT/CN2013/073367 CN2013073367W WO2013149561A1 WO 2013149561 A1 WO2013149561 A1 WO 2013149561A1 CN 2013073367 W CN2013073367 W CN 2013073367W WO 2013149561 A1 WO2013149561 A1 WO 2013149561A1
Authority
WO
WIPO (PCT)
Prior art keywords
chip
configuration file
xml configuration
initialization
module
Prior art date
Application number
PCT/CN2013/073367
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 WO2013149561A1 publication Critical patent/WO2013149561A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4403Processor initialisation

Definitions

  • the present invention relates to the field of communications, and in particular to a method and apparatus for rapidly initializing a chip.
  • ASIC Application Specific Integrated Circuits
  • NPs Network Processors
  • SRAM Static RAM
  • TCAM Ternary Content Addressable Memory
  • Synchronous Dynamic Random Access Memory which stores various service entries, such as port tables, MAC tables, and routing tables.
  • IPTN's high-end products and Internet Data Center (IDC) put forward very high requirements on network bandwidth.
  • the requirements for the forwarding rate of network chips are also moving toward the 100G target.
  • the current 100G forwarding chip adds the parameter optimization process of the interface to be adapted during the initialization process.
  • These interface parameters include the timing, phase, frequency, etc. of the interfaces. These parameters are different for different boards.
  • the training step for external TCAM, SRAM, and SDRAM is added during the initialization process.
  • the interface timing is adjusted by repeated reading and writing of the external memory. Get the optimal interface parameters.
  • it usually has multiple external interfaces. For example, there may be at least one TCAM interface, three SRAM interfaces, and six SDRAM interfaces. Training on these interfaces (Training)
  • the training time may add up to several minutes, and such a long initialization time is not tolerable for high-speed network equipment. Therefore, a processing method that can quickly initialize the chip is extremely necessary.
  • the configuration file can be used to obtain the adaptation parameters based on the individual boards, so that the chip can be quickly initialized.
  • a fast method for initializing a chip including: activating a quick start mode; reading an XML configuration file, wherein the XML configuration file records an adaptation parameter of an interface to be adapted by the chip;
  • the XML configuration file is used to perform rapid initialization of the chip.
  • the adaptation parameters include timing, phase, and frequency of the interface to be adapted by the chip.
  • the step of performing fast initialization of the chip according to the XML configuration file includes: parsing the XML configuration file; writing the analysis result to the chip register; and performing fast initialization of the chip according to the analysis result stored in the chip register.
  • the chip fast initialization method further includes: activating a normal startup mode; training the chip to be adapted interface and obtaining an adaptation parameter thereof; and writing the adaptation parameter into an XML configuration file.
  • the XML configuration file is stored in the memory device where the power-down content is not lost.
  • a chip fast initialization apparatus including: a mode selection module configured to activate a quick start mode; a configuration parameter reading module configured to read an XML configuration file, wherein the XML configuration The file records the adaptation parameters of the interface to be adapted by the chip; the parsing and initialization module is configured to perform fast initialization of the chip according to the XML configuration file.
  • the adaptation parameters include timing, phase, and frequency of the interface to be adapted by the chip.
  • the parsing and initializing module is configured to perform fast initialization of the chip according to the XML configuration file, including: parsing the XML configuration file; writing the parsing result to a chip register; storing according to the chip register The analysis results are performed for rapid initialization of the chip.
  • the mode selection module is further configured to activate a normal startup mode
  • the chip fast initialization device further includes: a training module, configured to train the chip to be adapted interface and obtain an adaptation parameter thereof; and write the parameter module, set to be The adaptation parameter is written to the XML configuration file; the storage module is configured to store the XML configuration file.
  • the storage module is not easy to lose the storage device for the power-down content.
  • the optimal parameters (adaptive parameters) of the interface to be adapted by the chip are saved.
  • the initialization process allows the user to flexibly choose to enter the normal startup mode or the quick startup mode.
  • the chip to be adapted interface is trained one by one to obtain its adaptation parameters; when the fast startup mode is performed, the preset XML configuration file is directly read, and is read by the XML parsing and initialization module.
  • the XML configuration parameters are directly written into the chip registers.
  • FIG. 2 is a schematic flowchart of a method for rapidly initializing a chip according to an XML configuration file according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of a chip fast initialization device according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of a preferred chip fast initialization device according to an embodiment of the present invention.
  • the selected adaptation parameters can be saved to the XML configuration file during the first initialization process.
  • the XML configuration file is stored in FLASH, SD card, etc.
  • the power-down content is not easily lost in the storage device, and the XML configuration file is directly read during chip initialization, skipping the lengthy parameter selection process and achieving rapid The purpose of the initialization.
  • 1 is a schematic flowchart of a method for rapidly initializing a chip according to an embodiment of the present invention. As shown in FIG.
  • a method for quickly initializing a chip includes: Step S101: Activating a quick start mode; Step S102: Reading an XML a configuration file, where the XML configuration file records an adaptation parameter of the interface to be adapted by the chip; for example, the interface to be adapted of the chip may be an external memory interface of the chip, and It is not difficult to be understood by those skilled in the art that the above-mentioned chip to be adapted interface may also be other parameters that depend on individual boards.
  • Step S103 Perform fast initialization of the chip according to the read XML configuration file.
  • the adaptation parameter may include the timing, phase, and frequency of the interface to be adapted by the chip.
  • step S103 the step of performing fast initialization of the chip according to the XML configuration file includes:
  • FIG. 3 is a schematic flowchart of a method for quickly initializing a chip according to an embodiment of the present invention. As shown in FIG. 3, in the preferred embodiment, before performing all the steps, the method for quickly initializing the chip further includes:
  • the XML configuration file is stored in the storage device that is not easily lost in the power-down content.
  • XML is widely used as a form of cross-platform interaction data, mainly for the content of data, through the different formatting description means (XSLT, CSS, etc.) can complete the final form expression, generate corresponding HTML, PDF or Other file formats.
  • XML defines structure, stores information, and transmits information.
  • Storage format of two parameters named ParamA, ParamB, and values 0x1000, 0x2000 is as follows:
  • the quick initialization device includes: a mode selection module 10, configured to activate a quick start mode; a configuration parameter reading module 20 connected to the mode selection module 10, configured to read an XML configuration file, wherein the XML configuration file records the chip
  • the adaptation parameter of the interface to be adapted in the specific operation, it is used for repeatedly reading and writing the interface to be adapted, so as to select an optimal parameter, wherein the adaptation parameter includes the timing and phase of the interface to be adapted by the chip.
  • the parsing and initialization module 30 is connected to the configuration parameter reading module 20, and is configured to perform fast initialization of the chip according to the XML configuration file.
  • the step of the parsing and initializing module 30 for rapidly initializing the chip according to the XML configuration file includes:
  • FIG. 5 is a schematic diagram of a preferred chip fast initialization device according to an embodiment of the present invention. As shown in FIG. 5, the preferred chip fast initialization device includes: a training module 40 and a write parameter module 50, in addition to all the modules in FIG. And the storage module 60, the preferred device will be described below.
  • the mode selection module 10 is further configured to activate the normal startup mode, and the training module 40 included in the chip fast initialization device is connected to the mode selection module 10, and is configured to train the chip to be adapted and obtain the appropriate a parameter; a parameter module 50, connected to the training module 40, configured to adapt the above The parameter is written to the XML configuration file; the storage module 60 is connected to the write parameter module 50 and the configuration parameter reading module 20, and is configured to store the XML configuration file.
  • the storage module 60 is not easy to lose the storage device for the power-down content.
  • the chip provides a normal startup mode provided by the device, and the workflow is - step 201, start; step 202, the interface to be adapted, read and write repeatedly -> modify parameters -> The process of reading and writing until adaptation parameters such as optimal timing are adapted.
  • This step is the most critical part of the interface training to be adapted. For example, the external DDR SRAM interface is very demanding on timing requirements. Improper parameter selection will seriously affect the interface read/write performance, thus affecting the forwarding performance of the network chip.
  • Step 203 Steps The adaptation parameters adapted to 202 are written into the XML configuration file and saved to the hardware flash firmware; Step 204, transferred to the quick start mode, and the XML configuration file storing the optimal adaptation parameters is directly read from the hardware flash firmware.
  • Step 206 Invoke the XML parser to parse the XML configuration file, and obtain the adaptation parameter of the interface to be adapted;
  • Step 207 Write the obtained adaptation parameter into the chip register;
  • Step 208 The process ends.

Abstract

Disclosed are a method and a device for quick initialization of a chip. The method comprises: activating a quick start mode; reading an XML configuration file, the XML configuration file recording an adaptation parameter of a to-be-adapted interface of a chip; and performing quick initialization for the chip according to the XML configuration file. The present invention utilizes the special characteristics of the XML to save an optimal parameter (adaptation parameter) of the to-be-adapted interface of the chip. In the initialization process, a user may freely select to enter a normal start mode or a quick start mode. During the normal start mode, each to-be-adapted interface of the chip is trained to acquire an adaptation parameter thereof. During the quick start mode, a preset XML configuration file is directly read, and an XML parsing and initialization module reads an XML configuration parameter directly and writes the same into a chip register. By means of the present invention, the initialization time for a chip can be significantly reduced.

Description

一种芯片快速初始化方法及装置  Chip rapid initialization method and device
技术领域 本发明涉及通信领域, 具体而言, 涉及一种芯片快速初始化方法及装置。 背景技术 目前, 网络发展速度惊人, 网络流量的增长及新业务的出现, 需要网络设备具备 线速以及快速灵活的处理能力。 由此, 专用集成电路 (Application Specific Integrated Circuits, 简称为 ASIC) 芯片及 网络处理器(Network Processor, 简称为 NP) 已成为 当今网络设备产品中较为流行的两种芯片选择方案。 在实际应用过程中, 无论 ASIC还是 NP, 其在初始化过程中都需要初始化待适配 接口, 如 SRAM ( Static RAM)、 三态内容寻址存储器 (Ternary Content Addressable Memory,简称为 TCAM)、同步云力态随机存储器 ( Synchronous Dynamic Random Access Memory, 简称为 SDRAM) 等, 这些存储器存放着各种业务表项, 如端口表、 MAC 表、 路由表等。 目前, IPTN的高端产品、 互联网数据中心 (Internet Data Center, 简称为 IDC) 均对网络带宽提出了非常高的要求,对于网络芯片的转发速率的要求也正在朝着 100G 目标迈进。 在此情形之下, 除了对网络芯片的处理速率的要求提高的同时, 也对外部 接口带宽、 时序等提出了极高的要求。 因此目前的 100G转发芯片在初始化过程中都 加入了待适配接口的参数优选过程。 这些接口参数包括接口的时序、 相位、 频率等, 这些参数对于不同的单板其标准是不尽相同的。 对于此类芯片而言, 在其初始化过程中加入了对外部 TCAM、 SRAM、 SDRAM 的训练 (Training) 步骤, 在这一过程中, 通过对外部存储器 (memory) 的反复读写, 调整接口时序, 获取最优的接口参数。 然而, 对于此类实际的芯片而言, 通常情况下其具备多个外部接口, 例如, 可能 至少具备有 1个 TCAM接口, 3个 SRAM接口以及 6个 SDRAM接口,在对这些接口 进行训练(Training) 的处理步骤中, 其训练时间加起来可能长达几分钟的时间, 而如 此之长的初始化时间对于高速的网络设备来讲是不可容忍的。 因此, 一种能够快速实 现对芯片进行初始化的处理方法就显得极为必要。 发明内容 本发明的目的在于提供一种芯片快速初始化方法及装置, 其通过读取存储于掉电 内容不易失存储器件 (例如, FLASH ) 中的可扩展标记语言 (extensible Markup Language, 简称为 XML)配置文件来获取基于个体单板的适配参数, 可以实现芯片的 快速初始化。 根据本发明的一方面, 提供了一种芯片快速初始化方法, 包括: 激活快速启动模 式; 读取 XML配置文件, 其中, 所述 XML配置文件记录了芯片待适配接口的适配参 数; 依据所述 XML配置文件进行芯片的快速初始化。 所述适配参数包括芯片待适配接口的时序、 相位、 频率。 依据所述 XML配置文件进行芯片的快速初始化的步骤包括:对所述 XML配置文 件进行解析; 将所述解析结果写入芯片寄存器; 依据所述芯片寄存器中存储的解析结 果进行芯片的快速初始化。 在执行所有步骤之前, 所述芯片快速初始化方法还包括: 激活正常启动模式; 对 芯片待适配接口进行训练并获取其适配参数; 将所述适配参数写入 XML配置文件。 所述 XML配置文件存储于掉电内容不易失存储器件之中。 根据本发明的另一方面, 提供了一种芯片快速初始化装置, 包括: 模式选取模块, 设置为激活快速启动模式; 配置参数读取模块, 设置为读取 XML配置文件, 其中, 所述 XML配置文件记录了芯片待适配接口的适配参数; 解析及初始化模块, 设置为 依据所述 XML配置文件进行芯片的快速初始化。 所述适配参数包括芯片待适配接口的时序、 相位、 频率。 所述解析及初始化模块, 设置为依据所述 XML配置文件进行芯片的快速初始化 的步骤包括: 对所述 XML配置文件进行解析; 将所述解析结果写入芯片寄存器; 依 据所述芯片寄存器中存储的解析结果进行芯片的快速初始化。 所述模式选取模块还设置为激活正常启动模式,所述芯片快速初始化装置还包括: 训练模块, 设置为对芯片待适配接口进行训练并获取其适配参数; 写参数模块, 设置 为将所述适配参数写入 XML配置文件; 存储模块, 设置为存储所述 XML配置文件。 所述存储模块为掉电内容不易失存储器件。 通过利用 XML特有特性, 保存芯片待适配接口的最优参数 (适配参数)。 初始化 过程中可以让用户灵活选择进入正常启动模式或快速启动模式。 在正常启动模式过程 中, 对芯片待适配接口一一训练以获取其适配参数; 在进行快速启动模式时, 则直接 读取预置好的 XML配置文件, 通过 XML解析及初始化模块读取 XML配置参数直接 写入芯片寄存器中, 采用本发明, 可以大大缩减芯片的初始化时间。 附图说明 图 1为本发明实施例提供的芯片快速初始化方法流程示意图; 图 2为本发明实施例提供的依据 XML配置文件进行芯片的快速初始化的流程示 意图; 图 3为本发明实施例提供的优选芯片快速初始化方法流程示意图; 图 4为本发明实施例提供的芯片快速初始化装置示意图; 图 5为本发明实施例提供的优选芯片快速初始化装置示意图。 具体实施方式 下面结合附图和具体实施例对本发明所述技术方案作进一步的详细描述, 以使本 领域的技术人员可以更好的理解本发明并能予以实施, 但所举实施例不作为对本发明 的限定。 本发明实施例提供了一种芯片快速初始化的方法, 在实际应用中, 由于每个单板 的接口参数不同, 但对于同一块单板其参数是确定的。 因此可以在第一次初始化过程 中将其选优的适配参数保存到 XML配置文件中。在产品发布的时候, 将 XML配置文 件存储到 FLASH、 SD卡等掉电内容不易失存储器件中, 在进行芯片初始化时直接读 取该 XML配置文件, 跳过冗长的参数选优过程而达到快速初始化的目的。 图 1为本发明实施例提供的芯片快速初始化方法流程示意图, 如图 1所述, 本发 明实施例提供的一种芯片快速初始化方法包括: 步骤 S101、 激活快速启动模式; 步骤 S102、 读取 XML配置文件, 其中, 该 XML配置文件记录了芯片待适配接 口的适配参数; 例如, 该芯片待适配接口可以为芯片外部存储器接口, 除此之外, 本 技术领域的技术人员不难想到, 上述芯片待适配接口还可以为其他依赖于个体单板的 参数。 步骤 S103、 依据读取的 XML配置文件进行芯片的快速初始化。 在上述步骤 S102中, 适配参数可以包括芯片待适配接口的时序、 相位、 频率。 图 2为本发明实施例提供的依据 XML配置文件进行芯片的快速初始化的流程示 意图, 如图 2所示, 在上述步骤 S103中, 依据 XML配置文件进行芯片的快速初始化 的步骤包括: The present invention relates to the field of communications, and in particular to a method and apparatus for rapidly initializing a chip. BACKGROUND At present, the development speed of the network is staggering, the growth of network traffic and the emergence of new services require network equipment to have wire speed and fast and flexible processing capability. Therefore, Application Specific Integrated Circuits (ASIC) chips and Network Processors (NPs) have become two popular chip selection solutions in today's network equipment products. In the actual application process, whether it is ASIC or NP, it needs to initialize the interface to be adapted during the initialization process, such as SRAM (Static RAM), Ternary Content Addressable Memory (TCAM), synchronous cloud. Synchronous Dynamic Random Access Memory (SDRAM), which stores various service entries, such as port tables, MAC tables, and routing tables. At present, IPTN's high-end products and Internet Data Center (IDC) put forward very high requirements on network bandwidth. The requirements for the forwarding rate of network chips are also moving toward the 100G target. Under this circumstance, in addition to the increase in the processing rate of the network chip, extremely high requirements are imposed on the bandwidth, timing, and the like of the external interface. Therefore, the current 100G forwarding chip adds the parameter optimization process of the interface to be adapted during the initialization process. These interface parameters include the timing, phase, frequency, etc. of the interfaces. These parameters are different for different boards. For such chips, the training step for external TCAM, SRAM, and SDRAM is added during the initialization process. In this process, the interface timing is adjusted by repeated reading and writing of the external memory. Get the optimal interface parameters. However, for such an actual chip, it usually has multiple external interfaces. For example, there may be at least one TCAM interface, three SRAM interfaces, and six SDRAM interfaces. Training on these interfaces (Training) In the processing steps, the training time may add up to several minutes, and such a long initialization time is not tolerable for high-speed network equipment. Therefore, a processing method that can quickly initialize the chip is extremely necessary. SUMMARY OF THE INVENTION It is an object of the present invention to provide a method and apparatus for rapidly initializing a chip by reading an extensible markup language (XML) stored in a memory device (for example, FLASH) that is not lost in power-down content. The configuration file can be used to obtain the adaptation parameters based on the individual boards, so that the chip can be quickly initialized. According to an aspect of the present invention, a fast method for initializing a chip is provided, including: activating a quick start mode; reading an XML configuration file, wherein the XML configuration file records an adaptation parameter of an interface to be adapted by the chip; The XML configuration file is used to perform rapid initialization of the chip. The adaptation parameters include timing, phase, and frequency of the interface to be adapted by the chip. The step of performing fast initialization of the chip according to the XML configuration file includes: parsing the XML configuration file; writing the analysis result to the chip register; and performing fast initialization of the chip according to the analysis result stored in the chip register. Before performing all the steps, the chip fast initialization method further includes: activating a normal startup mode; training the chip to be adapted interface and obtaining an adaptation parameter thereof; and writing the adaptation parameter into an XML configuration file. The XML configuration file is stored in the memory device where the power-down content is not lost. According to another aspect of the present invention, a chip fast initialization apparatus is provided, including: a mode selection module configured to activate a quick start mode; a configuration parameter reading module configured to read an XML configuration file, wherein the XML configuration The file records the adaptation parameters of the interface to be adapted by the chip; the parsing and initialization module is configured to perform fast initialization of the chip according to the XML configuration file. The adaptation parameters include timing, phase, and frequency of the interface to be adapted by the chip. The parsing and initializing module is configured to perform fast initialization of the chip according to the XML configuration file, including: parsing the XML configuration file; writing the parsing result to a chip register; storing according to the chip register The analysis results are performed for rapid initialization of the chip. The mode selection module is further configured to activate a normal startup mode, and the chip fast initialization device further includes: a training module, configured to train the chip to be adapted interface and obtain an adaptation parameter thereof; and write the parameter module, set to be The adaptation parameter is written to the XML configuration file; the storage module is configured to store the XML configuration file. The storage module is not easy to lose the storage device for the power-down content. By using the XML-specific features, the optimal parameters (adaptive parameters) of the interface to be adapted by the chip are saved. The initialization process allows the user to flexibly choose to enter the normal startup mode or the quick startup mode. During the normal startup mode, the chip to be adapted interface is trained one by one to obtain its adaptation parameters; when the fast startup mode is performed, the preset XML configuration file is directly read, and is read by the XML parsing and initialization module. The XML configuration parameters are directly written into the chip registers. With the present invention, the initialization time of the chips can be greatly reduced. 1 is a schematic flowchart of a method for rapidly initializing a chip according to an embodiment of the present invention; FIG. 2 is a schematic flowchart of a method for rapidly initializing a chip according to an XML configuration file according to an embodiment of the present invention; FIG. 4 is a schematic diagram of a chip fast initialization device according to an embodiment of the present invention; FIG. 5 is a schematic diagram of a preferred chip fast initialization device according to an embodiment of the present invention. The technical solutions of the present invention are further described in detail below in conjunction with the accompanying drawings and specific embodiments, so that those skilled in the art can understand the present invention and can be practiced, but the embodiments are not Limitation of the invention. The embodiment of the present invention provides a method for rapidly initializing a chip. In actual applications, the parameters of each board are different, but the parameters of the same board are determined. Therefore, the selected adaptation parameters can be saved to the XML configuration file during the first initialization process. At the time of product release, the XML configuration file is stored in FLASH, SD card, etc. The power-down content is not easily lost in the storage device, and the XML configuration file is directly read during chip initialization, skipping the lengthy parameter selection process and achieving rapid The purpose of the initialization. 1 is a schematic flowchart of a method for rapidly initializing a chip according to an embodiment of the present invention. As shown in FIG. 1 , a method for quickly initializing a chip according to an embodiment of the present invention includes: Step S101: Activating a quick start mode; Step S102: Reading an XML a configuration file, where the XML configuration file records an adaptation parameter of the interface to be adapted by the chip; for example, the interface to be adapted of the chip may be an external memory interface of the chip, and It is not difficult to be understood by those skilled in the art that the above-mentioned chip to be adapted interface may also be other parameters that depend on individual boards. Step S103: Perform fast initialization of the chip according to the read XML configuration file. In the above step S102, the adaptation parameter may include the timing, phase, and frequency of the interface to be adapted by the chip. 2 is a schematic flowchart of performing fast initialization of a chip according to an XML configuration file according to an embodiment of the present invention. As shown in FIG. 2, in the foregoing step S103, the step of performing fast initialization of the chip according to the XML configuration file includes:
S1031、 对上述 XML配置文件进行解析; S1031, parsing the foregoing XML configuration file;
S1032, 将解析结果写入芯片寄存器; S1033、依据芯片寄存器中存储的解析结果进行芯片的快速初始化。其中, 该解析 结果为芯片待适配接口的适配参数。 其中, 在本技术领域中, 解析 XML文件的方法很多, 本文将不再详细记述其实 现步骤。 图 3为本发明实施例提供的优选芯片快速初始化方法流程示意图, 如图 3所示, 在该优选实施方式下, 在执行所有步骤之前, 该芯片快速初始化方法还包括: S1032, the analysis result is written into the chip register; S1033, the chip is quickly initialized according to the analysis result stored in the chip register. The parsing result is an adaptation parameter of the interface to be adapted by the chip. Among them, there are many methods for parsing XML files in the technical field, and the actual steps will not be described in detail herein. FIG. 3 is a schematic flowchart of a method for quickly initializing a chip according to an embodiment of the present invention. As shown in FIG. 3, in the preferred embodiment, before performing all the steps, the method for quickly initializing the chip further includes:
S00K 激活正常启动模式; S00K activates the normal startup mode;
5002、 对芯片待适配接口进行训练并获取其适配参数; 5002. Train the interface to be adapted by the chip and obtain an adaptation parameter thereof;
5003、 将获取的适配参数写入 XML配置文件, 优选实施方式下, XML配置文件 存储于掉电内容不易失存储器件之中。 其中, XML被广泛用来作为跨平台之间交互数据的形式, 主要针对数据的内容, 通过不同的格式化描述手段(XSLT, CSS等)可以完成最终的形式表达, 生成对应的 HTML, PDF或者其他的文件格式。 5003. Write the obtained adaptation parameters into an XML configuration file. In the preferred implementation manner, the XML configuration file is stored in the storage device that is not easily lost in the power-down content. Among them, XML is widely used as a form of cross-platform interaction data, mainly for the content of data, through the different formatting description means (XSLT, CSS, etc.) can complete the final form expression, generate corresponding HTML, PDF or Other file formats.
XML定义了结构、存储信息、传送信息。例如名为 ParamA、 ParamB,值为 0x1000、 0x2000的两个参数的存储格式如下: XML defines structure, stores information, and transmits information. For example, the storage format of two parameters named ParamA, ParamB, and values 0x1000, 0x2000 is as follows:
< parameter—section > < parameter name TaramA" >0xl000</ parameter > < parameter—section > < parameter name TaramA">0xl000</ parameter >
< parameter name=,TaramB,, >0x2000</ parameter >  < parameter name=,TaramB,, >0x2000</ parameter >
</ parameter—section > 对于 XML, 其为本技术领域的公知常识, 本文对此不做过多赘述, 图 4为本发明实施例提供的芯片快速初始化装置示意图, 如图 4所示, 该芯片快 速初始化装置, 包括: 模式选取模块 10, 设置为激活快速启动模式; 配置参数读取模块 20,连接至上述模式选取模块 10,设置为读取 XML配置文件, 其中, 该 XML配置文件记录了芯片待适配接口的适配参数, 具体操作过程中, 其用 于对待适配接口进行反复读写, 以选取最优参数优选地, 其中, 上述适配参数包括芯 片待适配接口的时序、 相位、 频率。 解析及初始化模块 30, 连接至上述配置参数读取模块 20, 设置为依据上述 XML 配置文件进行芯片的快速初始化。 其中, 该解析及初始化模块 30依据 XML配置文件进行芯片的快速初始化的步骤 包括: </ 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 。 The quick initialization device includes: a mode selection module 10, configured to activate a quick start mode; a configuration parameter reading module 20 connected to the mode selection module 10, configured to read an XML configuration file, wherein the XML configuration file records the chip The adaptation parameter of the interface to be adapted, in the specific operation, it is used for repeatedly reading and writing the interface to be adapted, so as to select an optimal parameter, wherein the adaptation parameter includes the timing and phase of the interface to be adapted by the chip. , frequency. The parsing and initialization module 30 is connected to the configuration parameter reading module 20, and is configured to perform fast initialization of the chip according to the XML configuration file. The step of the parsing and initializing module 30 for rapidly initializing the chip according to the XML configuration file includes:
( 1 ) 对 XML配置文件进行解析; (1) parsing the XML configuration file;
(2) 将解析结果写入芯片寄存器; (2) Write the analysis result to the chip register;
( 3 )依据芯片寄存器中存储的解析结果进行芯片的快速初始化, 其中, 该解析结 果为芯片待适配接口的适配参数。 图 5为本发明实施例提供的优选芯片快速初始化装置示意图, 如图 5所示, 该优 选的芯片快速初始化装置除包括图 4中的所有模块外, 还包括: 训练模块 40、 写参数 模块 50和存储模块 60, 下面对该优选装置进行说明。 优选地, 上述模式选取模块 10还设置为激活正常启动模式, 该芯片快速初始化装 置所包括的训练模块 40,连接至上述模式选取模块 10, 设置为对芯片待适配接口进行 训练并获取其适配参数; 写参数模块 50, 连接至上述训练模块 40, 设置为将上述适配 参数写入 XML配置文件; 存储模块 60, 连接至上述写参数模块 50和配置参数读取模 块 20, 设置为存储 XML配置文件, 优选地, 该存储模块 60为掉电内容不易失存储器 件。 在本发明一实施例中, 其提供的芯片快速初始化装置提供的正常启动模式, 其工 作流程为- 步骤 201、 开始; 步骤 202、对待适配接口训练, 反复进行读写 ->修改参数- >读写的过程, 直到适配 到最优时序等适配参数。 该步骤是待适配接口训练最为关键的部分, 比如外部 DDR SRAM接口对时序要求非常苛刻, 参数选取不当将会严重影响接口读写性能, 从而影 响到网络芯片的转发性能; 步骤 203、将步骤 202适配到的适配参数写入 XML配置文件,并保存到硬件 flash 固件中; 步骤 204、 转入快速启动模式, 直接从硬件 flash固件中读取保存有最优适配参数 的 XML配置文件; 步骤 206、 调用 XML解析器对 XML配置文件进行解析, 获取待适配接口的适配 参数; 步骤 207、 将获取到的适配参数写入芯片寄存器中; 步骤 208、 流程结束。 以上所述仅为本发明的优选实施例, 并非因此限制本发明的专利范围, 凡是利用 本发明说明书及附图内容所作的等效结构或等效流程变换, 或直接或间接运用在其他 相关的技术领域, 均同理包括在本发明的专利保护范围内。 (3) Perform fast initialization of the chip according to the parsing result stored in the chip register, wherein the parsing result is an adaptation parameter of the interface to be adapted by the chip. FIG. 5 is a schematic diagram of a preferred chip fast initialization device according to an embodiment of the present invention. As shown in FIG. 5, the preferred chip fast initialization device includes: a training module 40 and a write parameter module 50, in addition to all the modules in FIG. And the storage module 60, the preferred device will be described below. Preferably, the mode selection module 10 is further configured to activate the normal startup mode, and the training module 40 included in the chip fast initialization device is connected to the mode selection module 10, and is configured to train the chip to be adapted and obtain the appropriate a parameter; a parameter module 50, connected to the training module 40, configured to adapt the above The parameter is written to the XML configuration file; the storage module 60 is connected to the write parameter module 50 and the configuration parameter reading module 20, and is configured to store the XML configuration file. Preferably, the storage module 60 is not easy to lose the storage device for the power-down content. In an embodiment of the present invention, the chip provides a normal startup mode provided by the device, and the workflow is - step 201, start; step 202, the interface to be adapted, read and write repeatedly -> modify parameters -> The process of reading and writing until adaptation parameters such as optimal timing are adapted. This step is the most critical part of the interface training to be adapted. For example, the external DDR SRAM interface is very demanding on timing requirements. Improper parameter selection will seriously affect the interface read/write performance, thus affecting the forwarding performance of the network chip. Step 203: Steps The adaptation parameters adapted to 202 are written into the XML configuration file and saved to the hardware flash firmware; Step 204, transferred to the quick start mode, and the XML configuration file storing the optimal adaptation parameters is directly read from the hardware flash firmware. Step 206: Invoke the XML parser to parse the XML configuration file, and obtain the adaptation parameter of the interface to be adapted; Step 207: Write the obtained adaptation parameter into the chip register; Step 208: The process ends. The above description is only the preferred embodiment of the present invention, and is not intended to limit the scope of the invention, and the equivalent structure or equivalent flow transformation made by the specification and the drawings of the present invention may be directly or indirectly applied to other related The technical field is equally included in the scope of patent protection of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种芯片快速初始化方法, 包括: A method for quickly initializing a chip, comprising:
激活快速启动模式;  Activate the quick start mode;
读取 XML配置文件, 其中, 所述 XML配置文件记录了芯片待适配接口的 适配参数;  Reading an XML configuration file, where the XML configuration file records an adaptation parameter of an interface to be adapted by the chip;
依据所述 XML配置文件进行芯片的快速初始化。  The chip is quickly initialized according to the XML configuration file.
2. 如权利要求 1所述的芯片快速初始化方法, 其中, 所述适配参数包括芯片待适 配接口的时序、 相位、 频率。  2. The chip fast initialization method according to claim 1, wherein the adaptation parameter comprises a timing, a phase, and a frequency of a chip to be adapted.
3. 如权利要求 1所述的芯片快速初始化方法, 其中, 依据所述 XML配置文件进 行芯片的快速初始化的步骤包括:  3. The chip fast initialization method according to claim 1, wherein the step of performing fast initialization of the chip according to the XML configuration file comprises:
对所述 XML配置文件进行解析; 将所述解析结果写入芯片寄存器;  Parsing the XML configuration file; writing the parsing result to a chip register;
依据所述芯片寄存器中存储的解析结果进行芯片的快速初始化。  The fast initialization of the chip is performed according to the analysis result stored in the chip register.
4. 如权利要求 1所述的芯片快速初始化方法, 其中, 在执行所有步骤之前, 还包 括- 激活正常启动模式;  4. The chip fast initialization method according to claim 1, wherein, before performing all the steps, further comprising: activating a normal startup mode;
对芯片待适配接口进行训练并获取其适配参数;  Training the chip to be adapted interface and obtaining its adaptation parameters;
将所述适配参数写入 XML配置文件。  The adaptation parameters are written to an XML configuration file.
5. 如权利要求 1所述的芯片快速初始化方法, 其中, 所述 XML配置文件存储于 掉电内容不易失存储器件之中。  5. The chip fast initialization method according to claim 1, wherein the XML configuration file is stored in a memory device in which the power-down content is not lost.
6. 一种芯片快速初始化装置, 包括: 模式选取模块, 设置为激活快速启动模式;  6. A chip rapid initialization device, comprising: a mode selection module, configured to activate a quick start mode;
配置参数读取模块, 设置为读取 XML配置文件, 其中, 所述 XML配置文 件记录了芯片待适配接口的适配参数; 解析及初始化模块, 设置为依据所述 XML配置文件进行芯片的快速初始 化。  The configuration parameter reading module is configured to read an XML configuration file, wherein the XML configuration file records an adaptation parameter of the interface to be adapted by the chip; and the parsing and initialization module is configured to perform the chip fast according to the XML configuration file. initialization.
7. 如权利要求 6所述的芯片快速初始化装置, 其中, 所述适配参数包括芯片待适 配接口的时序、 相位、 频率。 7. The chip fast initialization device according to claim 6, wherein the adaptation parameter comprises a chip to be adapted Timing, phase, and frequency of the interface.
8. 如权利要求 6所述的芯片快速初始化装置, 其中, 所述解析及初始化模块, 设 置为依据所述 XML配置文件进行芯片的快速初始化的步骤包括: 对所述 XML 配置文件进行解析; 将所述解析结果写入芯片寄存器; 依据所述芯片寄存器中 存储的解析结果进行芯片的快速初始化。  8. The chip fast initialization device according to claim 6, wherein the parsing and initializing module is configured to perform fast initialization of the chip according to the XML configuration file, comprising: parsing the XML configuration file; The parsing result is written into the chip register; the chip is quickly initialized according to the parsing result stored in the chip register.
9. 如权利要求 6所述的芯片快速初始化装置, 其中, 所述模式选取模块还设置为 激活正常启动模式, 所述芯片快速初始化装置还包括:  The chip fast initialization device according to claim 6, wherein the mode selection module is further configured to activate a normal startup mode, and the chip fast initialization device further includes:
训练模块, 设置为对芯片待适配接口进行训练并获取其适配参数; 写参数模块, 设置为将所述适配参数写入 XML配置文件;  a training module, configured to train the chip to be adapted interface and obtain an adaptation parameter thereof; the write parameter module is configured to write the adaptation parameter into the XML configuration file;
存储模块, 设置为存储所述 XML配置文件。  A storage module, configured to store the XML configuration file.
10. 如权利要求 9所述的芯片快速初始化装置, 其中, 所述存储模块为掉电内容不 易失存储器件。  10. The chip fast initialization device according to claim 9, wherein the memory module is a memory device that is not volatile.
PCT/CN2013/073367 2012-04-06 2013-03-28 Method and device for quick initialization of chip WO2013149561A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210099575.4 2012-04-06
CN201210099575.4A CN102662711B (en) 2012-04-06 2012-04-06 A kind of chip fast initializing method and device

Publications (1)

Publication Number Publication Date
WO2013149561A1 true WO2013149561A1 (en) 2013-10-10

Family

ID=46772212

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/073367 WO2013149561A1 (en) 2012-04-06 2013-03-28 Method and device for quick initialization of chip

Country Status (2)

Country Link
CN (1) CN102662711B (en)
WO (1) WO2013149561A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4044029A4 (en) * 2019-11-15 2023-10-11 ZTE Corporation Daughter card initialization method, electronic apparatus, and storage medium

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662711B (en) * 2012-04-06 2017-03-29 中兴通讯股份有限公司 A kind of chip fast initializing method and device
CN105718222B (en) * 2016-01-27 2019-05-28 珠海全志科技股份有限公司 A kind of self-reacting device and method updating DRAM configuration
CN106782266B (en) * 2016-12-31 2020-10-27 歌尔科技有限公司 Display screen drive control method and device and display screen drive control circuit
KR102407439B1 (en) * 2017-12-05 2022-06-10 삼성전자주식회사 Method of training drive strength, odt of memory device, computing system performing the same and system on chip performing the same
CN109766133A (en) * 2018-12-29 2019-05-17 合肥杰发科技有限公司 A kind of system and its initial method of built-in embedded unit
CN110007970A (en) * 2019-03-04 2019-07-12 湖北三江航天万峰科技发展有限公司 A kind of kernel starting duration optimization method of COMe plate
CN110798827B (en) * 2019-10-29 2022-04-29 恒宝股份有限公司 eSIM card and initialization method thereof
CN112965754B (en) * 2019-12-13 2023-04-18 合肥杰发科技有限公司 System starting method and embedded device
CN112131172A (en) * 2020-08-28 2020-12-25 中国船舶重工集团公司第七0九研究所 PCIe equipment chip initialization method for reducing time delay
CN115905070B (en) * 2023-03-03 2023-07-04 北京金橙子科技股份有限公司 Adaptation method, adaptation device and storable medium of laser control interface
CN117389657A (en) * 2023-12-12 2024-01-12 荣耀终端有限公司 Electronic equipment starting method, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060245275A1 (en) * 2005-04-14 2006-11-02 Koji Naito Chip enable control circuit, memory control circuit, and data processing system
CN101135974A (en) * 2006-08-28 2008-03-05 中兴通讯股份有限公司 Device and method capable of improving starting speed of chip
CN101364175A (en) * 2008-07-02 2009-02-11 深圳国人通信有限公司 Configuration method and device for embedded system
CN102314354A (en) * 2010-06-30 2012-01-11 无锡中星微电子有限公司 Embedded system starting method and embedded device
CN102662711A (en) * 2012-04-06 2012-09-12 中兴通讯股份有限公司 Method and device for quickly initiating chip

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1256668C (en) * 2002-11-29 2006-05-17 联想(北京)有限公司 Operating system automatically installing method applying Linux

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060245275A1 (en) * 2005-04-14 2006-11-02 Koji Naito Chip enable control circuit, memory control circuit, and data processing system
CN101135974A (en) * 2006-08-28 2008-03-05 中兴通讯股份有限公司 Device and method capable of improving starting speed of chip
CN101364175A (en) * 2008-07-02 2009-02-11 深圳国人通信有限公司 Configuration method and device for embedded system
CN102314354A (en) * 2010-06-30 2012-01-11 无锡中星微电子有限公司 Embedded system starting method and embedded device
CN102662711A (en) * 2012-04-06 2012-09-12 中兴通讯股份有限公司 Method and device for quickly initiating chip

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4044029A4 (en) * 2019-11-15 2023-10-11 ZTE Corporation Daughter card initialization method, electronic apparatus, and storage medium

Also Published As

Publication number Publication date
CN102662711B (en) 2017-03-29
CN102662711A (en) 2012-09-12

Similar Documents

Publication Publication Date Title
WO2013149561A1 (en) Method and device for quick initialization of chip
US9456229B2 (en) Parsing single source content for multi-channel publishing
TWI590059B (en) Buses for pattern-recognition processors
TWI592807B (en) Method and device for web style address merge
TW201022951A (en) Methods and systems for directly connecting devices to microcontrollers
WO2015074548A1 (en) Method for sound control in browser, and browser
CN104657366B (en) The method, apparatus and log disaster tolerance system of massive logs write-in database
TW200422881A (en) Method and computer-readable medium for importing and exporting hierarchically structured data
WO2013143402A1 (en) Cookie information sharing method and system
EP3902266A1 (en) Processing method for dragging video data and proxy server
KR20050097446A (en) Xml processor having function for filtering tree path, method for filtering tree path and recording medium storing a program to implement thereof
WO2021051624A1 (en) Data acquisition method and apparatus, and electronic device and storage medium
CN104078069B (en) Document play-back method and equipment based on DLNA
WO2015154682A1 (en) Network request processing method, network server, and network system
JP3905851B2 (en) Structured document segmentation method and program
EP3804244A1 (en) Systems and methods for transport layer processing of server message block protocol messages
US20120041998A1 (en) Network Interface for Accelerating XML Processing
CN101526964A (en) Method for preventing webpage access identification information loss and device thereof
WO2014146542A1 (en) Generation method and device for interface function of table entry operation and computer storage medium
US20230106217A1 (en) Web-end video playing method and apparatus, and computer device
US20120151010A1 (en) Electronic device and method for playing media content
CN107204961A (en) The treating method and apparatus of ESC is needed in interface packets
US9430034B2 (en) Data communication on a virtual machine
CN106775643B (en) Application file packaging system and method with channel data
WO2013143379A1 (en) Microblog-based document file sharing method and device

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

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

Country of ref document: EP

Kind code of ref document: A1