+

WO2011157119A1 - Auto-configuration method and device for registers of chip - Google Patents

Auto-configuration method and device for registers of chip Download PDF

Info

Publication number
WO2011157119A1
WO2011157119A1 PCT/CN2011/074951 CN2011074951W WO2011157119A1 WO 2011157119 A1 WO2011157119 A1 WO 2011157119A1 CN 2011074951 W CN2011074951 W CN 2011074951W WO 2011157119 A1 WO2011157119 A1 WO 2011157119A1
Authority
WO
WIPO (PCT)
Prior art keywords
chip
configuration
default
configurations
register
Prior art date
Application number
PCT/CN2011/074951
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 WO2011157119A1 publication Critical patent/WO2011157119A1/en

Links

Images

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/4411Configuring for operating with peripheral devices; Loading of device drivers

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to a method and apparatus for automatically configuring registers of a chip.
  • the values of all the internal registers will be restored to a set value. If the value set above cannot satisfy the current working state of the chip, the electronic device The CPU needs to change the value of the register in the chip according to the current working state of the above chip.
  • a method for configuring a register of a chip in the prior art is: after the chip is powered on or after the hard reset is completed, the CPU of the electronic device configures the values of all the registers in the chip to a required default value.
  • the inventors have found that the above method for configuring a register of a chip in the prior art has at least the following problem: since an electronic device includes many chips, each chip includes many registers, and thus, the CPU It takes a lot of time and resources to complete the configuration of the registers in the chip, and the startup process of the chip takes a long time.
  • Embodiments of the present invention provide a method and apparatus for automatically configuring registers of a chip to reduce the amount of work required by the CPU to configure registers of the chip.
  • a method for automatically configuring a register of a chip including:
  • a set of default configurations that meet the current working state of the chip are selected according to the obtained configuration number information, wherein each preset default configuration corresponds to one configuration. number;
  • the chip automatically configures the registers of the chip according to the selected default configuration.
  • a device for configuring a register of a chip comprising:
  • the default configuration acquisition module is configured to select, according to the obtained configuration number information, a set of default configurations that meet the current working state of the chip according to the obtained configuration number information, wherein each set of pre-settings is configured according to the obtained configuration number information.
  • the register configuration module is configured to configure a register of the chip according to the default configuration selected by the default configuration acquisition module.
  • the embodiment of the present invention can configure multiple different default configurations for the chip, so that after the chip is powered on or after the hard reset is completed, the multiple defaults can be determined according to the foregoing multiple sets. Configure the configuration of the fast auto-complete register.
  • FIG. 1 is a process flow diagram of a method for automatically configuring a register of a chip according to Embodiment 1;
  • FIG. 2 is a structural diagram of an apparatus for automatically configuring a register of a chip according to an embodiment of the present invention.
  • the chip in the electronic device selects a set of default configurations from multiple sets of different default configurations according to the obtained configuration number information.
  • the registers of the chip are then configured in accordance with the selected default configuration.
  • the processing flow of the method for automatically configuring the registers of the chip provided by this embodiment is as shown in FIG. 1 , and includes the following steps:
  • Step 11 Pre-configure the chip with multiple different default configurations.
  • each set of different preset default configurations is configured for each chip according to different working states of the chips in the electronic device, and the preset default configuration may include at least one set of user-defined configurations.
  • the plurality of different preset default configurations may be configured by the CPU of the electronic device according to default values of respective registers in different working states of the chip, and each set of default configurations may set a uniform default value for all registers in the chip. It is also possible to set different default values for each register.
  • the above user-defined configuration is set by the user through the CPU of the electronic device as needed.
  • Each set of default configurations corresponds to a configuration number, and all preset default configurations and their configuration numbers are stored in non-volatile memory in the chip.
  • the user-defined configuration can be saved in the editable non-in-chip. In the volatile memory, in actual applications, the user can modify the user-defined configuration through the CPU at any time.
  • Step 12 After the chip is powered on or after the hard reset is completed, select a default configuration from the plurality of preset default configurations that can satisfy the current working state of the chip, and select each register in the chip according to the selected default configuration. Configure it.
  • the chip After the chip is powered on or after the hard reset is completed, the chip obtains the plurality of preset default configurations configured for the chip, and selects a default configuration that satisfies the current working state of the chip from the plurality of preset default configurations.
  • the selected default configuration is loaded into an internal register, ie each register in the chip is configured according to a default set of values in the selected default configuration.
  • the chip selects a set of default configurations from the above multiple preset default configurations, including the following two methods:
  • the first method the CPU transmits the specified configuration number information to the chip through the CPU interface of the chip, and the chip reads a set from the preset default configuration in the internal non-volatile memory according to the specified configuration number information. default allocation.
  • the second method the single board hardware connects the specified one or more hardware pins on the chip to the high and low levels, wherein the number of the hardware pins can be set according to actual needs.
  • the chip can automatically read the high and low values connected by the specified hardware pins, and match the value of the high and low levels to a configuration number according to the configuration number information.
  • a set of default configurations is selected from a plurality of different preset default configurations saved in the chip's memory.
  • the CPU transmits a set of user-specified configuration information to the chip through the CPU interface of the chip, and the chip is configured according to the configuration information specified by the user.
  • Each register is configured with a corresponding specified value. Then, the above new user-specified configuration and corresponding configuration number are saved in the non-volatile memory of the chip.
  • the configuration of the register can be quickly and automatically completed according to the multiple sets of different default configurations after the chip is powered on or after the hard reset is completed.
  • the embodiment of the present invention further provides a device for automatically configuring a register of a chip, and the device is disposed in a chip, and the specific implementation structure is as shown in FIG. 2, which may specifically include:
  • the default configuration obtaining module 22 is configured to select, according to the obtained configuration number information, a set of default configurations that meet the current working state of the chip according to the obtained configuration number information, where each set is obtained.
  • the default default configuration corresponds to a configuration number
  • the register configuration module 23 is configured to configure a register of the chip according to the default configuration selected by the default configuration acquisition module.
  • the device further includes:
  • the default configuration saving module 21 is configured to save a plurality of different pre-default configurations pre-configured to the chip and a configuration number of each preset default configuration, where the multiple preset default configurations include at least one set of user-defined configurations. And can be written by the user as needed; the default configuration save module includes an editable non-volatile memory for saving the at least one set of user-defined configurations, and each set of default settings is given to the chip All registers are set to a uniform default value or different default values are set for each register in the chip.
  • the default configuration obtaining module 22 includes at least one of the first obtaining module 221 and the second obtaining module 222.
  • the first obtaining module 221 is configured to: after the chip is powered on or after the hard reset is completed, the chip receives the specified configuration number information sent by the central processing unit in the electronic device, and uses the specified configuration number information from the chip. Select a default configuration from among the different sets of default configurations saved in the memory;
  • the second obtaining module 222 is configured to read, after the chip is powered on or after the hard reset is completed, the chip reads a high and low value connected by a specified number of hardware pins on the chip, according to the height
  • the value of the level is matched to a configuration number, and a set of default configurations is selected from a plurality of different default configurations saved in the memory of the chip according to the configuration number information.
  • the storage medium may be a magnetic disk, an optical disk, or a read-only storage memory (Read-Only) Memory, ROM) or Random Access Memory (RAM).
  • the configuration of the register can be quickly and automatically completed according to the multiple sets of different default configurations after the chip is powered on or after the hard reset is completed.
  • the embodiment of the invention can save the custom configuration set by the user, and can enable the chip to complete the configuration of the chip register when the CPU of the electronic device does not participate or participate in a small amount, thereby reducing the occupation time of the CPU. Fast configuration of the chip to complete the fast start of the board.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

A configuration method and device for registers of a chip are provided. The method mainly includes: after the chip is powered up or hard reset is completed, according to the acquired configuration number information, selecting a set of default configuration which meets the current operating status of the chip from several sets of preset default configurations, in which each set of preset default configuration is corresponding to a configuration number respectively; the chip configures the registers of the chip automatically according to the selected default configuration. By configuring several sets of different default configurations for the chip, the technical solution can complete the configuration of the registers quickly and automatically according to the several sets of different default configurations after the chip is powered up or the hard reset is completed.

Description

对芯片的寄存器进行自动配置的方法和装置  Method and apparatus for automatically configuring registers of a chip
本申请要求于2010年6月13日提交中国专利局、申请号为201010204861.3、发明名称为“对芯片的寄存器进行自动配置的方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201010204861.3, entitled "Method and Apparatus for Automatic Configuration of Registers of Chips", which is filed on June 13, 2010, the entire contents of which are incorporated by reference. In this application.
技术领域Technical field
本发明涉及电子技术领域,尤其涉及一种对芯片的寄存器进行自动配置的方法和装置。The present invention relates to the field of electronic technologies, and in particular, to a method and apparatus for automatically configuring registers of a chip.
背景技术Background technique
电子设备中的芯片在上电后或硬复位完成后,其内部的所有寄存器的值将会恢复到一个设定的值,如果上述设定的值不能满足芯片的当前工作状态,则电子设备的CPU需要根据上述芯片的当前工作状态去改变芯片中的寄存器的值。After the chip in the electronic device is powered on or after the hard reset is completed, the values of all the internal registers will be restored to a set value. If the value set above cannot satisfy the current working state of the chip, the electronic device The CPU needs to change the value of the register in the chip according to the current working state of the above chip.
现有技术中一种对芯片的寄存器进行配置的方法为:在芯片上电后或硬复位完成后,由电子设备的CPU将芯片中的所有寄存器的值都配置到一个需要的默认值。A method for configuring a register of a chip in the prior art is: after the chip is powered on or after the hard reset is completed, the CPU of the electronic device configures the values of all the registers in the chip to a required default value.
在实现本发明过程中,发明人发现上述现有技术中的对芯片的寄存器进行配置的方法至少存在如下问题:由于一个电子设备中包括很多芯片,每个芯片中又包括很多寄存器,因此,CPU需要消耗大量的时间和资源来完成芯片中的寄存器的配置工作,芯片的启动过程需要消耗比较长的时间。In the process of implementing the present invention, the inventors have found that the above method for configuring a register of a chip in the prior art has at least the following problem: since an electronic device includes many chips, each chip includes many registers, and thus, the CPU It takes a lot of time and resources to complete the configuration of the registers in the chip, and the startup process of the chip takes a long time.
发明内容Summary of the invention
本发明的实施例提供了一种对芯片的寄存器进行自动配置的方法和装置,以实现降低CPU对芯片的寄存器进行配置的工作量。Embodiments of the present invention provide a method and apparatus for automatically configuring registers of a chip to reduce the amount of work required by the CPU to configure registers of the chip.
一种对芯片的寄存器进行自动配置的方法,包括:A method for automatically configuring a register of a chip, including:
在芯片上电或硬复位完成后,根据获取到的配置号信息从多套预设默认配置中选取一套满足所述芯片当前工作状态的默认配置,其中每套预设默认配置分别对应一个配置号;After the power-on or hard reset of the chip is completed, a set of default configurations that meet the current working state of the chip are selected according to the obtained configuration number information, wherein each preset default configuration corresponds to one configuration. number;
所述芯片根据所述选择的默认配置对芯片的寄存器进行自动配置。The chip automatically configures the registers of the chip according to the selected default configuration.
一种对芯片的寄存器进行配置的装置,包括:A device for configuring a register of a chip, comprising:
默认配置获取模块,用于在芯片上电或硬复位完成后,根据获取到的配置号信息从多套预设默认配置中选取一套满足所述芯片当前工作状态的默认配置,其中每套预设默认配置分别对应一个配置号;The default configuration acquisition module is configured to select, according to the obtained configuration number information, a set of default configurations that meet the current working state of the chip according to the obtained configuration number information, wherein each set of pre-settings is configured according to the obtained configuration number information. Set the default configuration to correspond to a configuration number;
寄存器配置模块,用于根据所述默认配置获取模块所选择的默认配置对芯片的寄存器进行配置。The register configuration module is configured to configure a register of the chip according to the default configuration selected by the default configuration acquisition module.
由上述本发明的实施例提供的技术方案可以看出,本发明实施例通过给芯片配置多套不同的默认配置,可以使芯片上电后或硬复位完成后,能够根据上述多套不同的默认配置快速自动完成寄存器的配置工作。As can be seen from the technical solution provided by the foregoing embodiments of the present invention, the embodiment of the present invention can configure multiple different default configurations for the chip, so that after the chip is powered on or after the hard reset is completed, the multiple defaults can be determined according to the foregoing multiple sets. Configure the configuration of the fast auto-complete register.
附图说明DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention, Those skilled in the art can also obtain other drawings based on these drawings without paying for creative labor.
图1为实施例一提供的一种对芯片的寄存器进行自动配置的方法的处理流程图;1 is a process flow diagram of a method for automatically configuring a register of a chip according to Embodiment 1;
图2为本发明实施例提供的一种对芯片的寄存器进行自动配置的装置的结构图。FIG. 2 is a structural diagram of an apparatus for automatically configuring a register of a chip according to an embodiment of the present invention.
具体实施方式detailed description
本发明实施例中,电子设备中的芯片根据获取的配置号信息,从多套不同的默认配置中选择一套默认配置。然后,根据所述选择的默认配置对芯片的寄存器进行配置。In the embodiment of the present invention, the chip in the electronic device selects a set of default configurations from multiple sets of different default configurations according to the obtained configuration number information. The registers of the chip are then configured in accordance with the selected default configuration.
为便于对本发明实施例的理解,下面将结合附图以几个具体实施例为例做进一步的解释说明,且各个实施例并不构成对本发明实施例的限定。In the following, in order to facilitate the understanding of the embodiments of the present invention, the embodiments of the present invention are not to be construed as limited.
实施例一Embodiment 1
该实施例提供的一种对芯片的寄存器进行自动配置的方法的处理流程如图1所示,包括如下步骤:The processing flow of the method for automatically configuring the registers of the chip provided by this embodiment is as shown in FIG. 1 , and includes the following steps:
步骤11:给芯片预先配置多套不同的默认配置。Step 11: Pre-configure the chip with multiple different default configurations.
本发明实施例根据电子设备中的芯片的不同工作状态,给每个芯片分别配置多套不同的预设默认配置,该预设默认配置中可以包括至少一套用户自定义配置。上述多套不同的预设默认配置可以根据芯片的不同工作状态中各个寄存器的默认值来由电子设备的CPU来配置,每套默认配置中可以给芯片中的所有寄存器都设定统一的默认值,也可以给各个寄存器分别设定不同的默认值。上述用户自定义配置由用户根据需要通过电子设备的CPU来设定。In the embodiment of the present invention, each set of different preset default configurations is configured for each chip according to different working states of the chips in the electronic device, and the preset default configuration may include at least one set of user-defined configurations. The plurality of different preset default configurations may be configured by the CPU of the electronic device according to default values of respective registers in different working states of the chip, and each set of default configurations may set a uniform default value for all registers in the chip. It is also possible to set different default values for each register. The above user-defined configuration is set by the user through the CPU of the electronic device as needed.
每套默认配置都分别对应一个配置号,将所有的预设默认配置及其配置号都对应保存在芯片中的非挥发性存储器中,其中,用户自定义配置可以保存在芯片内部的可编辑非挥发性存储器中,在实际应用中,用户可以随时通过CPU对用户自定义配置进行修改。Each set of default configurations corresponds to a configuration number, and all preset default configurations and their configuration numbers are stored in non-volatile memory in the chip. The user-defined configuration can be saved in the editable non-in-chip. In the volatile memory, in actual applications, the user can modify the user-defined configuration through the CPU at any time.
步骤12、在芯片上电后或硬复位完成后,从上述多套预设默认配置中选择一套能够满足芯片的当前工作状态的默认配置,并根据该选择的默认配置对芯片中的各个寄存器进行配置。Step 12: After the chip is powered on or after the hard reset is completed, select a default configuration from the plurality of preset default configurations that can satisfy the current working state of the chip, and select each register in the chip according to the selected default configuration. Configure it.
在芯片上电后或硬复位完成后,芯片获取给其配置的上述多套预设默认配置,从上述多套预设默认配置中选择一套能够满足芯片的当前工作状态的默认配置。将该选择的默认配置加载到内部的寄存器,即根据该选择的一套默认配置中包括各个寄存器的默认值对芯片中的各个寄存器进行配置。After the chip is powered on or after the hard reset is completed, the chip obtains the plurality of preset default configurations configured for the chip, and selects a default configuration that satisfies the current working state of the chip from the plurality of preset default configurations. The selected default configuration is loaded into an internal register, ie each register in the chip is configured according to a default set of values in the selected default configuration.
芯片从上述多套预设默认配置中选择一套默认配置的方法包括如下的两种:The chip selects a set of default configurations from the above multiple preset default configurations, including the following two methods:
第一种方法:由CPU通过芯片的CPU接口,给芯片传输指定的配置号信息,芯片根据该指定的配置号信息从内部的非挥发性存储器中的多套预设默认配置中读取一套默认配置。The first method: the CPU transmits the specified configuration number information to the chip through the CPU interface of the chip, and the chip reads a set from the preset default configuration in the internal non-volatile memory according to the specified configuration number information. default allocation.
第二种方法:单板硬件将芯片上的指定的一个或多个硬件管脚连接到高低电平,其中所述硬件管脚的数量可以根据实际需要进行设定。芯片在上电后或硬复位完成后,可以自动读取上述指定的几个硬件管脚所连接的高低电平的值,根据该高低电平的值匹配到一个配置号,根据该配置号信息从芯片的存储器中保存的多套不同的预设默认配置中选择一套默认配置。The second method: the single board hardware connects the specified one or more hardware pins on the chip to the high and low levels, wherein the number of the hardware pins can be set according to actual needs. After the power is turned on or after the hard reset is completed, the chip can automatically read the high and low values connected by the specified hardware pins, and match the value of the high and low levels to a configuration number according to the configuration number information. A set of default configurations is selected from a plurality of different preset default configurations saved in the chip's memory.
如果给芯片配置的上述预设多套默认配置都不能满足芯片的当前工作状态,则由CPU通过芯片的CPU接口给芯片传输一套用户指定的配置信息,根据该用户指定的配置信息给芯片中的各个寄存器配置相应的指定值。然后,将上述新的用户指定配置和对应的配置号保存在芯片的非挥发性存储器中。If the preset multiple sets of default configurations configured for the chip fail to satisfy the current working state of the chip, the CPU transmits a set of user-specified configuration information to the chip through the CPU interface of the chip, and the chip is configured according to the configuration information specified by the user. Each register is configured with a corresponding specified value. Then, the above new user-specified configuration and corresponding configuration number are saved in the non-volatile memory of the chip.
该实施例通过给芯片配置多套不同的预设默认配置,可以使芯片上电后或硬复位完成后,能够根据上述多套不同的默认配置快速自动完成寄存器的配置工作。In this embodiment, by configuring a plurality of different preset default configurations for the chip, the configuration of the register can be quickly and automatically completed according to the multiple sets of different default configurations after the chip is powered on or after the hard reset is completed.
本发明实施例还提供了一种对芯片的寄存器进行自动配置的装置,该装置设置在芯片中,其具体实现结构如图2所示,具体可以包括:The embodiment of the present invention further provides a device for automatically configuring a register of a chip, and the device is disposed in a chip, and the specific implementation structure is as shown in FIG. 2, which may specifically include:
默认配置获取模块22,用于在芯片上电或硬复位完成后,根据获取到的配置号信息从多套预设默认配置中选取一套满足所述芯片当前工作状态的默认配置,其中每套预设默认配置分别对应一个配置号;The default configuration obtaining module 22 is configured to select, according to the obtained configuration number information, a set of default configurations that meet the current working state of the chip according to the obtained configuration number information, where each set is obtained. The default default configuration corresponds to a configuration number;
寄存器配置模块23,用于根据所述默认配置获取模块所选择的默认配置对芯片的寄存器进行配置。The register configuration module 23 is configured to configure a register of the chip according to the default configuration selected by the default configuration acquisition module.
所述的装置还包括:The device further includes:
默认配置保存模块21,用于保存给芯片预先配置的多套不同的预先默认配置和每套预设默认配置的配置号,其中,所述多套预设默认配置包括至少一套用户自定义配置,且其可以由用户根据需要写入;所述默认配置保存模块包括可编辑非挥发性存储器,其用于保存所述至少一套用户自定义配置,并且,每套默认配置中给芯片中的所有寄存器都设定统一的默认值或者给芯片中的各个寄存器分别设定不同的默认值。The default configuration saving module 21 is configured to save a plurality of different pre-default configurations pre-configured to the chip and a configuration number of each preset default configuration, where the multiple preset default configurations include at least one set of user-defined configurations. And can be written by the user as needed; the default configuration save module includes an editable non-volatile memory for saving the at least one set of user-defined configurations, and each set of default settings is given to the chip All registers are set to a uniform default value or different default values are set for each register in the chip.
所述的默认配置获取模块22具体包括:第一获取模块221、第二获取模块222中的至少一项,The default configuration obtaining module 22 includes at least one of the first obtaining module 221 and the second obtaining module 222.
所述的第一获取模块221,用于在芯片上电后或硬复位完成后,所述芯片接收电子设备中的中央处理器发送的指定的配置号信息,根据该指定的配置号信息从芯片的存储器中保存的多套不同的默认配置中选择一套默认配置;The first obtaining module 221 is configured to: after the chip is powered on or after the hard reset is completed, the chip receives the specified configuration number information sent by the central processing unit in the electronic device, and uses the specified configuration number information from the chip. Select a default configuration from among the different sets of default configurations saved in the memory;
所述的第二获取模块222,用于在芯片上电后或硬复位完成后,所述芯片读取芯片上指定的设定数量的硬件管脚所连接的高低电平的值,根据该高低电平的值匹配到一个配置号,根据该配置号信息从芯片的存储器中保存的多套不同的默认配置中选择一套默认配置。The second obtaining module 222 is configured to read, after the chip is powered on or after the hard reset is completed, the chip reads a high and low value connected by a specified number of hardware pins on the chip, according to the height The value of the level is matched to a configuration number, and a set of default configurations is selected from a plurality of different default configurations saved in the memory of the chip according to the configuration number information.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, or a read-only storage memory (Read-Only) Memory, ROM) or Random Access Memory (RAM).
综上所述,本发明实施例通过给芯片配置多套不同的默认配置,可以使芯片上电后或硬复位完成后,能够根据上述多套不同的默认配置快速自动完成寄存器的配置工作。In summary, in the embodiment of the present invention, by configuring multiple sets of different default configurations for the chip, the configuration of the register can be quickly and automatically completed according to the multiple sets of different default configurations after the chip is powered on or after the hard reset is completed.
本发明实施例可以保存用户设定的自定义配置,可以使芯片在电子设备的CPU完全不参与或者参与很少的情况下,完成芯片的寄存器的配置工作,从而减小对CPU的占用时间,实现芯片快速配置从而完成单板的快速启动。The embodiment of the invention can save the custom configuration set by the user, and can enable the chip to complete the configuration of the chip register when the CPU of the electronic device does not participate or participate in a small amount, thereby reducing the occupation time of the CPU. Fast configuration of the chip to complete the fast start of the board.
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。The above is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or within the technical scope disclosed by the present invention. Alternatives are intended to be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims (10)

  1. 一种对芯片的寄存器进行自动配置的方法,其特征在于,包括:A method for automatically configuring a register of a chip, comprising:
    在芯片上电或硬复位完成后,根据获取到的配置号信息从多套预设默认配置中选取一套满足所述芯片当前工作状态的默认配置,其中每套预设默认配置分别对应一个配置号;After the power-on or hard reset of the chip is completed, a set of default configurations that meet the current working state of the chip are selected according to the obtained configuration number information, wherein each preset default configuration corresponds to one configuration. number;
    所述芯片根据所述选择的默认配置对芯片的寄存器进行自动配置。The chip automatically configures the registers of the chip according to the selected default configuration.
  2. 根据权利要求1所述的对芯片的寄存器进行配置的方法,其特征在于,所述的从多套不同的默认配置选择一套默认配置之前还包括:The method for configuring a register of a chip according to claim 1, wherein the selecting a set of default configurations from the plurality of different default configurations further comprises:
    给芯片预先配置多套不同的预设默认配置,并将所有的默认配置及其配置号都对应保存在所述芯片内部的存储器。The chip is pre-configured with a plurality of different preset default configurations, and all the default configurations and their configuration numbers are correspondingly stored in the memory inside the chip.
  3. 根据权利要求2所述的对芯片的寄存器进行配置的方法,其特征在于,所述多套预设默认配置包括至少一套用户自定义配置,所述至少一套用户自定义配置保存在可编辑非挥发性存储器中,且其由用户根据需要写入。The method for configuring a register of a chip according to claim 2, wherein the plurality of preset default configurations comprise at least one set of user-defined configurations, and the at least one set of user-defined configurations are saved in an editable manner. In non-volatile memory, and it is written by the user as needed.
  4. 根据权利要求2所述的对芯片的寄存器进行配置的方法,其特征在于,所述在芯片上电或硬复位完成后,根据获取到的配置号信息从多套预设默认配置中选取一套满足所述芯片当前工作状态的默认配置,包括:The method for configuring a register of a chip according to claim 2, wherein after the power-on or hard reset is completed, the set is selected from a plurality of preset default configurations according to the obtained configuration number information. The default configuration that satisfies the current working state of the chip, including:
    在芯片上电后或硬复位完成后,所述芯片接收电子设备中的中央处理器发送的指定的配置号信息,根据该指定的配置号信息从芯片的存储器中保存的多套不同的预设默认配置中选择一套与所述配置号信息相匹配的默认配置。After the chip is powered on or after the hard reset is completed, the chip receives the specified configuration number information sent by the central processing unit in the electronic device, and saves multiple sets of different presets from the memory of the chip according to the specified configuration number information. In the default configuration, a set of default configurations that match the configuration number information is selected.
  5. 根据权利要求2所述的对芯片的寄存器进行配置的方法,其特征在于,所述在芯片上电或硬复位完成后,根据获取到的配置号信息从多套预设默认配置中选取一套满足所述芯片当前工作状态的默认配置,包括:The method for configuring a register of a chip according to claim 2, wherein after the power-on or hard reset is completed, the set is selected from a plurality of preset default configurations according to the obtained configuration number information. The default configuration that satisfies the current working state of the chip, including:
    在芯片上电后或硬复位完成后,所述芯片读取芯片上指定的设定数量的硬件管脚所连接的高低电平的值,根据该高低电平的值匹配到一个配置号,根据该配置号信息从芯片的存储器中保存的多套不同的预设默认配置中选择一套默认配置。After the chip is powered on or after the hard reset is completed, the chip reads the high and low values connected by the specified number of hardware pins on the chip, and matches the configuration value according to the high and low values, according to The configuration number information selects a default configuration from a plurality of different preset default configurations saved in the memory of the chip.
  6. 根据权利要求1至5任一项所述的对芯片的寄存器进行配置的方法,其特征在于,所述的所述芯片根据所述选择的默认配置对芯片的寄存器进行配置,包括:The method for configuring a register of a chip according to any one of claims 1 to 5, wherein the chip configures a register of the chip according to the selected default configuration, including:
    所述芯片获取所述选择的默认配置中包括的各个寄存器的默认值,根据该默认值对芯片中的各个寄存器的值进行配置。The chip acquires default values of respective registers included in the selected default configuration, and configures values of respective registers in the chip according to the default values.
  7. 根据权利要求1所述的对芯片的寄存器进行配置的方法,其特征在于,所述的方法还包括:The method of configuring a register of a chip according to claim 1, wherein the method further comprises:
    如果所述芯片的存储器中保存的多套不同的预设默认配置都不能满足芯片的当前工作状态,则所述芯片向电子设备中的中央处理器发送配置更新消息;If the plurality of different preset default configurations saved in the memory of the chip fail to satisfy the current working state of the chip, the chip sends a configuration update message to the central processor in the electronic device;
    所述芯片接收所述中央处理器发送的新的默认配置,根据该新的默认配置对芯片中的各个寄存器进行配置,并将所述新的默认配置和对应的配置号保存在芯片的存储器中。Receiving, by the chip, a new default configuration sent by the central processing unit, configuring each register in the chip according to the new default configuration, and saving the new default configuration and corresponding configuration number in a memory of the chip .
  8. 一种对芯片的寄存器进行配置的装置,其特征在于,包括:An apparatus for configuring a register of a chip, comprising:
    默认配置获取模块,用于在芯片上电或硬复位完成后,根据获取到的配置号信息从多套预设默认配置中选取一套满足所述芯片当前工作状态的默认配置,其中每套预设默认配置分别对应一个配置号;The default configuration acquisition module is configured to select, according to the obtained configuration number information, a set of default configurations that meet the current working state of the chip according to the obtained configuration number information, wherein each set of pre-settings is configured according to the obtained configuration number information. Set the default configuration to correspond to a configuration number;
    寄存器配置模块,用于根据所述默认配置获取模块所选择的默认配置对芯片的寄存器进行配置。The register configuration module is configured to configure a register of the chip according to the default configuration selected by the default configuration acquisition module.
  9. 根据权利要求8所述的对芯片的寄存器进行配置的装置,其特征在于,所述的装置还包括:The device for configuring a register of a chip according to claim 8, wherein the device further comprises:
    默认配置保存模块,用于保存给芯片预先配置的多套不同的预设默认配置和每套预设默认配置的配置号,其中,所述多套预设默认配置包括至少一套用户自定义配置,且其由用户根据需要写入;所述默认配置保存模块包括可编辑非挥发性存储器,其用于保存所述至少一套用户自定义配置。The default configuration save module is configured to save a plurality of different preset default configurations pre-configured by the chip and a configuration number of each preset default configuration, wherein the multiple preset default configurations include at least one set of user-defined configurations. And it is written by the user as needed; the default configuration save module includes an editable non-volatile memory for saving the at least one set of user-defined configurations.
  10. 根据权利要求8或9所述的对芯片的寄存器进行配置的装置,其特征在于,所述的默认配置获取模块具体包括:第一获取模块、第二获取模块中的至少一项,The apparatus for configuring a register of a chip according to claim 8 or 9, wherein the default configuration acquisition module comprises: at least one of a first acquisition module and a second acquisition module.
    所述的第一获取模块,用于在芯片上电后或硬复位完成后,所述芯片接收电子设备中的中央处理器发送的指定的配置号信息,根据该指定的配置号信息从芯片的存储器中保存的多套不同的默认配置中选择一套默认配置;The first obtaining module is configured to: after the chip is powered on or after the hard reset is completed, the chip receives the specified configuration number information sent by the central processing unit in the electronic device, according to the specified configuration number information, from the chip Select a default configuration from multiple different default configurations saved in memory;
    所述的第二获取模块,用于在芯片上电后或硬复位完成后,所述芯片读取芯片上指定的设定数量的硬件管脚所连接的高低电平的值,根据该高低电平的值匹配到一个配置号,根据该配置号信息从芯片的存储器中保存的多套不同的默认配置中选择一套默认配置。The second obtaining module is configured to read, after the chip is powered on or after the hard reset is completed, the chip reads a high and low value connected by a specified number of hardware pins on the chip, according to the high and low voltage The flat value is matched to a configuration number, and a set of default configurations is selected from a plurality of different default configurations saved in the memory of the chip according to the configuration number information.
PCT/CN2011/074951 2010-06-13 2011-05-31 Auto-configuration method and device for registers of chip WO2011157119A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2010102048613A CN102279727A (en) 2010-06-13 2010-06-13 Method and device for automatic configuration of chip register
CN201010204861.3 2010-06-13

Publications (1)

Publication Number Publication Date
WO2011157119A1 true WO2011157119A1 (en) 2011-12-22

Family

ID=45105199

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/074951 WO2011157119A1 (en) 2010-06-13 2011-05-31 Auto-configuration method and device for registers of chip

Country Status (2)

Country Link
CN (1) CN102279727A (en)
WO (1) WO2011157119A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117056897A (en) * 2023-10-13 2023-11-14 沐曦集成电路(上海)有限公司 Configuration information processing method for chip verification, electronic device and medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677827B (en) * 2013-12-10 2016-08-31 北京经纬恒润科技有限公司 A kind of chip configuration method and device
CN109002331A (en) * 2018-09-04 2018-12-14 珠海格力电器股份有限公司 Starting method and device of touch screen, computer equipment and storage medium
CN110442364A (en) * 2019-07-10 2019-11-12 北京欧铼德微电子技术有限公司 Processing method, processing system, display device and its electronic equipment of register
CN111813464B (en) * 2020-08-31 2020-12-11 新华三半导体技术有限公司 Chip configuration method, monitoring module and chip

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101339545A (en) * 2008-08-22 2009-01-07 华为技术有限公司 A register configuration method and device
CN100470476C (en) * 2006-05-25 2009-03-18 杭州晟元芯片技术有限公司 A method of program booting after the chip is powered on

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10102369A1 (en) * 2001-01-19 2002-08-08 Siemens Ag Automatically updating configuration parameter for data transmission modem involves updating stored parameters with parameters from switching station and/or outputting difference
US6938235B2 (en) * 2002-11-14 2005-08-30 Cirrus Logic, Inc. Integrated circuit with authomatic pin-strapping configuration
CN1330207C (en) * 2005-07-29 2007-08-01 华为技术有限公司 Parameter allocating system and method for mobile station
CN101272617B (en) * 2008-05-05 2013-03-13 上海华为技术有限公司 Access equipment parameter configuration method, device and system
CN101577785A (en) * 2008-05-09 2009-11-11 鸿富锦精密工业(深圳)有限公司 Set-top box and set-top box parameter setting method
CN101699402B (en) * 2009-06-12 2012-06-27 苏州国芯科技有限公司 Multi-mode startup embedded system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100470476C (en) * 2006-05-25 2009-03-18 杭州晟元芯片技术有限公司 A method of program booting after the chip is powered on
CN101339545A (en) * 2008-08-22 2009-01-07 华为技术有限公司 A register configuration method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117056897A (en) * 2023-10-13 2023-11-14 沐曦集成电路(上海)有限公司 Configuration information processing method for chip verification, electronic device and medium
CN117056897B (en) * 2023-10-13 2023-12-26 沐曦集成电路(上海)有限公司 Configuration information processing method for chip verification, electronic device and medium

Also Published As

Publication number Publication date
CN102279727A (en) 2011-12-14

Similar Documents

Publication Publication Date Title
US12321597B2 (en) Method and apparatus to enable individual non volatile memory express (NVME) input/output (IO) queues on differing network addresses of an NVME controller
TWI281612B (en) Communication method, apparatus and system, and storage medium having stored thereon instructions
US10581688B2 (en) Methods for automatically configuring multiple chassis link aggregation group (MC-LAG)
WO2011157119A1 (en) Auto-configuration method and device for registers of chip
CN103078747B (en) PCIe switch and method of work thereof
CN103870429B (en) Based on the igh-speed wire-rod production line plate of embedded gpu
US20130097448A1 (en) System and Method for High-Performance, Low-Power Data Center Interconnect Fabric
US20160018990A1 (en) Electronic device and method for managing memory of electronic device
US8838865B2 (en) Hot plug ad hoc computer resource allocation
US20070180181A1 (en) USB interface provided with host/device function and its control method
DE102013112673A1 (en) Wake-on-Cloud
JP2017524210A (en) Superhub system and method
CN114817120A (en) Cross-domain data sharing method, system-on-chip, electronic device and medium
WO2011150883A2 (en) Method and device for terminal batch upgrading
WO2015080478A1 (en) Electronic device and method of managing memory of electronic device
CN107729129A (en) A kind of multithread processing method based on synchrolock, terminal and storage medium
CN116527439A (en) Data communication method, device, computer equipment and computer readable storage medium
CN104699647B (en) For operating the method and system of dual chip set of network interfaces controller
JP2019036944A (en) Configuration by network attribute
CN110708691A (en) Information processing method and electronic equipment
CN104219061B (en) Request the method and device of power consumption state variation
CN119129487A (en) A method, device, equipment and medium for loading multiple different configuration files
US10645166B2 (en) Network interface card
CN110650546A (en) File transmission method, device, storage medium and terminal
CN106817133A (en) Integrated circuit and method of operating serializer/deserializer physical layer circuit thereof

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

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

Country of ref document: EP

Kind code of ref document: A1

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载