CN101465754A - Method, equipment and communication veneer for loading reset configuration words - Google Patents

Method, equipment and communication veneer for loading reset configuration words Download PDF

Info

Publication number
CN101465754A
CN101465754A CNA2008102053690A CN200810205369A CN101465754A CN 101465754 A CN101465754 A CN 101465754A CN A2008102053690 A CNA2008102053690 A CN A2008102053690A CN 200810205369 A CN200810205369 A CN 200810205369A CN 101465754 A CN101465754 A CN 101465754A
Authority
CN
China
Prior art keywords
configuration words
reset configuration
request
version
central processing
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.)
Pending
Application number
CNA2008102053690A
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Shanghai Huawei Technologies Co Ltd
Original Assignee
Shanghai Huawei Technologies Co Ltd
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 Shanghai Huawei Technologies Co Ltd filed Critical Shanghai Huawei Technologies Co Ltd
Priority to CNA2008102053690A priority Critical patent/CN101465754A/en
Publication of CN101465754A publication Critical patent/CN101465754A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of invention relates to a method, a device and a communication circuit board for loading reset configuration word; the method includes that a reset configuration acquisition request sent by a central processor is received; the reset configuration word edition which needs to be required by the central processor id determined; the reset configuration word acquisition request is converted into a corresponding reset configuration word edition acquisition request; the corresponding reset configuration word edition acquisition request is adopted to acquire a corresponding reset configuration word in the corresponding edition. The technical proposal provided by the embodiment of invention solves the software compatibility problem after the updating of hardware; meanwhile, the edition maintenance cost is reduced.

Description

The method of loading reset configuration words, equipment and communication single-board
Technical field
The present invention relates to communication technical field, particularly a kind of method of loading reset configuration words, equipment and communication single-board.
Background technology
After the communication single-board that is made of central processing unit (CPU) powers up or resets, before the operating system nucleus operation, usually need carry out initialization to hardware resource earlier, as realize the configuration of start-up parameter such as work clock, interface modes, could start the environment of initialize routine (Boot Loader) configuration operation system kernel operation then, by this section program, can further carry out initialization to system, thereby take the hardware environment of system to a proper state, so that be ready to correct environment for final call operation system kernel.
System power-up or reset after, as PowerPC, CPU is instruction fetch on prearranged address or the address area usually, usually all there is certain type solid storage device (such as ROM, EEPROM or FLASH etc.) be mapped on this prearranged address in the system, CPU will at first read reset configuration words from this solid storage device, use reset configuration words that equipment is carried out initialization, after the hardware environment initialization, could the operating software code.
Reset configuration words be equipment energising or reset after, can operate as normal in order to make equipment, thus some hardware parameters that need be configured.And the memory device (as ROM, the FLASH memory block) that is used to deposit reset configuration words then is called BOOTROM (Boot Read Only Memory), is mapped to the CPU energising usually or first address area of reading, back that resets.
In the prior art, after the part of devices upgrading on the needs upgrading veneer,, change internal memory etc.,, will produce incompatible problem if hardware-related reset configuration words does not upgrade such as the CPU in the veneer being replaced by the more excellent CPU of isonomic performance.
Summary of the invention
The embodiment of the invention provides a kind of method, equipment and communication single-board of loading reset configuration words, with the softwarecompatible problem behind the solution HardwareUpgring.
For solving the problems of the technologies described above, the embodiment of the invention provides a kind of method of loading reset configuration words, comprises step:
Receive the request of obtaining reset configuration words that central processing unit sends;
Determine the version of the reset configuration words that described central processing unit need obtain;
Described request of obtaining reset configuration words is converted to the request of the reset configuration words that obtains corresponding described version;
Utilize the reset configuration words of the corresponding described version of acquisition request of the reset configuration words of the described version of described correspondence.
Correspondingly, the embodiment of the invention also provides a kind of equipment of loading reset configuration words, comprising:
The request receiving element is used for receiving the request of obtaining reset configuration words that described central processing unit sends by described bus;
Determining unit, the version of the reset configuration words that is used for determining that described central processing unit need obtain;
Map unit is used for being connected with described receiving element, with the request of obtaining reset configuration words that described receiving element receives, is converted to the request of the reset configuration words that obtains the definite version of described determining unit;
Request transmitting unit is used for by the request of obtaining reset configuration words of described bus after described memory device sends described map unit conversion;
The configuration words receiving element is used for receiving the reset configuration words of described memory device according to the request transmission of described request transmitting element from described bus.
The embodiment of the invention also provides a kind of communication single-board, comprising: the equipment of central processing unit, loading reset configuration words, memory device and bus, wherein
Described central processing unit is connected with the equipment of described loading reset configuration words by described bus, and the equipment of described loading reset configuration words is connected with described memory device by described bus;
Described central processing unit is used for sending the request of obtaining reset configuration words by described bus to the equipment of described loading reset configuration words, and after receiving described reset configuration words, according to the equipment on the described reset configuration words initialize communications veneer;
The equipment of described loading reset configuration words, be used for receiving the request of obtaining reset configuration words that described central processing unit sends by described bus, determine the version of the reset configuration words that described central processing unit need obtain, described request of obtaining reset configuration words is converted to the request of the reset configuration words that obtains corresponding described version, from described memory device, obtain the reset configuration words of corresponding described version, and will send to described central processing unit from the described reset configuration words that described memory device obtains.
Described memory device, be used to store the reset configuration words of a plurality of versions, after the reset configuration words request of obtaining particular version that the equipment of receiving described loading reset configuration words by described bus interface sends, send the reset configuration words of corresponding described particular version to the described equipment of stating loading reset configuration words by described bus.
As shown from the above technical solution, the technical scheme that the embodiment of the invention provided, different reset configuration words can be shone upon selectively same addressing space, thereby can compatiblely on same memory device overlap reset configuration words more, solve the softwarecompatible problem of HardwareUpgring to CPU.
Description of drawings
The schematic flow sheet of the method for the loading reset configuration words that Fig. 1 provides for the embodiment of the invention one;
The idiographic flow schematic diagram of the method for the loading reset configuration words that Fig. 2 provides for the embodiment of the invention two;
Fig. 3 for provide among the embodiment of the invention one or two pass through on draw or the structural representation of drop-down choosing weldering resistance reset configuration words version;
The structural representation of the equipment of the loading reset configuration words that provides in the embodiment of the invention three is provided Fig. 4;
The structural representation of the communication single-board that provides in the embodiment of the invention four is provided Fig. 5;
The structural representation of the application example of the communication single-board that provides in the embodiment of the invention five is provided Fig. 6;
Fig. 7 is provided by CPLD for the CPU that provides in the embodiment of the invention six by the structural representation of reset configuration words;
Fig. 8 is by selecting reset configuration words to realize the compatible structural representation in software front and back in the embodiment of the invention seven.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention is clearer, several embodiments of the present invention are made further detailed description below in conjunction with accompanying drawing.Memory device in following described embodiment is an example to start read-only memory BOOTROM, but is not limited to this.
Embodiment one
See also Fig. 1, the flow chart of the method for the loading reset configuration words that provides for the embodiment of the invention one, described method comprises:
Step 101: receive the request of obtaining reset configuration words that central processing unit sends.
In the system point or reset after, central processor CPU need obtain the reset configuration words parameter of hardware, and the hardware device of system is carried out initialization, disposes corresponding system environments.
CPU will send by system bus and obtain the request of reset configuration words, as transmit control signal, the address signal of the required reset configuration words that reads etc.For example, this step can be with address signal that CPU was sent as triggering signal, after receiving the address signal that CPU sends, begins to load correct reset configuration words.
Step 102: the version of determining the reset configuration words that described central processing unit need obtain.
After the hardware of system changes, the reset configuration words of the required loading of CPU also will change, and the reset configuration words of different editions is corresponding to different hardware configuration.CPU still sends the request of obtaining reset configuration words according to the mode of acquiescence, need not to carry the version of the required reset configuration words that obtains, and needs to determine the version of the required reset configuration words that obtains of CPU in step 102.And the version information of reset configuration words can set the version of corresponding reset configuration words in upgrading hardware.For example, the state value that can change pull-up resistor or pull down resistor is provided with the version of reset configuration words.
Step 103: described request of obtaining reset configuration words is converted to the request of the reset configuration words that obtains corresponding described version.
Different editions reset configuration words be stored in different address spaces, in order to obtain the reset configuration words of right version, the request that CPU sends need be changed, be converted to the reset configuration words of obtaining step 102 determined versions.
Step 104: the reset configuration words that utilizes the corresponding described version of acquisition request of the described reset configuration words that obtains corresponding described version.
Generally, reset configuration words is stored in the memory device, the reset configuration words request of obtaining right version in the step 103 need be sent in the memory device with reading corresponding data, finishes the process of loading reset configuration words.
(present embodiment is example with BOOTROM the reset configuration words of multiple version can be stored into memory device, but be not limited to this) low address space in, promptly low 64 bytes the reset configuration words of different editions can be stored into other address spaces of BOOTROM, but present embodiment do not limit yet.By programmable logic device such as CPLD (CPLD, Complex Programmable LogicDevice), combinational logic circuit or on-site programmable gate array FPGA etc. all can, here with the function of CPLD performing step 101 to step 104, the request of obtaining reset configuration words with address signal as CPU.
After system powers on, after CPLD receives the address signal that CPU sends, promptly determine the version of the reset configuration words that CPU will read; The address signal that CPU is sended over is changed then, be converted to the address signal of the reset configuration words of the corresponding version of storing among the BOOTROM, address signal after will changing then sends to BOOTROM, from the BOOTROM reading of data, the data that read are the reset configuration words of corresponding version.
The embodiment of the invention is by obtaining at CPU in the process of reset configuration words, the request of obtaining reset configuration words is converted to the request of the reset configuration words that obtains right version, thereby reached after the HardwareUpgring, system still can load the reset configuration words of right version, has solved the incompatible problem of software that HardwareUpgring causes.
Embodiment two
See also Fig. 2, the particular flow sheet of the method for the loading reset configuration words that provides in the embodiment of the invention two is provided, present embodiment is example with CPLD, but is not limited to this, and described method comprises:
Step 201: receive the address signal of described central processing unit by bus transfer, described address signal is the level signal that the default address value of reset configuration words produces through the decoding back.
After system powers on or resets, will obtain reset configuration words by default address value earlier, this default address value is converted to level signal after through decoding and passes through CPLD by address bus.
Step 202: obtain the state value of drop-down welding resistance, determine the version of the reset configuration words that described central processing unit need obtain;
After CPLD receives the address signal that CPU sends from address bus, obtain the state value of the last drop-down welding resistance that is welded on CPLD, the version of the reset configuration words that need obtain with definite central processing unit by circuit.The state value of welding resistance carries out manual modification after the HardwareUpgring of single board system, corresponding to the reset configuration words of respective version.
Step 203: described request of obtaining reset configuration words is converted to the address signal of reset configuration words in memory device of corresponding described version, and described memory device is used to preserve the reset configuration words of a plurality of versions.
After the version that obtains reset configuration words, by the circuit of CPLD, the address signal that the CPU that receives sends over to be changed, the represented address value of address signal after the conversion is the address value of reset configuration words in memory device of corresponding version.Memory device is connected with CPLD by bus, has the reset configuration words of a plurality of versions in the memory device, and different reset configuration words is stored in different address spaces.
Step 204: the reset configuration words that utilizes the corresponding described version of acquisition request of the described reset configuration words that obtains corresponding described version.
The address signal that CPLD obtains step 203 passes through memory device by address bus, and memory device receives after the address signal, deciphers addressing, reading of data, and send to CPLD by data/address bus.
Present embodiment can further include step 205: the described reset configuration words of the described version of correspondence is sent to described central processing unit.
Be CPLD with the reset configuration words that obtains, send to CPU by data/address bus, so that CPU utilizes reset configuration words to carry out the initialization of hardware.
In step 202, obtain the state value of drop-down welding resistance, determine that the specific implementation process of the version of the reset configuration words that described central processing unit need obtain sees Fig. 3 for details.
Fig. 3 for provide among the embodiment of the invention one or two pass through on draw or drop-down choosing weldering resistance is provided with the structural representation of reset configuration words version, be example with CPLD in the present embodiment, but be not limited to this.
As shown in Figure 3, the outside connection of several of CPLD (present embodiment is an example with 3 pins) gone up drop-down welding resistance, welding resistance or a drop-down welding resistance can only be selected to draw on one in the outside of each pin, on when drawing, the data that CPLD reads are 1, the data that read when drop-down are 0 (a kind of in these two states of Ra* and Rb*, then the value of the S* that reads of CPLD is 0 or 1, be 1 in the value present embodiment of * wherein, 2 and 3, but and be limited to this), three pins combine and can discern 8 kinds of states altogether, define on each welding resistance and draw or pull-down state and a kind of CPU (or hardware device, present embodiment is example with CPU) corresponding, just a kind of state value is represented a kind of CPU, simultaneously also represent a kind of version of reset configuration words, thereby realized that CPLD knows correct reset configuration words by the state of choosing its outside welding resistance that connects.Wherein, the state and the supporting table of cpu type of welding resistance see table 1 for details, and present embodiment is a kind of preferred mode, is not limited to this.
Table 1
The value of the pin S2S1S0 that CPLD selects Corresponding cpu type Reset configuration words
000 CPU0 Configuration words 0
001 CPU1 Configuration words 1
010 CPU2 Configuration words 2
011 CPU3 Configuration words 3
100 CPU4 Configuration words 4
101 CPU5 Configuration words 5
110 CPU6 Configuration words 6
111 CPU7 Configuration words 7
The embodiment of the invention is by obtaining at CPU in the process of reset configuration words, the request of obtaining reset configuration words is converted to the request of the reset configuration words that obtains right version, thereby reached after the HardwareUpgring, system still can load the reset configuration words of right version, has solved the incompatible problem of software that HardwareUpgring causes.
Embodiment three
See also Fig. 4, the structural representation of the equipment of a kind of loading reset configuration words that provides for the embodiment of the invention three.
The equipment of described loading reset configuration words carries out exchanges data with central processor CPU and memory device respectively by bus (comprising control bus, address bus and data/address bus), wherein, the device structure schematic diagram of described loading reset configuration words sees Fig. 4 for details, comprising: request receiving element 41, determining unit 42, map unit 43, request transmitting unit 44 and configuration words receiving element 45.
Request receiving element 41 is used for receiving the request of obtaining reset configuration words that central processing unit sends by bus.For example, can receive the address signal of address value after decoding of the default reset configuration words of central processing unit transmission by bus with address signal as the request of obtaining reset configuration words.
Determining unit 42, the version of the reset configuration words that is used for determining that described central processing unit need obtain.For example, determining unit 42 can be obtained the state value of the last drop-down welding resistance that is welded on the device outside, to determine the version of the reset configuration words that central processing unit need obtain.
Map unit 43 is used for being connected respectively with receiving element 41 with determining unit 42, with the request of obtaining reset configuration words that receiving element 41 receives, is converted to the request of the reset configuration words that obtains the version that determining unit 42 determines.For example, level signal with 41 receptions of request receiving element, change by circuit, the address value of the level signal representative after the conversion, the address value of the reset configuration words of the version of determining for determining unit 42, thus between the reset configuration words address value of default address value of the reset configuration words of CPU visit and right version, set up mapping relations.
Request transmitting unit 44 is used for being connected with map unit 43, by the request of obtaining reset configuration words of bus after memory device sends map unit 43 conversions.For example, transmitting element can be gone over the address signal transparent transmission of map unit 43 by address bus.
Configuration words receiving element 45 is used for from the bus interface harvesting storage equipment reset configuration words that 44 requests send according to request transmitting unit.
For example, the address signal reading of data that memory device will send according to request transmitting unit 44, and send the data that read by data/address bus.Configuration words receiving element 45 receives the data that memory device sends by data/address bus, and these data are the reset configuration words of the version that corresponding determining unit 42 determines.
Determining unit 42 can further comprise: selected cell and version determining unit, and wherein, selected cell is used for being connected with last drop-down welding resistance, obtains the state value of described resistance, and one of embodiment of the concrete setting of its state can be referring to Fig. 3; The version determining unit is used for the state value that obtains according to selected cell, determines the version of the reset configuration words that central processing unit need obtain.
Further, present embodiment also can comprise: the configuration words transmitting element, be used for being connected with configuration words receiving element 45, send the data that configuration words receiving element 45 receives by bus to central processing unit, these data are the reset configuration words of the version that determining unit 42 determines.
The equipment of described loading reset configuration words can be integrated in the complex programmable logic device (CPLD), also can be integrated in combinational logic circuit or the on-site programmable gate array FPGA, perhaps is integrated in the equipment that other have corresponding function, and present embodiment does not limit.
The embodiment of the invention is utilized the equipment (this equipment can be integrated in logical devices such as CPLD, combinational logic circuit, FPGA, but is not limited to this) of loading reset configuration words, by receiving the request of obtaining reset configuration words that central processing unit sends; And determine the version of the reset configuration words that described central processing unit need obtain; Described request of obtaining reset configuration words is converted to the request of the reset configuration words that obtains corresponding described version; Utilize the reset configuration words of the corresponding described version of acquisition request of the described reset configuration words that obtains corresponding described version.Realize remapping of CPU addressing space address, the different spatial data of BOOTROM or other memories, peripheral hardware is passed to selectively the default same addressing space of CPU according to demand, realize " transparency " of CPU to the several data source space, it is invisibility, thereby realized that a cover softwarecompatible overlaps the hardware reset configuration words more, and then realized software forward compatibility behind the HardwareUpgring.
Embodiment four
A kind of communication single-board that the embodiment of the invention four provides, its structural representation such as Fig. 5 comprise equipment 52, the memory device 53 of central processing unit 51, loading reset configuration words.Wherein
Described central processing unit 51 is connected with the equipment 52 of described loading reset configuration words by described bus, and the equipment 52 of described loading reset configuration words is connected with described memory device 53 by described bus; Described central processing unit 51 is used for sending the request of obtaining reset configuration words by described bus to the equipment 52 of described loading reset configuration words, and after receiving described reset configuration words, according to the equipment on the described reset configuration words initialize communications veneer.
The equipment 52 of described loading reset configuration words, be used for receiving the request of obtaining reset configuration words that described central processing unit 51 sends by described bus, determine the version of the reset configuration words that described central processing unit 51 need obtain, described request of obtaining reset configuration words is converted to the request of the reset configuration words that obtains corresponding described version, from described memory device 53, obtain the reset configuration words of corresponding described version, and will send to described central processing unit 51 from the described reset configuration words that described memory device 53 obtains.
Wherein, the equipment of described loading reset configuration words comprises: request receiving element, determining unit, map unit, request transmitting unit and configuration words receiving element in a kind of application scenarios, can also comprise: the configuration words transmitting element.In a kind of application scenarios, described determining unit 42 can further comprise: selected cell and version determining unit.The concrete function of the equipment of described loading reset configuration words and effect see the foregoing description three for details, do not repeat them here.
Preferably, the equipment of described loading reset configuration words can be integrated in the complex programmable logic device (CPLD), can be integrated in combinational logic circuit or the on-site programmable gate array FPGA yet, perhaps be integrated in the equipment that other have corresponding function, present embodiment does not limit.
Described memory device 53, be used to store the reset configuration words of a plurality of versions, after the reset configuration words request of obtaining particular version that the equipment 52 of receiving described loading reset configuration words by described bus interface sends, send the reset configuration words of corresponding described particular version to the described equipment 42 of stating loading reset configuration words by described bus.
The veneer that present embodiment provided, after the HardwareUpgring, single board system still can load the reset configuration words of right version, has solved the incompatible problem of software that HardwareUpgring causes.
For the ease of those skilled in the art's understanding, be described further by following another embodiment.
Embodiment five
See also Fig. 6, for the structural representation of the application example of communication single-board is provided in the embodiment of the invention five, communication single-board comprises that (it is example that present embodiment is integrated in CPLD with the equipment of loading reset configuration words for CPU61, CPLD62, but be not limited to this) and memory device (present embodiment is example with BOOTROM63, but be not limited to this), CPLD62 links to each other with BOOTROM63 with CPU61 respectively by bus (comprising control bus, address bus and data/address bus).
Wherein, BOOTROM63 and CPU61 make bus by CPLD62 and isolate, and bus is isolated the visit encoded control of decoder realization CPU61 to BOOTROM63 among the CPLD61.CPU61 resets when starting at every turn, all respectively obtain a reset configuration words byte from default address value 0x00,0x08,0x10,0x18,0x20,0x28, these 8 addresses of 0x30,0x38, CPLD61 is in the bus between BOOTROM63 and the CPU62, receive the default address value that CPU sends, and default address value changed, read the configuration words of right version then in the BOOTROM63, the BOOTROM63 data that CPU61 reads are exported by bus by CPLD62.
Present embodiment can be realized, CPLD62 obtains different configuration words from the different address spaces of BOOTROM63, and give CPU with described configuration words and give tacit consent to the corresponding address space that obtains reset configuration words, realized the incompatible problem of software that before and after HardwareUpgring, causes in the prior art owing to the reset configuration words variation.
Therefore, the embodiment of the invention at software in the prior art can't compatible multiple hardwares reset configuration words defective, utilize the version number of CPLD according to reset configuration words, the configuration words that is stored in the BOOTROM different spaces is remapped to CPU, realize the new and old edition veneer can be shared the purpose of a cover software, thereby realized the forward compatibility of software.
Embodiment six
Also see also Fig. 7, the structural representation of reset configuration words is provided by CPLD for the CPU that provides in the embodiment of the invention six; In the present embodiment, realize that described communication single-board comprises: CPU71, CPLD72 and BOOTRPM73 by communication single-board.Wherein, be integrated with the equipment of loading reset configuration words among the CPLD72, described CPLD72 carries out exchanges data with central processor CPU and memory device respectively by control bus, address bus and data/address bus, and CPU obtains the reset configuration words that BOOTRPM needs by CPLD, and detailed process comprises:
In the present embodiment, these section 64 byte spaces of 0x00~0x3f that the reset configuration words among the BOOTROM73 is stored in can be deposited 8 kinds of configuration words at most.CPLD72 goes up drop-down welding resistance outward by the identification sheet and obtains configuration words characteristic version number, can adopt specific mapping algorithm to know correct reset configuration words, a kind of mapping method can be consulted Fig. 3, and present embodiment is an example to select a kind from 8 kinds of reset configuration words, specifically as shown in Figure 7:
If loading reset configuration words 1 is answered by system, CPLD is after receiving the address signal of CPU by the address bus transmission, by on draw or the state value of drop-down welding resistance is determined the version (present embodiment is an example with configuration words 1) of the reset configuration words that CPU will read, and described address signal is converted to the address signal of the reset configuration words of the corresponding version of storing among the BOOTROM, CPLD72 just gives the 0x01 byte address data map of BOOTROM73 the 0x00 address of CPU71 like this, give the 0x08 address of CPU71 with the 0x09 byte address data map of BOOTROM73, map out 8 whole byte configuration words by that analogy.Present embodiment is that low 64 bytes with BOOTROM are example, but be not limited to this, can also utilize other free space of BOOTROM to deposit the various configurations word, only need the mapping method of adaptability revision CPLD to get final product, its implementation procedure is similar to the above embodiments, does not repeat them here.
The veneer that present embodiment provided, after the HardwareUpgring, single board system still can load the reset configuration words of right version, has solved the incompatible problem of software that HardwareUpgring causes.
Embodiment seven
Also see also Fig. 8, the structural representation that passes through to select reset configuration words realization software front and back compatibility that provides in the embodiment of the invention seven is provided; Comprise:
Equipment 81 before the HardwareUpgring, and the equipment behind the HardwareUpgring 82, wherein, comprise in the equipment 81 before HardwareUpgring: hardware 1, reset configuration words A and B, and software version B, leave former reset configuration words in position that PowerPC acquiescence reads, also can operate as normal on old equipment to guarantee new software; Comprise in the equipment 2 behind the described HardwareUpgring: hardware 2, reset configuration words A and B, software version B, and CPLD, described CPLD is used to realize that the address remaps, and reads correct reset configuration words to guarantee CPU, the integrated address mapping device of reset configuration words in this described CPLD, the function of the address mapping device of described reset configuration words and effect see for details above-mentioned, do not repeat them here.
For the ease of understanding, the 2 kinds of reset configuration words that only draw among Fig. 8 actually can expand to multiplely, and its concrete implementation procedure is:
Before upgrading, can earlier multiple reset configuration words be stored in the different address spaces of BOOTROM, address bus with processor CPU, be connected with BOOTROM by programmable logic device, be mapped to the address space that processor CPU acquiescence is obtained reset configuration words with the reset configuration words of the multiple version realizing to store in the different address spaces among the BOOTROM.
After equipment 1 upgraded to equipment 2, the startup flow process of system comprised:
After system powered on, CPU sent a chip selection signal to BOOTROM by control bus, sent address signal to CPLD.After CPLD receives the address signal that CPU transmits by address bus, by on draw or the state value of drop-down welding resistance is determined the version of the reset configuration words that CPU will read; The address signal that CPU is sended over is changed then, be converted to the address signal of the reset configuration words of the corresponding version of storing among the BOOTROM, address signal after will changing then sends to BOOTROM, BOOTROM receives after the address signal, according to address signal addressing and reading of data, the data that read are the reset configuration words of corresponding version, send the reset configuration words of this correspondence version then to CPLD, CPLD receives after the reset configuration words of BOOTROM transmission, if the data bit of the data bit of BOOTROM and CPU is inconsistent, CPLD also needs to change, data after the conversion are sent to CPU, CPU gets access to after the reset configuration words of right version, and veneer is carried out initialization.
Such as, CPLD receives the default address value of CPU transmission reset configuration words through the address signal after the decoding, CPLD begins to read the state value of the last drop-down welding resistance that is connected with CPLD, here be made as 001, the address transition that CPLD sends CPU is the reset configuration words address (i.e. the memory address of the reset configuration words of second kind of CPU in BOOTROM) corresponding to 001 version, and obtain reset configuration words from this address, the reset configuration words that is obtained is sent to CPU, the mapping of the true address value of the default address value of realization reset configuration words and the reset configuration words of different editions.
The embodiment of the invention is after realizing the software compatibility, and the contrast of the relation of the equipment of new and old edition, reset configuration words and software version is (only provide 2 kinds of reset configuration words, actual can expand to multiple) in the drawings specifically as shown in Figure 8.
This shows, the embodiment of the invention is just need obtain reset configuration words from memory device (such as BOOTROM) at the CPU that runs in the development and Design before starting software, and can't adopt the compatible multiple reset configuration words of software mode and the brand new technical scheme that proposes, avoided the software version forward direction incompatible and cause the release maintenance cost to increase, and the potential risk of bringing for the normal operation of existing web edition.That is to say that the embodiment of the invention is utilized CPLD (including but not limited to logical devices such as CPLD, combinational logic circuit, FPGA) flexibility, by receiving the request of obtaining reset configuration words that central processing unit sends; And determine the version of the reset configuration words that described central processing unit need obtain; Described request of obtaining reset configuration words is converted to the request of the reset configuration words that obtains corresponding described version; Utilize the reset configuration words of the corresponding described version of acquisition request of the described reset configuration words that obtains corresponding described version.Realize remapping of CPU addressing space address, the different address date of BOOTROM or other memories, peripheral hardware is passed to the same reference address of CPU selectively according to demand, realize " transparency " of CPU to the several data source space, it is invisibility, thereby realized that a cover softwarecompatible overlaps the hardware reset configuration words more, and then realized software forward compatibility behind the HardwareUpgring.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product can be stored in the storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (10)

1, a kind of method of loading reset configuration words is characterized in that, comprising:
Receive the request of obtaining reset configuration words that central processing unit sends;
Determine the version of the reset configuration words that described central processing unit need obtain;
Described request of obtaining reset configuration words is converted to the request of the reset configuration words that obtains corresponding described version;
Utilize the reset configuration words of the corresponding described version of acquisition request of the described reset configuration words that obtains corresponding described version.
2, method according to claim 1 is characterized in that, the request of obtaining reset configuration words that described reception central processing unit sends comprises:
Receive the address signal of described central processing unit by bus transfer, described address signal is the level signal that the default address value of reset configuration words produces through the decoding back.
3, method according to claim 1 is characterized in that, the described version of determining the reset configuration words that described central processing unit need obtain comprises:
Obtain the state value of drop-down welding resistance, determine the version of the reset configuration words that described central processing unit need obtain.
4, method according to claim 1 is characterized in that, described described request of obtaining reset configuration words is converted to the request of the reset configuration words that obtains corresponding described version, comprising:
Described request of obtaining reset configuration words is converted to the address signal of reset configuration words in memory device of corresponding described version, and described memory device is used to preserve the reset configuration words of a plurality of versions.
5, method according to claim 1 is characterized in that, also comprises:
The described reset configuration words of the described version of correspondence is sent to described central processing unit.
6, a kind of equipment of loading reset configuration words is characterized in that, the equipment of described loading reset configuration words carries out exchanges data by bus and central processing unit and memory device, and the equipment of described loading reset configuration words comprises:
The request receiving element is used for receiving the request of obtaining reset configuration words that comes from described central processing unit by described bus;
Determining unit, the version of the reset configuration words that is used for determining that described central processing unit need obtain;
Map unit is used for the request of obtaining reset configuration words with described receiving element reception, is converted to the request of the reset configuration words that obtains the definite version of described determining unit;
Request transmitting unit is used for by the request of obtaining reset configuration words of described bus after described memory device sends described map unit conversion;
The configuration words receiving element is used for receiving the reset configuration words that described memory device sends according to the request of described request transmitting element from described bus.
7, equipment according to claim 6 is characterized in that, described determining unit comprises:
Selected cell is used for being connected with last drop-down welding resistance, obtains the state value of described resistance;
The version determining unit is used for the state value that obtains according to described selected cell, determines the version of the reset configuration words that described central processing unit need obtain.
8, equipment according to claim 6 is characterized in that:
The described request receiving element, comprise the address signal receiving element, described address signal receiving element is used for receiving from described bus the address signal of described central processing unit transmission, and described address signal is the level signal that the default address value of reset configuration words produces through the decoding back;
Described map unit, comprise the address signal modular converter, described address signal modular converter is used for being connected with the described request receiving element, be connected with described determining unit, the address signal of described address signal receiving element reception be converted to the address signal of the reset configuration words of the definite version of described determining unit.
9, equipment according to claim 6 is characterized in that, also comprises:
The configuration words transmitting element is used for being connected with described configuration words receiving element, sends the reset configuration words that described configuration words receiving element receives by described bus to described central processing unit.
10, a kind of communication single-board is characterized in that, comprising: the equipment of central processing unit, loading reset configuration words, memory device and bus, wherein,
Described central processing unit is connected with the equipment of described loading reset configuration words by described bus, and the equipment of described loading reset configuration words is connected with described memory device by described bus;
Described central processing unit is used for sending the request of obtaining reset configuration words by described bus to the equipment of described loading reset configuration words, and after receiving described reset configuration words, according to the equipment on the described reset configuration words initialize communications veneer;
The equipment of described loading reset configuration words, be used for receiving the request of obtaining reset configuration words that described central processing unit sends by described bus, determine the version of the reset configuration words that described central processing unit need obtain, described request of obtaining reset configuration words is converted to the request of the reset configuration words that obtains corresponding described version, from described memory device, obtain the reset configuration words of corresponding described version, and will send to described central processing unit from the described reset configuration words that described memory device obtains;
Described memory device, be used to store the reset configuration words of a plurality of versions, after the reset configuration words request of obtaining particular version that the equipment of receiving described loading reset configuration words by described bus interface sends, send the reset configuration words of corresponding described particular version to the described equipment of stating loading reset configuration words by described bus.
CNA2008102053690A 2008-12-31 2008-12-31 Method, equipment and communication veneer for loading reset configuration words Pending CN101465754A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008102053690A CN101465754A (en) 2008-12-31 2008-12-31 Method, equipment and communication veneer for loading reset configuration words

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008102053690A CN101465754A (en) 2008-12-31 2008-12-31 Method, equipment and communication veneer for loading reset configuration words

Publications (1)

Publication Number Publication Date
CN101465754A true CN101465754A (en) 2009-06-24

Family

ID=40806129

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008102053690A Pending CN101465754A (en) 2008-12-31 2008-12-31 Method, equipment and communication veneer for loading reset configuration words

Country Status (1)

Country Link
CN (1) CN101465754A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010145591A1 (en) * 2009-11-09 2010-12-23 中兴通讯股份有限公司 Mthod and veneer for improving compatibility of boot
WO2012174899A1 (en) * 2011-06-23 2012-12-27 中兴通讯股份有限公司 Method and device for updating network element through network management
CN104461994A (en) * 2014-11-12 2015-03-25 中国航空工业集团公司洛阳电光设备研究所 FPGA-based embedded processor dynamic configuration circuit and method
CN105630120A (en) * 2014-11-03 2016-06-01 普天信息技术有限公司 Processor hardware configuration word loading method and device
CN107515737A (en) * 2016-06-15 2017-12-26 深圳市博巨兴实业发展有限公司 A kind of method for the configuration information word for loading MCU chip
CN107766090A (en) * 2016-08-15 2018-03-06 天津科畅慧通信息技术有限公司 A kind of method and device for assisting CPU to start based on EPLD

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010145591A1 (en) * 2009-11-09 2010-12-23 中兴通讯股份有限公司 Mthod and veneer for improving compatibility of boot
WO2012174899A1 (en) * 2011-06-23 2012-12-27 中兴通讯股份有限公司 Method and device for updating network element through network management
CN105630120A (en) * 2014-11-03 2016-06-01 普天信息技术有限公司 Processor hardware configuration word loading method and device
CN105630120B (en) * 2014-11-03 2019-03-08 普天信息技术有限公司 A kind of method and device of loading processing device hardware configuration word
CN104461994A (en) * 2014-11-12 2015-03-25 中国航空工业集团公司洛阳电光设备研究所 FPGA-based embedded processor dynamic configuration circuit and method
CN107515737A (en) * 2016-06-15 2017-12-26 深圳市博巨兴实业发展有限公司 A kind of method for the configuration information word for loading MCU chip
CN107766090A (en) * 2016-08-15 2018-03-06 天津科畅慧通信息技术有限公司 A kind of method and device for assisting CPU to start based on EPLD

Similar Documents

Publication Publication Date Title
CA1335843C (en) Programmable option select
US5491804A (en) Method and apparatus for automatic initialization of pluggable option cards
US7039799B2 (en) Methods and structure for BIOS reconfiguration
US20080307154A1 (en) System and Method for Dual-Ported I2C Flash Memory
CN101465754A (en) Method, equipment and communication veneer for loading reset configuration words
US5757639A (en) Electronic apparatus
CN107729071B (en) A kind of method and device initializing network interface card
CN102135891A (en) System capable of realizing bootload, bootload control device and method
CN101364212A (en) Handshake free sharing in a computer architecture
CN108008914A (en) The method, apparatus and ARM equipment of disk management in a kind of ARM equipment
US5175831A (en) System register initialization technique employing a non-volatile/read only memory
CN106227683A (en) Electronic equipment and information processing method
US6772328B1 (en) Dynamic initialization of processor module via motherboard interface
US20050207232A1 (en) Access method for a NAND flash memory chip, and corresponding NAND flash memory chip
JPH0719237B2 (en) Computer adapter card and computer system using the same
US8533439B2 (en) Elastic shared RAM array including contiguous instruction and data portions distinct from each other
US6934537B2 (en) Radio communication device, method of and program for rewriting boot program therefor
CN112860595B (en) PCI (peripheral component interconnect express) equipment or PCIE (peripheral component interconnect express) equipment, data access method and related assembly
CN100504712C (en) Version-programmable circuit module
JP3477306B2 (en) Extended input / output interface
CN101261585A (en) Method and system for updating microcontroller firmware
KR100486244B1 (en) Semiconductor device for initializing interfacing card with serial EEPROM and method thereof
CN101533384A (en) Dual processor controlling system sharing one program memory and method thereof
CN100386748C (en) Method and system for chip selecting of peripheral device in singe board computer
CN114281393A (en) Method and system for simultaneously programming multiple memory devices

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20090624