CN102662711B - A kind of chip fast initializing method and device - Google Patents

A kind of chip fast initializing method and device Download PDF

Info

Publication number
CN102662711B
CN102662711B CN201210099575.4A CN201210099575A CN102662711B CN 102662711 B CN102662711 B CN 102662711B CN 201210099575 A CN201210099575 A CN 201210099575A CN 102662711 B CN102662711 B CN 102662711B
Authority
CN
China
Prior art keywords
chip
configuration file
xml configuration
fast
initialization
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CN201210099575.4A
Other languages
Chinese (zh)
Other versions
CN102662711A (en
Inventor
姜海明
刘建成
张宝亚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201210099575.4A priority Critical patent/CN102662711B/en
Publication of CN102662711A publication Critical patent/CN102662711A/en
Priority to PCT/CN2013/073367 priority patent/WO2013149561A1/en
Application granted granted Critical
Publication of CN102662711B publication Critical patent/CN102662711B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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

Abstract

The invention discloses a kind of chip fast initializing method and device, methods described includes:Activation fast attack mode;XML configuration file is read, wherein, the XML configuration file have recorded the adaptation parameter that chip treats adaptable interface;The fast initialization of chip is carried out according to the XML configuration file.The present invention utilizes the peculiar characteristics of XML, preserves the optimized parameter (adaptation parameter) that chip treats adaptable interface.User flexibility can be allowed in initialization procedure to select into normal startup mode or fast attack mode.During normal startup mode, treat that to chip adaptable interface trains to obtain its adaptation parameter one by one;When fast attack mode is carried out, then the XML configuration file for preseting is directly read, parsed by XML and initialization module reads XML configuration parameters and writes direct in chip register, using the present invention, the initialization time of chip can be reduced significantly.

Description

A kind of chip fast initializing method and device
Technical field
The present invention relates to the communications field, in particular to a kind of chip fast initializing method and device.
Background technology
At present, network Development speed is surprising, the growth of network traffics and the appearance of new business, needs the network equipment to possess line The disposal ability of speed and fast and flexible.Thus, ASIC (Application Specific Integrated Circuits, Special IC) chip and NP (Network Processor, network processing unit) become in current network equipment product compared with For two kinds of popular chip selection schemes.
In actual application, no matter ASIC or NP, which is required for initializing in initialization procedure treats that adaptation connects Mouthful, (Ternary Content Addressable Memory, three-state content addressing are deposited for such as SRAM (Static RAM), TCAM Reservoir), SDRAM (Synchronous Dynamic Random Access Memory, synchronous DRAM) etc., this A little memorizeies deposit miscellaneous service list item, such as port table, MAC table, routing table etc..
At present, the high-end product of IPTN, IDC (Internet Data Center, Internet data center) are to network Bandwidth proposes very high requirement, for the requirement of the forwarding rate of network chip is also being strided forward towards 100G targets. Under this situation, while raising except the requirement of the processing speed to network chip, also outside interface bandwidth, sequential etc. are carried High requirement is gone out.Therefore current 100G forwarding chips are all added in initialization procedure and treat that the parameter of adaptable interface is excellent Select process.These interface parameters include the sequential of interface, phase place, frequency etc., and for different veneers, its standard is these parameters It is not quite similar.
For such chip, the training to outside TCAM, SRAM, SDRAM is added in its initialization procedure (Training) step, in this course, by the read-write repeatedly to external memory storage (memory), adjusts interface sequence, Obtain optimum interface parameters.
However, for such actual chip, which possesses multiple external interfaces under normal circumstances, such as may be at least Possessing has 1 TCAM interface, 3 SRAM interfaces and 6 sdram interfaces, is being trained (Training) to these interfaces Process step in, its training time adds up the time that may be up to a few minutes, and so long initialization time for It is intolerable for the network equipment of high speed.Therefore, one kind quickly can be realized carrying out initialized process side to chip Method just seems extremely necessary.
The content of the invention
It is an object of the invention to provide a kind of chip fast initializing method and device, which passes through reading and is stored in power down XML (eXtensible Markup Language, extensible markup language in content nonvolatile memory part (such as FLASH) Speech) configuration file to be obtaining the adaptation parameter based on individual veneer, it is possible to achieve the fast initialization of chip.
In order to reach the purpose of the present invention, the present invention employs the following technical solutions realization:
A kind of chip fast initializing method, including:
Activation fast attack mode;
XML configuration file is read, wherein, the XML configuration file have recorded the adaptation parameter that chip treats adaptable interface, institute Stating adaptation parameter includes that chip treats the sequential of adaptable interface, phase place, frequency;
The fast initialization of chip is carried out according to the XML configuration file.
Preferably, the step of carrying out the fast initialization of chip according to the XML configuration file includes:
The XML configuration file is parsed;
The analysis result is write into chip register;
The fast initialization of chip is carried out according to the analysis result stored in the chip register.
Preferably, before all steps are performed, the chip fast initializing method also includes:
Activation normal startup mode;
Treat that to chip adaptable interface is trained and obtain its adaptation parameter;
The adaptation parameter is write into XML configuration file.
Chip fast initializing method, among the XML configuration file is stored in power down content nonvolatile memory part.
A kind of chip fast initialization device, including:
Pattern chooses module, for activating fast attack mode;
Configuration parameter read module, for reading XML configuration file, wherein, the XML configuration file have recorded chip and treat The adaptation parameter of adaptable interface, the adaptation parameter include that chip treats the sequential of adaptable interface, phase place, frequency;
Parsing and initialization module, for the fast initialization of chip is carried out according to the XML configuration file.
Preferably, the parsing and initialization module carry out the fast initialization of chip according to the XML configuration file Step includes:
The XML configuration file is parsed;
The analysis result is write into chip register;
The fast initialization of chip is carried out according to the analysis result stored in the chip register.
Preferably, the pattern is chosen module and is additionally operable to activate normal startup mode, the chip fast initialization device Also include:
Training module, for treating that to chip adaptable interface is trained and obtaining its adaptation parameter;
Write parameters module, for the adaptation parameter is write XML configuration file;
Memory module, for storing the XML configuration file.
Preferably, the memory module is power down content nonvolatile memory part.
The present invention can be seen that using the peculiar characteristics of XML by the technical scheme of the invention described above, preserve chip and wait to be adapted to The optimized parameter (adaptation parameter) of interface.User flexibility can be allowed in initialization procedure to select into normal startup mode or quick Start-up mode.During normal startup mode, treat that to chip adaptable interface trains to obtain its adaptation parameter one by one;Carry out During fast attack mode, then the XML configuration file for preseting is directly read, parsed by XML and initialization module reads XML and matches somebody with somebody Put parameter to write direct in chip register, using the present invention, the initialization time of chip can be reduced significantly.
Description of the drawings
Fig. 1 is chip fast initializing method schematic flow sheet provided in an embodiment of the present invention;
Fig. 2 is that the flow process of the fast initialization that chip is carried out according to XML configuration file provided in an embodiment of the present invention is illustrated Figure;
Fig. 3 is chip fast initialization schematic device provided in an embodiment of the present invention.
The realization of the object of the invention, functional characteristics and excellent effect, below in conjunction with specific embodiment and accompanying drawing do into The explanation of one step.
Specific embodiment
Technical scheme of the present invention is described in further detail with specific embodiment below in conjunction with the accompanying drawings, so that this The technical staff in field can be better understood from the present invention and can be practiced, but illustrated embodiment is not as the limit to the present invention It is fixed.
A kind of method of chip fast initialization is embodiments provided, in actual applications, due to each veneer Interface parameters it is different, but for same veneer its parameter is to determine.Therefore can in first time initialization procedure incite somebody to action Which selects excellent adaptation parameter to be saved in XML configuration file.When product is issued, XML configuration file storage is arrived In the power down content nonvolatile memory part such as FLASH, SD card, the XML configuration file is directly read when chip initiation is carried out, Skip tediously long optimization of parameters process and reach the purpose of fast initialization.
As described in Figure 1, a kind of chip fast initializing method provided in an embodiment of the present invention, including:
S101, activation fast attack mode;
S102, reading XML configuration file, wherein, the XML configuration file have recorded the adaptation ginseng that chip treats adaptable interface Number;For example, the chip treats that adaptable interface can be chip exterior memory interface, in addition, the technology of the art Personnel are it is contemplated that the chip treats that adaptable interface can also depend on the parameter of individual veneer for other.
S103, the fast initialization that chip is carried out according to the XML configuration file.
In step S102, the adaptation parameter includes that chip treats the sequential of adaptable interface, phase place, frequency.
With reference to Fig. 2, the step of the fast initialization of chip in step S103, is carried out according to the XML configuration file Suddenly include:
S1031, the XML configuration file is parsed;
S1032, by the analysis result write chip register;
S1033, the fast initialization that chip is carried out according to the analysis result stored in the chip register.Wherein, institute State analysis result and treat for chip the adaptation parameter of adaptable interface.
Wherein, in the art, the method for parsing XML file is a lot, no longer will describe which herein in detail and realize step Suddenly.
With continued reference to Fig. 1, under preferred implementation, before all steps are performed, the chip fast initializing method Also include:
S001, activation normal startup mode;
S002, treat that to chip adaptable interface is trained and obtain its adaptation parameter;
S003, the adaptation parameter is write into XML configuration file, under preferred implementation, XML configuration file storage Among power down content nonvolatile memory part.
Wherein, XML is widely used for the form as interaction data between cross-platform, mainly for the content of data, leads to Cross different Green Formula means (XSLT, CSS etc.) and final form expression can be completed, generate corresponding HTML, PDF or Person's others file format.
XML definition structure, storage information, transmission information.Such as entitled ParamA, ParamB, be worth for 0x1000, The storage format of two parameters of 0x2000 is as follows:
For XML, which is the common knowledge of the art, this is not done excessively repeat herein,
Correspondingly, as shown in figure 3, the embodiment of the present invention additionally provides a kind of chip fast initialization device, including:
Pattern chooses module 10, for activating fast attack mode;
Configuration parameter read module 20, for reading XML configuration file, wherein, the XML configuration file have recorded chip The adaptation parameter of adaptable interface is treated, in specific operation process, which is used to treating adaptable interface is read and write repeatedly, to choose optimum Parameter preferably, wherein, the adaptation parameter includes that chip treats the sequential of adaptable interface, phase place, frequency.
Parsing and initialization module 30, for the fast initialization of chip is carried out according to the XML configuration file.
Wherein, the parsing and initialization module 30 carry out the fast initialization of chip according to the XML configuration file Step includes:
(1) XML configuration file is parsed;
(2) analysis result is write into chip register;
(3) fast initialization of chip is carried out according to the analysis result stored in the chip register, wherein, the solution Analysis result treats the adaptation parameter of adaptable interface for chip.
Preferably, the pattern is chosen module 10 and is additionally operable to activate normal startup mode, the chip fast initialization dress Putting also includes:
Training module 40, for treating that to chip adaptable interface is trained and obtaining its adaptation parameter;
Write parameters module 50, for the adaptation parameter is write XML configuration file;
Memory module 60, for storing the XML configuration file, it is preferable that the memory module 60 be power down content not Volatile memory unit.
In an embodiment of the present invention, the normal startup mode that the chip fast initialization device which provides is provided, its work As flow process it is:
Step 201, beginning;
Step 202, treat adaptable interface training, be repeated read-write->Modification parameter->The process of read-write, until adaptation To adaptation parameters such as optimum timings.The step is to treat that adaptable interface trains the most key part, such as outside DDRSRAM interfaces Very harsh to timing requirements, parameter selection is improper will to have a strong impact on interface readwrite performance, so as to have influence on network chip Forwarding performance;
Step 203, the adaptation parameter that step 202 is fitted to write XML configuration file, and it is solid to be saved in hardware flash In part;
Step 204, fast attack mode is proceeded to, directly have optimal fit parameter from reading and saving in hardware flash firmwares XML configuration file;
Step 206, call XML resolver are parsed to XML configuration file, and the adaptation parameter of adaptable interface is treated in acquisition;
Step 207, by the adaptation parameter for getting write chip register in;
Step 208, flow process terminate.
The preferred embodiments of the present invention are the foregoing is only, the scope of the claims of the present invention, every utilization is not thereby limited Equivalent structure or equivalent flow conversion that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other correlations Technical field, be included within the scope of the present invention.

Claims (4)

1. a kind of chip fast initializing method, it is characterised in that include:
Activation fast attack mode;
XML configuration file is read, wherein, the XML configuration file have recorded the adaptation parameter that chip treats adaptable interface, described suitable Include that chip treats the sequential of adaptable interface, phase place, frequency with parameter;
The fast initialization of chip is carried out according to the XML configuration file, the quick of chip is carried out according to the XML configuration file Initialized step includes:The XML configuration file is parsed;The analysis result is write into chip register;Foundation The analysis result stored in the chip register carries out the fast initialization of chip;
Before all steps are performed, also include:Activation normal startup mode;Treat that to chip adaptable interface is trained and obtains Its adaptation parameter;The adaptation parameter is write into XML configuration file.
2. chip fast initializing method as claimed in claim 1, it is characterised in that the XML configuration file is stored in Among electric content nonvolatile memory part.
3. a kind of chip fast initialization device, it is characterised in that include:
Pattern chooses module, for activating fast attack mode;
Configuration parameter read module, for reading XML configuration file, wherein, the XML configuration file have recorded chip and wait to be adapted to The adaptation parameter of interface, the adaptation parameter include that chip treats the sequential of adaptable interface, phase place, frequency;
Parsing and initialization module, for carrying out the fast initialization of chip according to the XML configuration file, the parsing and just The step of beginningization module carries out the fast initialization of chip according to the XML configuration file includes:The XML configuration file is entered Row parsing;The analysis result is write into chip register;Core is carried out according to the analysis result stored in the chip register The fast initialization of piece;
The pattern is chosen module and is additionally operable to activate normal startup mode, and the chip fast initialization device also includes:Training Module, for treating that to chip adaptable interface is trained and obtaining its adaptation parameter;Write parameters module, for the adaptation is joined Number write XML configuration file;Memory module, for storing the XML configuration file.
4. chip fast initialization device as claimed in claim 3, it is characterised in that the memory module be power down content not Volatile memory unit.
CN201210099575.4A 2012-04-06 2012-04-06 A kind of chip fast initializing method and device Expired - Fee Related CN102662711B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210099575.4A CN102662711B (en) 2012-04-06 2012-04-06 A kind of chip fast initializing method and device
PCT/CN2013/073367 WO2013149561A1 (en) 2012-04-06 2013-03-28 Method and device for quick initialization of chip

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN102662711A CN102662711A (en) 2012-09-12
CN102662711B true CN102662711B (en) 2017-03-29

Family

ID=46772212

Family Applications (1)

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

Country Status (2)

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

Families Citing this family (12)

* 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
CN112817641A (en) * 2019-11-15 2021-05-18 中兴通讯股份有限公司 Daughter card initialization method, electronic device and storage medium
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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1504880A (en) * 2002-11-29 2004-06-16 联想(北京)有限公司 Operating system automatically installing method applying Linux
CN102314354A (en) * 2010-06-30 2012-01-11 无锡中星微电子有限公司 Embedded system starting method and embedded device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006293889A (en) * 2005-04-14 2006-10-26 Oki Electric Ind Co Ltd Chip enable control circuit, memory control circuit, and data processing system
CN100472444C (en) * 2006-08-28 2009-03-25 中兴通讯股份有限公司 Device and method capable of improving starting speed of chip
CN101364175B (en) * 2008-07-02 2013-11-20 深圳国人通信有限公司 Configuration method and device for embedded system
CN102662711B (en) * 2012-04-06 2017-03-29 中兴通讯股份有限公司 A kind of chip fast initializing method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1504880A (en) * 2002-11-29 2004-06-16 联想(北京)有限公司 Operating system automatically installing method applying Linux
CN102314354A (en) * 2010-06-30 2012-01-11 无锡中星微电子有限公司 Embedded system starting method and embedded device

Also Published As

Publication number Publication date
WO2013149561A1 (en) 2013-10-10
CN102662711A (en) 2012-09-12

Similar Documents

Publication Publication Date Title
CN102662711B (en) A kind of chip fast initializing method and device
CN104238991B (en) Phonetic entry matching process and device
US20070204075A1 (en) System and method for reducing command scheduling constraints of memory circuits
CN105487987B (en) A kind of concurrent sequence of processing reads the method and device of IO
ATE355695T1 (en) VIRTUAL NETWORK ADDRESSES
CN104965676B (en) A kind of access method of random access memory, device and control chip
CN103106166A (en) Peripheral component interface express (PCIE) internet protocol (IP) core user logic interface design method unrelated to protocol and capable of supporting target read-write operation
CN109358908A (en) A kind of method, apparatus and storage medium of the SPD information obtaining memory bar
CN102629235B (en) It is a kind of to improve the method that DDR memory reads and writes speed
CN108198549A (en) A kind of apparatus control method, device, storage medium, server and user terminal
CN105956188A (en) Method for importing and exporting binary file among different types of databases
CN107135189A (en) A kind of file transmitting method and physical machine
CN104598192A (en) Information processing method and electronic equipment
CN102902719A (en) Voice-control webpage browsing method for embedded browser
CN104461956B (en) The method of access synchronized dynamic RAM, apparatus and system
CN104615697B (en) A kind of webpage level remembers return method
CN107092474A (en) Program developing method, ETL processing method and processing devices
CN104426964B (en) Data transmission method, device and terminal, computer storage media
CN104516740B (en) A kind of function calling method, device and mobile terminal
CN103176801A (en) Method and device for generating table entry operation-interface function
CN106598571A (en) Terminal control method and device
CN105183567B (en) Cloud evidence obtaining evidence acquisition methods based on shared drive and system
CN109841259A (en) Improve the method and device of NOR type storage array reading speed
CN108447484A (en) The method and apparatus of set-top box control
CN104461709B (en) The control method and device of task scheduling

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170329

Termination date: 20200406

CF01 Termination of patent right due to non-payment of annual fee