Background technology
Described a kind of technology that is used to reduce business switching time in No. 200610149674.3 patent, the shortcoming of this technology is the calculating of configuration register and read-write operation are not proposed the method optimized.
Along with the development of Science and Technology, SDH equipment is more and more come into the terminal use, and people have proposed new requirement to its aspect such as volume, cost, reliability.Volume is little, light weight, price is low, business interface is abundant, adaptive capacity to environment is strong integrated miniaturization SDH equipment are arisen at the historic moment in this case.
Because the height of compact apparatus is integrated, be divided into the time slot configuration of several veneers originally, also be integrated in now on the veneer and realized.And compact apparatus has been mentioned certain height to cost, and the cost of CPU is also included the category of consideration naturally in.Based on top these two factors, time slot processing institute's time spent has just increased.Like this in business configuration with when switching, business is joined logical and to recover the needed time also elongated.
And for communication equipment, the consequence that present communication disruption causes also becomes more and more serious.The survivability of communication network has become crucial design to be considered, also becomes the important focus of the competition between market access environment lower network network operator or the service supplier.
Thereby, be badly in need of a kind of scheme and improve time slot configuration efficient.
Summary of the invention
In view of the problems of the prior art, the invention provides a kind of time-slot configuring method and time slot configuration device, be used to improve time slot configuration efficient.
The invention provides a kind of time-slot configuring method, it can may further comprise the steps: time slot preliminary treatment buffer memory is set; Distribute one or more logic timeslot numbers according to minimum cross granularity; After receiving time slot preliminary treatment order, carry out the time slot preliminary treatment, and the preliminary treatment result is stored in the time slot preliminary treatment buffer memory; And after receiving the time slot configuration order, according to the logic timeslot number that issues and the rank of intersecting, from time slot preliminary treatment buffer memory, take out register address and the register value that needs setting, and register value is write register address.
Wherein, above-mentioned time slot preliminary treatment comprises: the corresponding relation of logic time slot and physical slot by time is kept in the preliminary treatment buffer memory; And, calculate the register address and the register value of the required setting of different intersection rank respectively, and be stored in respectively in the time slot preliminary treatment buffer memory corresponding to each logic timeslot number.
According to the present invention, register address and register value are that index stores is in time slot preliminary treatment buffer memory with the logic timeslot number.Cross granularity is space division cross granularity or time-division cross granularity.
The present invention also provides a kind of time slot configuration device, and it can comprise: buffer memory is provided with the unit, is used to be provided with time slot preliminary treatment buffer memory; Allocation units are used for distributing one or more logic timeslot numbers according to minimum cross granularity; The time slot pretreatment unit is used for carrying out the time slot preliminary treatment after receiving time slot preliminary treatment order, and the preliminary treatment result is stored in the time slot preliminary treatment buffer memory; And dispensing unit, be used for after receiving the time slot configuration order, according to the logic timeslot number that issues and the rank of intersecting, from time slot preliminary treatment buffer memory, take out register address and the register value that needs setting, and register value is write register address.
Wherein, above-mentioned time slot pretreatment unit comprises: preserve module, be used for the corresponding relation of logic time slot and physical slot by time is kept at the preliminary treatment buffer memory; And computing module, be used for corresponding to each logic timeslot number, calculate the register address and the register value of the required setting of different intersection rank respectively, and be stored in respectively in the time slot preliminary treatment buffer memory.
Register address and register value are that index stores is in time slot preliminary treatment buffer memory with the logic timeslot number.Cross granularity is space division cross granularity or time-division cross granularity.
Thereby, adopting the present invention, the efficient of time slot configuration can obviously improve.Particularly at the compact apparatus of high integration, effect is particularly evident.
Other features and advantages of the present invention will be set forth in the following description, and, partly from specification, become apparent, perhaps understand by implementing the present invention.Purpose of the present invention and other advantages can realize and obtain by specifically noted structure in the specification of being write, claims and accompanying drawing.
Embodiment
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for description and interpretation the present invention, and be not used in qualification the present invention.
Fig. 1 is the flow chart according to time-slot configuring method of the present invention.As shown in Figure 1, this time-slot configuring method may further comprise the steps:
S102 is provided with time slot preliminary treatment buffer memory;
S104 distributes one or more logic timeslot numbers according to minimum cross granularity;
S106 after receiving time slot preliminary treatment order, carries out the time slot preliminary treatment, and the preliminary treatment result is stored in the time slot preliminary treatment buffer memory; And
S108, receive the time slot configuration order after, according to the logic timeslot number that issues and the rank of intersecting, taking out from time slot preliminary treatment buffer memory needs the register address and the register value that are provided with, and register value is write register address.
Wherein, above-mentioned time slot preliminary treatment comprises: the corresponding relation of logic time slot and physical slot by time is kept in the preliminary treatment buffer memory; And, calculate the register address and the register value of the required setting of different intersection rank respectively, and be stored in respectively in the time slot preliminary treatment buffer memory corresponding to each logic timeslot number.
Register address and register value are that index stores is in time slot preliminary treatment buffer memory with the logic timeslot number.Cross granularity is space division cross granularity or time-division cross granularity.
Fig. 2 is the flow chart according to the software processes of the embodiment of the invention, and the schematic diagram of the time slot configuration structure among Fig. 3 the present invention.Describe the detailed process of time slot processing method of the present invention in detail below with reference to Fig. 2 and Fig. 3.
As shown in Figure 3, comprised A, B, C, the operation of four modules of D in the cross time-slot configuration.Dispose a time slot and will operate the register of these four modules simultaneously.
As shown in Figure 2, specifically may further comprise the steps:
S202 opens up time slot preliminary treatment buffer memory;
S204, TU11 comes the assignment logic timeslot number according to minimum intersection particle;
S206, receive time slot preliminary treatment name, the corresponding relation of logic time slot and physical slot by time is saved in the preliminary treatment buffer memory. each logic timeslot number is calculated different intersection rank (AU4, AU3, TU3 respectively, TU12, TU11 etc.) A, B, C, all register addresss and the register value of the required setting of D module, being saved in the logic timeslot number is in the preliminary treatment buffer memory of index;
S208, whether the preliminary treatment time slot sets up.If then carried out for the 5th step, otherwise carried out for the 3rd step;
S210, the receiving slot configuration order. according to the logic timeslot number that issues and the rank of intersecting, from time slot preliminary treatment buffer memory, take out A, B, C, all register addresss of the required setting of D module and register value also are provided with respectively; And
S212, time slot configuration finishes, and returns S210.
Fig. 4 is the block diagram according to time slot configuration device 400 of the present invention.As shown in Figure 4, this time slot configuration device comprises: buffer memory is provided with unit 402, is used to be provided with time slot preliminary treatment buffer memory; Allocation units 404 are used for distributing one or more logic timeslot numbers according to minimum cross granularity; Time slot pretreatment unit 406 is used for carrying out the time slot preliminary treatment after receiving time slot preliminary treatment order, and the preliminary treatment result is stored in the time slot preliminary treatment buffer memory; And dispensing unit 408, be used for after receiving the time slot configuration order, according to the logic timeslot number that issues and the rank of intersecting, from time slot preliminary treatment buffer memory, take out register address and the register value that needs setting, and register value is write register address.
Wherein, above-mentioned time slot pretreatment unit 406 comprises: preserve module, be used for the corresponding relation of logic time slot and physical slot by time is kept at the preliminary treatment buffer memory; And computing module, be used for corresponding to each logic timeslot number, calculate the register address and the register value of the required setting of different intersection rank respectively, and be stored in respectively in the time slot preliminary treatment buffer memory.
Register address and register value are that index stores is in time slot preliminary treatment buffer memory with the logic timeslot number.Cross granularity is space division cross granularity or time-division cross granularity.
In sum, by the present invention, can obviously improve the efficient of time slot configuration, especially in highly integrated mini-plant, effect is especially obvious.
Be the preferred embodiments of the present invention only below, be not limited to the present invention, for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.