Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
Embodiment 1
Referring to Fig. 1, the embodiment of the invention provides a kind of interface single plate 10, comprising: at least one interface buckle 101 and loading inking device 102.
Load inking device 102, be used to obtain and according to the ID of each interface buckle 101, inquiry obtains the service logic file destination that all mate with each interface buckle 101 from storage medium, and the service logic file destination of selecting to mate loads configuration to himself.
Further, loading inking device 102 specifically can comprise: configuration mode is set to the primary scene programmable gate array and the complicated programmable logic device (PLD) of driven loading mode, is provided with the logical target file with value-added tax function in the complicated programmable logic device (PLD);
Complicated programmable logic device (PLD), be used to obtain and according to the ID of each interface buckle 101, inquiry obtains the type of the service logic of all mating with each interface buckle 101 from storage medium, type according to service logic, inquiry obtains the memory address of the type corresponding service logical target file of service logic from storage medium, from memory address, read the service logic file destination, produce the loading configuration sequential corresponding with the primary scene programmable gate array according to the service logic file destination; Or
Loading inking device 102 specifically can comprise: secondary scene programmable gate array and configuration mode that configuration mode is set to driven loading mode are set to initiatively the 3rd field programmable gate array of loading mode;
The 3rd field programmable gate array, be used for when powering on, the logical target file that loading is obtained from storage medium with value-added tax function, after the loading complete has the logical target file of value-added tax function, obtain and according to the ID of each interface buckle 101, inquiry obtains the type of the service logic of all mating with each interface buckle 101 from storage medium, type according to service logic, inquiry obtains the memory address of the type corresponding service logical target file of service logic from storage medium, from memory address, read the service logic file destination, produce the loading configuration sequential corresponding with secondary scene programmable gate array according to the service logic file destination; Or
Loading inking device 102 specifically can comprise: configuration mode is set to initiatively the 4th field programmable gate array and total wire maintainer of loading mode;
The 4th field programmable gate array, be used for when powering on, the logical target file that loading is obtained from storage medium with value-added tax function, after the loading complete has the logical target file of value-added tax function, obtain and according to the ID of each interface buckle 101, inquiry obtains the type of the service logic of all mating with each interface buckle 101 from storage medium, type according to service logic, inquiry obtains the type of the service logic of all mating with each interface buckle 101 from storage medium, type according to service logic, inquiry obtains the memory address of the type corresponding service logical target file of service logic from storage medium, from memory address, read the service logic file destination, produce the loading configuration sequential corresponding with himself according to the service logic file destination;
Total wire maintainer, be used for when powering on, for the 4th field programmable gate array provides the memory address of the logical target file with value-added tax function in storage medium, after the inquiry of the 4th field programmable gate array obtains the memory address of service logic file destination, the memory address of outgoing traffic logical target file in storage medium, and read in the process of service logic file destination at the 4th field programmable gate array, memory address is kept.
The described interface single plate of the embodiment of the invention, realize the selection of service logic file destination and load configuration by loading inking device (promptly passing through hardware mode), having reduced the service logic file destination selects and loads the time of disposing, and the selection of service logic file destination and the complete hardware of loading configuration realize that cost is low, reliability is high; And do not need the CPU of service board to participate in, be applicable to the occasion that interface and business processing can be separated, and do not take GPIO (the General Purpose Input/Output of CPU, general input and output) pin, do not need the extra mechanism that expands the GPIO pin that increases, reduced dependence the GPIO pin of CPU; In addition, can select and load configuration correspondent service logic file destination, really realize " a plate multi-service ", can reduce veneer quantity, reduce and produce and maintenance cost, save valuable backboard groove position resource according to current concrete interface buckle.
Embodiment 2
Load inking device in the embodiment of the invention and comprise that configuration mode is set to a FPGA and CPLD (the Complex Programmable Logic Device of driven loading mode, complicated programmable logic device (PLD)), referring to Fig. 2, the embodiment of the invention provides a kind of interface single plate 20, comprise: N interface buckle 201, configuration mode are set to a FPGA202 and the CPLD203 of driven loading mode, wherein, be provided with the logical target file with value-added tax function among the CPLD203, N is a positive integer.
CPLD203, be used to obtain and according to the ID of each interface buckle 201, inquiry obtains the type of the service logic of all mating with each interface buckle 201 from storage medium, type according to service logic, inquiry obtains the memory address of the type corresponding service logical target file of service logic from storage medium, from memory address, read the service logic file destination, produce the loading configuration sequential corresponding with a FPGA202 according to the service logic file destination.
Wherein, storage medium can be the memory device that FLASH, SSD (Solid State Disk, solid state hard disc) etc. can store data.Store the type of all service logics that each interface buckle can be adaptive in the storage medium, and the information such as memory address of each service logic file destination in storage medium of the type correspondence of each service logic.In the embodiment of the invention, each interface buckle can be adaptive all service logics type with the tabulation form store, form interface buckle and the supporting table of service logic, the memory address of each service logic file destination in storage medium of the type correspondence of each service logic stored with the form of tabulation, form in service logic and the supporting table in storage medium address, be in the embodiment of the invention, store the supporting table of interface buckle and service logic in the storage medium, and the supporting table of service logic and storage medium address.But need to prove, be not limited to store above-mentioned information, can select any feasible mode according to concrete application feature in the practical application, this is not done concrete qualification with the form of tabulation.And other similar places can be adopted with identical herein method and be realized in the literary composition, give unnecessary details no longer one by one.
In storage medium, store the supporting table of interface buckle and service logic, and during the supporting table in service logic and storage medium address, CPLD203, specifically be used to obtain and according to the ID of each interface buckle 201, the type that interface buckle in the inquiry storage medium and the supporting table of service logic obtain each interface buckle 201 corresponding service logic, type according to service logic, the supporting table of service logic and storage medium address in the inquiry storage medium, obtain the memory address of the type corresponding service logical target file of service logic, from memory address, read the service logic file destination, produce the loading configuration sequential corresponding with a FPGA202 according to the service logic target.
For the ease of understanding the embodiment of the invention better, adopt FALSH with storage medium below, store the supporting table of interface buckle and service logic in the storage medium, and the supporting table of service logic and storage medium address is that example is described further:
Particularly, the supporting table of interface buckle and service logic is stored in the low order address space of FALSH, with the ID of interface buckle as some position of FLASH address wire (such as address bit[13:8] totally six), the ID (using to make verification scheme) of interface buckle is deposited in 0 address offset space, follow-up each address space is stored the type of the service logic that this interface buckle can be adaptive successively, after the type stores of all service logics that can be adaptive with this interface buckle finishes, with 0xFF as interface buckle and the supporting end of list (EOL) symbol of service logic.The supporting table of service logic and storage medium address is stored in the low order address space of FALSH, with the type i D of service logic as some position of FLASH address wire (such as address bit[9:3] totally seven), the type i D (using to make verification scheme) of service logic is deposited in 0 address offset space, the memory address of type in FALSH of this service logic stored in follow-up 4 byte address spaces, and represents the illegal address value with 0xFFFFFFF.Correspondingly the query script of CPLD is as follows: CPLD obtains the ID of interface buckle, form FLASH search start address with the ID (not comprising the ID check bit) of interface buckle and the base address of this interface buckle and the supporting table of service logic region, such as Addr[26:14]=0; Addr[13:8]=ID[5:0], and address bit bit[7:0] for searching for the internal pointer of each " the supporting table of interface buckle and service logic ", CPLD reads a Byte (byte) data each time and comes in, remove (bit7 is used for the integrality of the type of service logic is carried out verification) behind the parity check bit most significant digit bit7, the type that loads the service logic of the coupling that disposes with the needs of choosing compares, if the type of the service logic that needs then starts the inquiry of " the supporting table of service logic and storage medium address ", type if not the service logic of needs, cyclic address change then, continue to compare, up to the type that inquires the service logic that needs or till running into the interface buckle with the supporting end of list (EOL) of service logic and according with the type of next service logic.After startup inquiry " the supporting table of service logic and storage medium address " obtains the memory address of service logic file destination in FLASH, read and load this service logic file destination of configuration.Need to prove that other similar places can be adopted with identical method and be realized in the literary composition, give unnecessary details no longer one by one herein.And, be not limited to method described herein, can adopt other any feasible methods to realize according to the practical application situation.
The described interface single plate of the embodiment of the invention, realize the selection of service logic file destination and load configuration by CPLD, having reduced the service logic file destination selects and loads the time of disposing, and the selection of service logic file destination and the complete hardware of loading configuration realize that cost is low, reliability is high; And do not need the CPU of service board to participate in, and be applicable to the occasion that interface and business processing can be separated, and do not take the GPIO pin of CPU, do not need the extra mechanism that expands the GPIO pin that increases, reduced dependence to the GPIO pin of CPU; Further, can select and load configuration correspondent service logic file destination, really realize " a plate multi-service ", can reduce veneer quantity, reduce and produce and maintenance cost, save valuable backboard groove position resource according to current concrete interface buckle; In addition, the selection of service logic file destination and loading configuration are independent of the CPU of service board, the supporting table of supporting table of interface buckle and service logic and service logic and storage medium address carries with storage medium, provides professional flexibly and has expanded and good software and hardware decoupling zero ability.
Embodiment 3
Load inking device in the embodiment of the invention and comprise that configuration mode is set to the 2nd FPGA of driven loading mode and the 3rd FPGA that configuration mode is set to the active loading mode, referring to Fig. 3, the embodiment of the invention provides a kind of interface single plate 30, comprise: N interface buckle 301, configuration mode are set to the 2nd FPGA302 of driven loading mode and the 3rd FPGA303 that configuration mode is set to the active loading mode, wherein, N is a positive integer.
The 3rd FPGA303, be used for when powering on, the logical target file that loading is obtained from storage medium with value-added tax function, after the loading complete has the logical target file of value-added tax function, obtain and according to the ID of each interface buckle 301, inquiry obtains the type of the service logic of all mating with each interface buckle 301 from storage medium, type according to service logic, inquiry obtains the memory address of the type corresponding service logical target file of service logic from storage medium, from memory address, read the service logic file destination, produce the loading configuration sequential corresponding with the 2nd FPGA302 according to the service logic file destination.
Need to prove, the configuration mode of the 3rd FPGA303 is set to initiatively loading mode, promptly the 3rd FPGA303 is configuration MASTER (initiatively), the 3rd FPGA303 initiatively selects the logical target file that obtains having value-added tax function from the fixed area of storage medium when powering on, loading has the logical target file of value-added tax function, after loading is finished, promptly have with example 2 in the consistent function of CPLD203, and be provided with logical target file among the CPLD203 in the example 2 with value-added tax function, and after power down, can not lose, do not need to reload when therefore powering on yet.Other implementation processes are similar to Example 2, give unnecessary details no longer one by one herein.
The described interface single plate of the embodiment of the invention, realize the selection of service logic file destination and load configuration by the 3rd FPGA, having reduced the service logic file destination selects and loads the time of disposing, and the selection of service logic file destination and the complete hardware of loading configuration realize that cost is low, reliability is high; And do not need the CPU of service board to participate in, and be applicable to the occasion that interface and business processing can be separated, and do not take the GPIO pin of CPU, do not need the extra mechanism that expands the GPIO pin that increases, reduced dependence to the GPIO pin of CPU; Further, can select and load configuration correspondent service logic file destination, really realize " a plate multi-service ", can reduce veneer quantity, reduce and produce and maintenance cost, save valuable backboard groove position resource according to current concrete interface buckle; Further, the selection of service logic file destination and loading configuration are independent of the CPU of service board, the supporting table of supporting table of interface buckle and service logic and service logic and storage medium address carries with storage medium, provides professional flexibly and has expanded and good software and hardware decoupling zero ability.In addition, the FPGA resource is abundanter than CPLD, can make that the selection and the loading configuration of service logic file destination are intelligent more, the selection of service logic file destination and loading configuration speed are faster, can further reduce the time of selection of service logic file destination and loading configuration.
Embodiment 4
Load inking device in the embodiment of the invention and comprise that configuration mode is set to initiatively the 4th FPGA and total wire maintainer of loading mode, referring to Fig. 4, the embodiment of the invention provides a kind of interface single plate 40, comprise: N interface buckle 401, configuration mode are set to initiatively the 4th FPGA402 and total wire maintainer 403 of loading mode, wherein, N is a positive integer.
The 4th FPGA402, be used for when powering on, the logical target file that loading is obtained from storage medium with value-added tax function, after the loading complete has the logical target file of value-added tax function, obtain and according to the ID of each interface buckle 401, inquiry obtains the type of the service logic of all mating with each interface buckle 401 from storage medium, type according to service logic, inquiry obtains the type of the service logic of all mating with each interface buckle 401 from storage medium, type according to service logic, inquiry obtains the memory address of the type corresponding service logical target file of service logic from storage medium, from memory address, read the service logic file destination, produce the loading configuration sequential corresponding with himself according to the service logic file destination.
Total wire maintainer 403, be used for when powering on, for the 4th field programmable gate array provides the memory address of the logical target file with value-added tax function in storage medium, after the inquiry of the 4th field programmable gate array obtains the memory address of service logic file destination, the memory address of outgoing traffic logical target file in storage medium, and read in the process of service logic file destination at the 4th field programmable gate array, memory address is kept.
Particularly, when powering on, the output pin that links to each other with storage medium of total wire maintainer 403 is all exported high-impedance state, choose the memory address of logical target file in storage medium with value-added tax function by the last pull down resistor that links to each other with those output pins of total wire maintainer 403, thereby the 4th FPGA402 can be when powering on, initiatively from this memory address, load logical target file with value-added tax function, after loading is finished, promptly have with example 2 in the consistent function of CPLD203, but because the embodiment of the invention has only one the 4th FPGA402, therefore when the 4th FPGA402 inquires about the memory address of service logic file destination in storage medium that obtains mating with each interface buckle 401 from storage medium after, the output pin that links to each other with storage medium of total wire maintainer 403 is exported this memory address, and read in the process of this service logic file destination at the 4th field programmable gate array, this memory address is kept, thereby make the 4th FPGA402 can from the memory address of file destination storage medium of the service logic correspondence of this coupling, load the service logic file destination of this coupling of configuration.And, need to prove, can select to use several pins of total wire maintainer 403 to link to each other according to the practical application situation, and generally select the output pin of total wire maintainer 403 to link to each other with the high address line of storage medium for the ease of realizing with several address wires of storage medium.
The described interface single plate of the embodiment of the invention, realize the selection of service logic file destination and load configuration by the 4th FPGA, having reduced the service logic file destination selects and loads the time of disposing, and the selection of service logic file destination and the complete hardware of loading configuration realize that cost is low, reliability is high; And do not need the CPU of service board to participate in, and be applicable to the occasion that interface and business processing can be separated, and do not take the GPIO pin of CPU, do not need the extra mechanism that expands the GPIO pin that increases, reduced dependence to the GPIO pin of CPU; Further, can select and load configuration correspondent service logic file destination, really realize " a plate multi-service ", can reduce veneer quantity, reduce and produce and maintenance cost, save valuable backboard groove position resource according to current concrete interface buckle; Further, the selection of service logic file destination and loading configuration are independent of the CPU of service board, the supporting table of supporting table of interface buckle and service logic and service logic and storage medium address carries with storage medium, provides professional flexibly and has expanded and good software and hardware decoupling zero ability.In addition, promptly can realize the selection of service logic file destination and load configuration, need not increase the loading inking device separately by total wire maintainer and the 4th FPGA, escapable cost, and be convenient to arrangement space.
Embodiment 5
Referring to Fig. 5, the embodiment of the invention provides a kind of interface single plate 50, comprising: N interface buckle 501 and load inking device 502, wherein, N is a positive integer.
Load inking device 502, be used to judge whether exist the CPU appointment of service board service logic file destination, historical record the service logic file destination whether effectively and each interface buckle 501 whether on the throne, select the correspondent service logic file destination that himself is loaded configuration according to judged result.
Further, loading inking device 502 specifically can comprise: configuration mode is set to a FPGA and the programmable logic device (PLD) of driven loading mode.
Programmable logic device (PLD) specifically can comprise:
First loads the specified services logic module, be used for service logic file destination when the CPU appointment that has service board, have at least an interface buckle 501 on the throne, and when the service logic file destination of appointment and each interface buckle 501 on the throne all mate, select the service logic file destination of appointment that the one FPGA is loaded configuration; Or
First loads the historical record business logic modules, be used for not exist the service logic file destination of the CPU appointment of service board, the service logic file destination of historical record is effective, have at least an interface buckle 501 on the throne, and when the service logic file destination of historical record and each interface buckle 501 on the throne all mate, select the service logic file destination of historical record that the one FPGA is loaded configuration; Or
The first load default business logic modules, be used for not exist the service logic file destination of the CPU appointment of service board, the service logic file destination of historical record is invalid, and when each interface buckle 501 is all not on the throne, select the service logic file destination of acquiescence that the one FPGA is loaded configuration; Or
First loads the coupling business logic modules, be used for service logic file destination when the CPU appointment that has service board, have at least an interface buckle 501 on the throne, and when at least one in the service logic file destination of appointment and the interface buckle 501 on the throne do not match, inquiry obtains the service logic file destination that all mate with each interface buckle 501 on the throne from storage medium, and the service logic file destination of selecting to mate loads configuration to a FPGA; Or
Second loads the coupling business logic modules, be used for not exist the service logic file destination of the CPU appointment of service board, the service logic file destination of historical record is effective, have at least an interface buckle 501 on the throne, and when at least one in the service logic file destination of historical record and the interface buckle 501 on the throne do not match, inquiry obtains the service logic file destination that all mate with each interface buckle 501 on the throne from storage medium, and the service logic file destination of selecting to mate loads configuration to a FPGA; Or
The 3rd loads the coupling business logic modules, be used for not exist the service logic file destination of the CPU appointment of service board, the service logic file destination of historical record is invalid, and when having at least an interface buckle 501 on the throne, inquiry obtains the service logic file destination that all mate with each interface buckle 501 on the throne from storage medium, and the service logic file destination of selecting to mate loads configuration to a FPGA.
The one FPGA is used for after the correspondent service logic file destination has been disposed in loading, carries out and the service logic file destination corresponding business that loads configuration.
Further, programmable logic device (PLD) is specially CPLD, is provided with the logical target literary composition with value-added tax function among the CPLD; Or
Programmable logic device (PLD) is specially configuration mode and is set to initiatively the 2nd FPGA of loading mode, and the 2nd FPGA loads the logical target file with value-added tax function that obtains from storage medium when powering on.
Further, first loads the specified services logic module, also be used for when the service logic file destination of CPU appointment that have service board, and each interface buckle 501 selects the service logic file destination of appointment that the one FPGA is loaded configuration when all not on the throne;
Further, first loads the historical record business logic modules, also be used for not exist the service logic file destination of the CPU appointment of service board, the service logic file destination of historical record is effective, and when interface buckle 501 is all not on the throne, select the service logic file destination of historical record that the one FPGA is loaded configuration.
Further, loading inking device 502 specifically can comprise: configuration mode is set to initiatively the 3rd FPGA and total wire maintainer of loading mode.
The 3rd FPGA loads the logical target file with value-added tax function that obtains from storage medium when powering on, the 3rd FPGA specifically can comprise:
Second loads the specified services logic module, be used for service logic file destination when the CPU appointment that has service board, have at least an interface buckle 501 on the throne, and when the service logic file destination of appointment and each interface buckle 501 on the throne all mate, select the service logic file destination of appointment that the 3rd FPGA is loaded configuration; Or
Second loads the historical record business logic modules, be used for not exist the service logic file destination of the CPU appointment of service board, the service logic file destination of historical record is effective, have at least an interface buckle 501 on the throne, and when the service logic file destination of historical record and each interface buckle 501 on the throne all mate, select the service logic file destination of historical record that the 3rd FPGA is loaded configuration; Or
The second load default business logic modules, be used for not exist the service logic file destination of the CPU appointment of service board, the service logic file destination of historical record is invalid, and when each interface buckle 501 is all not on the throne, select the service logic file destination of acquiescence that the 3rd FPGA is loaded configuration; Or
The 4th loads the coupling business logic modules, be used for service logic file destination when the CPU appointment that has service board, have at least an interface buckle 501 on the throne, and when at least one in the service logic file destination of appointment and the interface buckle 501 on the throne do not match, inquiry obtains the service logic file destination that all mate with each interface buckle 501 on the throne from storage medium, and the service logic file destination of selecting to mate loads configuration to the 3rd FPGA; Or
Slender acanthopanax is carried the coupling business logic modules, be used for not exist the service logic file destination of the CPU appointment of service board, the service logic file destination of historical record is effective, have at least an interface buckle 501 on the throne, and when at least one in the service logic file destination of historical record and the interface buckle 501 on the throne do not match, inquiry obtains the service logic file destination that all mate with each interface buckle 501 on the throne from storage medium, and the service logic file destination of selecting to mate loads configuration to the 3rd FPGA; Or
The 6th loads the coupling business logic modules, be used for not exist the service logic file destination of the CPU appointment of service board, the service logic file destination of historical record is invalid, and when having at least an interface buckle 501 on the throne, inquiry obtains the service logic file destination that all mate with each interface buckle 501 on the throne from storage medium, and the service logic file destination of selecting to mate loads configuration to the 3rd FPGA.
The 3rd FPGA just carries out the service logic file destination corresponding business that disposes with loading after the correspondent service logic file destination has been disposed in loading.
Further, second loads the specified services logic module, also be used for when the service logic file destination of CPU appointment that have service board, and each interface buckle 501 selects the service logic file destination of appointment that the 3rd FPGA is loaded configuration when all not on the throne;
Further, second loads the historical record business logic modules, also be used for not exist the service logic file destination of the CPU appointment of service board, the service logic file destination of historical record is effective, and when interface buckle 501 is all not on the throne, select the service logic file destination of historical record that the 3rd FPGA is loaded configuration.
Further, referring to Fig. 6, interface single plate 50 also comprises:
Notifying device 503, be used for after the correspondent service logic file destination has been disposed in 502 loadings of loading inking device, receive the indication of carrying out the switching of service logic file destination of the CPU transmission of service board, and the service logic file destination and each the interface buckle 501 that switch when indication all mate, and when the service logic file destination that indication is switched existed, the CPU of informing business veneer carried out hot plug.
Need to prove, notifying device 503 can be to be independent of the equipment that inking device 502 is provided with separately that loads, also can be to be set to an equipment, can be provided with flexibly, this not done concrete qualification according to the practical application situation with loading inking device 502.
The described interface single plate of the embodiment of the invention, realize the selection of service logic file destination and load configuration by loading inking device (promptly passing through hardware mode), having reduced the service logic file destination selects and loads the time of disposing, and the selection of service logic file destination and the complete hardware of loading configuration realize that cost is low, reliability is high; And do not need the CPU of service board to participate in, and be applicable to the occasion that interface and business processing can be separated, and do not take the GPIO pin of CPU, do not need the extra mechanism that expands the GPIO pin that increases, reduced dependence to the GPIO pin of CPU; Further, can select and load configuration correspondent service logic file destination, really realize " a plate multi-service ", can reduce veneer quantity, reduce and produce and maintenance cost, save valuable backboard groove position resource according to current concrete interface buckle; In addition, can be according to the service logic file destination that whether has the CPU appointment of service board, the service logic file destination of historical record whether effectively and each interface buckle whether on the throne, select and load configuration correspondent service logic file destination, make and whole process intelligence more can realize selecting and load configuration service logical target file better.
Embodiment 6
Referring to Fig. 7, the method that the embodiment of the invention provides a kind of service logic to load comprises:
601: judge whether to exist the CPU appointment of service board service logic file destination, historical record the service logic file destination whether effectively and each interface buckle whether on the throne.
602: select the correspondent service logic file destination that this locality is loaded configuration according to judged result.
Further, select the correspondent service logic file destination that this locality is loaded configuration, specifically can comprise according to judged result:
Service logic file destination when the CPU appointment that has service board, have at least an interface buckle on the throne, and when the service logic file destination of appointment and each interface buckle on the throne all mate, select the service logic file destination of appointment that this locality is loaded configuration; Or
Service logic file destination when the CPU appointment that does not have service board, the service logic file destination of historical record is effective, have at least an interface buckle on the throne, and when the service logic file destination of historical record and each interface buckle on the throne all mate, select the service logic file destination of historical record that this locality is loaded configuration; Or
When the service logic file destination of the CPU appointment that does not have service board, the service logic file destination of historical record is invalid, and each interface buckle selects the service logic file destination of acquiescence that this locality is loaded configuration when all not on the throne; Or
Service logic file destination when the CPU appointment that has service board, when having at least an interface buckle on the throne, and when at least one in the service logic file destination of appointment and the interface buckle on the throne do not match, inquiry obtains the service logic file destination that all mates with each interface buckle on the throne from storage medium, selects the service logic file destination of coupling that this locality is loaded configuration; Or
Service logic file destination when the CPU appointment that does not have service board, the service logic file destination of historical record is effective, has on the throne connecing of interface buckle at least, and when at least one in the service logic file destination of historical record and the interface buckle on the throne do not match, inquiry obtains the service logic file destination that all mates with each interface buckle on the throne from storage medium, selects the service logic file destination of coupling that this locality is loaded configuration; Or
Service logic file destination when the CPU appointment that does not have service board, the service logic file destination of historical record is invalid, and when having at least an interface buckle on the throne, inquiry obtains the service logic file destination that all mates with each interface buckle on the throne from storage medium, selects the service logic file destination of coupling that this locality is loaded configuration.
Further, inquiry obtains the service logic file destination that all mates with each interface buckle on the throne from storage medium, selects the service logic file destination of coupling that this locality is loaded configuration, specifically comprises:
Obtain and according to the ID of each interface buckle on the throne, inquiry obtains the type of the service logic of all mating with each interface buckle on the throne from storage medium;
According to the type of service logic, inquiry obtains the memory address of the type corresponding service logical target file of service logic from storage medium, reads the service logic file destination from memory address;
Produce and local corresponding loading configuration sequential according to the service logic file destination.
Further, select the correspondent service logic file destination that this locality is loaded configuration, can also comprise according to judged result:
When the service logic file destination of the CPU appointment that has service board, and each interface buckle selects the service logic file destination of appointment that this locality is loaded configuration when all not on the throne; Or
When the service logic file destination of the CPU appointment that does not have service board, the service logic file destination of historical record is effective, and the interface buckle selects the service logic file destination of historical record that this locality is loaded configuration when all not on the throne.
Further, referring to Fig. 8, after the correspondent service logic file destination had been disposed in loading, this method can also comprise:
603: receive the indication of carrying out the switching of service logic file destination of the CPU transmission of service board.
604: the service logic file destination and each the interface buckle that switch when indication all mate, and the service logic file destination of indication switching is when existing, and the CPU of informing business veneer carries out hot plug.
The method that the described service logic of the embodiment of the invention loads, can be according to the service logic file destination that whether has the CPU appointment of service board, the service logic file destination of historical record whether effectively and each interface buckle whether on the throne, select and load configuration correspondent service logic file destination, make and whole process intelligence more can realize selecting and load configuration service logical target file better; And, by utilizing identical interface buckle, switch different business logical target file and come adaptive specific business, realized product normalization and hardware and software platform, save a large amount of material resources and human cost.
Embodiment 7
Referring to Fig. 9, the method that the embodiment of the invention provides a kind of service logic to load comprises:
701: load the service logic file destination that inking device judges whether to exist the CPU appointment of service board, if then carry out 702; Otherwise, carry out 704.
Wherein, can be set to the service logic file destination that different values represents whether to exist appointment by the appointment bit load registers that loads the inking device correspondence particularly, as specify bit load registers to be set to the service logic file destination that 0X11 then represents to exist appointment, specify bit load registers to be set to the service logic file destination that 0XFF then represents not exist appointment.
702: load inking device and judge whether to have at least an interface buckle on the throne, if then carry out 703; Otherwise, carry out 710.
703: load the ID that inking device obtains each interface buckle on the throne,, judge whether the service logic file destination of appointment and each interface buckle on the throne all mate, if then carry out 710 according to the ID of each interface buckle on the throne; Otherwise, carry out 707.
704: load inking device and judge whether the service logic file destination of historical record is effective, if then carry out 705; Otherwise, carry out 708.
Can load historical record district (particular address in the storage medium, the user preserves the type of the service logic that loaded last time) by checking logic, judge whether the service logic file destination of historical record is effective.
705: load inking device and judge whether to have at least an interface buckle on the throne, if then carry out 706; Otherwise, carry out 711.
706: load the ID that inking device obtains each interface buckle on the throne,, judge whether the service logic file destination of historical record and each interface buckle on the throne all mate, if then carry out 711 according to the ID of each interface buckle on the throne; Otherwise, carry out 707.
707: load the ID of inking device according to each interface buckle on the throne, inquire about the service logic file destination that all mates with each interface buckle on the throne, judge whether the service logic file destination that all mates with each interface buckle on the throne exists, if then carry out 712; Otherwise, carry out 713.
708: load inking device and judge whether to have at least an interface buckle on the throne, if then carry out 709; Otherwise, carry out 714.
709: obtain the ID of each interface buckle on the throne, carry out 707 then.
710: load inking device himself is loaded the service logic file destination of appointment, finish then.
711: load inking device himself is loaded the service logic file destination of historical record, finish then.
712: load inking device himself is loaded the service logic file destination of coupling, finish then.
713: the loading inking device reports and does not have the service logic file destination that all mates with each interface buckle on the throne, finishes then.
Can report the CPU of service board particularly, and the CPU of service board upgrades to the service logic file destination after receiving the information that reports, so that follow-up use.
714: load the service logic file destination of inking device load default, finish then.
Load the service logic file destination of an acquiescence, to guarantee to carry out some basic business processing; The service logic file destination of acquiescence can be provided with according to the practical application situation, as can from interface buckle corresponding service logical target file, choosing a service logic file destination wantonly as acquiescence service logic file destination, or in the option interface buckle corresponding service logical target file first do not done concrete qualification as acquiescence service logic file destination etc. to this.
Need to prove, when can carry with a kind of interface buckle different when professional (such as E1 interface buckle, can SS7 (Signaling System 7 be arranged loaded service, No.7 signalling system), ATM (Asynchronous Transfer Mode, asynchronous transfer mode) etc.), after by above-mentioned steps FPGA having been loaded certain service logic file destination, can be according to current needs, FPGA is loaded another service logic file destination, promptly can utilize identical interface buckle (as E1 interface buckle), switch different service logic file destinations and come adaptive specific business, further, referring to Figure 10, the method that this service logic loads also comprises:
801: load inking device after the correspondent service logic file destination has been disposed in loading, receive the indication of carrying out the switching of service logic file destination of the CPU transmission of service board.
Need to prove, because loading inking device is hardware single process state machine, there is not overtime situation, promptly loads CPU that inking device is bound at service board and sent and carry out the request of the CPU of response service veneer in the certain hour after the indication that the service logic file destination switches.
802: load the ID of inking device, judge whether the service logic file destination of indication switching and each interface buckle on the throne all mate, if then carry out 803 according to each interface buckle on the throne; Otherwise, carry out 804.
803: load the ID of inking device, judge whether the service logic file destination that indication is switched exists, if then carry out 805 according to each interface buckle on the throne; Otherwise, carry out 806.
804: it is not all to mate that the loading inking device reports the service logic file destination of indication switching and each interface buckle on the throne, finishes then.
Load inking device particularly and can report the CPU of service board.
805: the CPU that loads inking device informing business veneer carries out hot plug, finishes then.
806: load inking device and report the service logic file destination that indication is switched not exist, finish then.
Load inking device particularly and can report the CPU of service board, and the CPU of service board receive load the information that inking device reports after, can upgrade to the service logic file destination, so that follow-up use.And, need to prove that if behind the service logic file destination handover success, the CPU of service board will upgrade logic simultaneously and load the historical record district, to guarantee need not the to carry out blocked operation of service logic file destination next time when starting.
Need to prove, load inking device and can comprise that specifically configuration mode is set to a FPGA and the CPLD of driven loading mode; Or the loading inking device can comprise that specifically configuration mode is set to the 2nd FPGA of driven loading mode and the 3rd FPGA that configuration mode is set to the active loading mode; Or the loading inking device can comprise that specifically configuration mode is set to initiatively the 4th FPGA and total wire maintainer of loading mode.When loading inking device when comprising that configuration mode is set to FPGA of driven loading mode and CPLD, particularly, CPLD is used to judge whether exist the service logic file destination of the CPU appointment of service board, the service logic file destination of historical record whether effectively and each interface buckle whether all on the throne, according to judged result selection correspondent service logic file destination the one FPGA is loaded configuration.When the loading inking device is other two kinds of situations, can comprise a FPGA and CPLD, reach embodiment 3 and 4 and implement, give unnecessary details no longer one by one herein with reference to loading inking device.
The method that the described service logic of the embodiment of the invention loads, can be according to the service logic file destination that whether has the CPU appointment of service board, the service logic file destination of historical record whether effectively and each interface buckle whether on the throne, select and load configuration correspondent service logic file destination, make and whole process intelligence more can realize selecting and load configuration service logical target file better; And, by utilizing identical interface buckle, switch different business logical target file and come adaptive specific business, realized product normalization and hardware and software platform, save a large amount of material resources and human cost.
All or part of content in the technical scheme that above embodiment provides can realize that its software program is stored in the storage medium that can read by software programming, storage medium for example: the hard disk in the computing machine, CD or floppy disk.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.