CN105718413B - A kind of channel alignment schemes, apparatus and system - Google Patents

A kind of channel alignment schemes, apparatus and system Download PDF

Info

Publication number
CN105718413B
CN105718413B CN201610025318.4A CN201610025318A CN105718413B CN 105718413 B CN105718413 B CN 105718413B CN 201610025318 A CN201610025318 A CN 201610025318A CN 105718413 B CN105718413 B CN 105718413B
Authority
CN
China
Prior art keywords
alignment
channel
data
secondary channels
field
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.)
Active
Application number
CN201610025318.4A
Other languages
Chinese (zh)
Other versions
CN105718413A (en
Inventor
王淑君
宣学雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Pango Microsystems Co Ltd
Original Assignee
Shenzhen Pango Microsystems 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 Shenzhen Pango Microsystems Co Ltd filed Critical Shenzhen Pango Microsystems Co Ltd
Priority to CN201610025318.4A priority Critical patent/CN105718413B/en
Publication of CN105718413A publication Critical patent/CN105718413A/en
Application granted granted Critical
Publication of CN105718413B publication Critical patent/CN105718413B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • G06F13/4291Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using a clocked protocol

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The present invention discloses a kind of channel alignment schemes, apparatus and system, and this method includes that a main channel is determined from channel set to be aligned, other are secondary channels;And identical alignment clock is configured to each channel, each channel reception data are transformed into the clock of the alignment clock and is stored in caching;If main channel, which receives in data, detects alignment field, according to the data cached alignment field searches range of each secondary channels of alignment field configuration detected, and detect each secondary channels it is data cached in whether have alignment field within the scope of corresponding alignment field searches;For main channel it is data cached and detect alignment field secondary channels it is data cached, according to the alignment field and current read buffer data address detected, read buffer data address is adjusted, according to the read buffer data address after adjustment, the read buffer data since the position of corresponding alignment field.The present invention solves the problems, such as that existing channel alignment scheme is incomplete by above technical scheme.

Description

A kind of channel alignment schemes, apparatus and system
Technical field
The present invention relates to field of communication technology more particularly to a kind of channel alignment schemes, apparatus and systems.
Background technology
In high speed serialization receive-transmit system, Physical Coding Sublayer (physical coding sub-layer, PCS) is completed The transmitting-receiving of data flow provides the functions such as coding, decoding, the alignment of the data flow in one or more channel.Generally require support Popular serial protocol, such as 1 gigabit Ethernet, 10 gigabit Ethernets (XAUI), PCI Express, Serial, RapidIO, SMPTE (The Society of Motion Picture and Television Engineers) support nothing Wire protocol, such as CPRI, OBSAI are easier to realize support various protocols for single channel, but to two or two For above channel, since the clock phase of each routing restoration is inconsistent, the alignment characters of different agreement, protocol requirement The region of search etc. is all inconsistent, and along with stone working clock frequency is higher, channel alignment realizes that difficulty is larger.
Prior art, including below step:The data that multichannel reaches are detected, according to the alignment field control detected Make the caching of each channel data;Data are read since the initial position for caching each channel data simultaneously.This scheme has to examine It after measuring alignment field can just start that data are written, and the data ability in each channel is removed in the additional control of needs when being aligned failure It realigns, these all have particular requirement to data format, and need additional control, from hardware realization underaction.
Invention content
A kind of channel alignment schemes of present invention offer, apparatus and system, it is incomplete to solve existing channel alignment scheme Problem.
In order to solve the above technical problems, the present invention uses following technical scheme:
A kind of channel alignment schemes, including:
A main channel is determined from channel set to be aligned, other are secondary channels;And configure identical alignment to each channel Each channel reception data are transformed into the clock of the alignment clock and are stored in caching by clock;
It is slow according to each secondary channels of alignment field configuration detected if main channel, which receives, detects alignment field in data The alignment field searches range of deposit data, and detect each secondary channels it is data cached in be within the scope of corresponding alignment field searches It is no to have alignment field;
For main channel it is data cached and detect alignment field secondary channels it is data cached, according to the alignment word detected Section and current read buffer data address adjust read buffer data address, according to the read buffer data address after adjustment, to reply The position of neat field starts read buffer data.
In some embodiments, during by each channel reception data deposit caching, further include:Detect each channel reception Testing result and each channel reception data are stored in caching by the alignment field in data together;
Whether there is alignment field tool during each secondary channels of detection are data cached within the scope of corresponding alignment field searches Body is:According to the testing result in caching detect each secondary channels it is data cached within the scope of corresponding alignment field searches whether There is alignment field.
In some embodiments, described to be specially to the identical alignment clock of each channel configuration:Data are received from main channel The middle recovered clock for obtaining main channel, configures the alignment clock in each channel to the recovered clock of main channel.
In some embodiments, if the main channel, which receives, detects alignment field in data, according to pair detected The data cached alignment field searches range of neat each secondary channels of field configuration, and detect each secondary channels it is data cached in corresponding Alignment field searches within the scope of whether have alignment field be specially:
If main channel receives and detects alignment field in data, main channel notifies neighboring later stage secondary channels, after described After level-one secondary channels receive notice, continue notice rear stage secondary channels again, until each secondary channels in the channel set to be aligned It is notified;And it is auxiliary that notified each secondary channels receive the alignment field configuration sheet detected in data according to main channel The data cached alignment field searches range in channel, in the same time, each secondary channels detect this secondary channels it is data cached in right Whether there is alignment field within the scope of the alignment field searches answered.
In some embodiments, above-mentioned channel alignment schemes further include preserving following information:The alignment word of each alignment channel Read buffer data address behind the position of section, and adjustment;Or the offset of read buffer data address.
In some embodiments, above-mentioned channel alignment schemes further include before preserving above- mentioned information:It is waited for described in judgement pair Whether each channel completes the adjustment of read buffer data address in neat channel set;If so, entering the step of preserving above- mentioned information.
A kind of channel alignment means, including:
Determining module, for determining a main channel from channel set to be aligned, other are secondary channels;
Clock configuration module, for configuring identical alignment clock to each channel;
Conversion module, the clock domain for each channel reception data to be transformed into the alignment clock;
Writing module is cached, for will be cached through the transformed each channel reception data deposit of clock domain;
Main channel is aligned field detection module, for detecting the alignment field in main channel reception data;
Range configuration module detects alignment field, according to the alignment detected if being received for main channel in data The data cached alignment field searches range of each secondary channels of field configuration;
Secondary channels be aligned field detection module, for detect each secondary channels it is data cached in corresponding alignment field searches Whether alignment field is had in range;
Cache read module, for for main channel it is data cached and detect alignment field secondary channels it is data cached, According to the alignment field and current read buffer data address detected, read buffer data address is adjusted, it is slow according to the reading after adjustment Deposit data address, the read buffer data since the position of corresponding alignment field.
In some embodiments, secondary channels alignment field detection module includes:
Each secondary channels are received the process of data write-in caching for the caching writing module by the first detection sub-module In, the alignment field in each secondary channels reception data is detected, testing result is obtained;
Second detection sub-module, for according to the testing result in caching detect corresponding secondary channels it is data cached in Whether there is alignment field within the scope of corresponding alignment field searches;
The caching writing module is used to the testing result and each secondary channels receiving data is stored in caching together.
In some embodiments, the clock configuration module, which is specifically used for receiving from main channel, obtains main channel in data Recovered clock configures the alignment clock in each channel to the recovered clock of main channel.
In some embodiments, above-mentioned channel alignment means, further include preserving module, pair for preserving each alignment channel The position of neat field, and the read buffer data address after adjustment;Or preserve the offset of read buffer data address.
In some embodiments, above-mentioned channel alignment means, further include judgment module, for judging the channel to be aligned Concentrate whether each channel completes the adjustment of read buffer data address;If so, the preserving module is notified to carry out above- mentioned information It preserves.
A kind of channel alignment, including:
Determination unit, for determining a main channel from channel set to be aligned, other are secondary channels;
Clock dispensing unit, for configuring identical alignment clock to each channel;
Converting unit, the clock domain for each channel reception data to be transformed into the alignment clock;
Main channel processing unit, for data deposit caching, detection master will to be received through the transformed main channel of clock domain Alignment field in channel reception data notifies that neighboring later stage is auxiliary if main channel, which receives in data, detects alignment field Channel;It is additionally operable to, according to the alignment field and current read buffer data address that detect, read buffer data address be adjusted, according to tune Read buffer data address after whole, the read buffer data since the position of corresponding alignment field;
At least one secondary channels processing unit, each secondary channels processing unit is used for will be auxiliary logical through transformed of clock domain Road receives data deposit caching, after receiving notice, to rear stage secondary channels transmission notice again until afterbody secondary channels;Root The data cached alignment field searches range of alignment field configuration this secondary channels detected in data is received according to main channel, is detected Whether there is alignment field within the scope of corresponding alignment field searches during this secondary channels is data cached;It is additionally operable to what basis detected It is aligned field and current read buffer data address, adjusts read buffer data address, according to the read buffer data address after adjustment, from The position of corresponding alignment field starts read buffer data.
In some embodiments, each secondary channels processing unit is specifically used for receiving this secondary channels into the mistake of data write-in caching Cheng Zhong detects the alignment field in each secondary channels reception data, obtains testing result, the testing result and this secondary channels are connect It receives data and is stored in caching together;And according to the testing result in caching detect this secondary channels it is data cached in corresponding Whether there is alignment field within the scope of alignment field searches.
In some embodiments, main channel processing unit, each secondary channels processing unit are additionally operable to preserve the alignment detected Read buffer data address behind the position of field, and adjustment;Or preserve the offset of read buffer data address.
In some embodiments, main channel processing unit is additionally operable to receive the grade that each secondary channels processing unit passes through interchannel The feedback information for joining signal transmission, judges according to the feedback information of each secondary channels processing unit in the channel set to be aligned Whether all channels, which complete, is aligned.
The present invention only detects alignment word by distinguishing main channel and secondary channels, secondary channels in main channel receives data Duan Hou just starts to have detected whether alignment field within the scope of corresponding alignment field searches, finally, finds each of alignment field Channel (including main channel) adjusts the address of read buffer data by alignment of data.As long as secondary channels receive data and are connect with main channel Data are received there are corresponding offset, when losing alignment or data packet format changes etc., need not additionally emptied the cache, you can real It is now constantly aligned with main channel, the flexibility of design is increased while not increasing design complexities.
Further, synchronous to detect in each channel reception data during being cached to each channel reception data Alignment field, for each secondary channels, then by testing result and each secondary channels receive data together be stored in caching, connect in main channel It receives after detecting alignment field in data, for each secondary channels, then by caching within the scope of corresponding alignment field searches The testing result detected whether alignment field, further improve the detection efficiency of alignment field, improve alignment effect Rate.
Further, the address of read buffer data will be adjusted in each channel (including main channel) for finding alignment field to be counted The position for preserving corresponding alignment field after alignment and the read buffer data address after adjustment;Or preserve read buffer The offset of data address.So if since channel failure or other reasons lose alignment, do not need to remove channel Data, it is only necessary to recalculate offset.
Furthermore, it is possible to using the cascade signal transmitted in interchannel, the alignment of multichannel is realized.Specifically:It examines main channel It measures after having alignment field in this main channel reception data, main channel notifies rear stage secondary channels, the rear stage secondary channels to receive To after notice, continue notice rear stage secondary channels again, until each secondary channels are notified in channel set to be aligned;It is notified Each secondary channels are while notified or delay certain time receives the alignment field that detects in data according to main channel Configure the data cached alignment field searches range of this secondary channels, and detect this secondary channels it is data cached in corresponding alignment word Whether section has alignment field in search range, and finally, each channel can read according to the alignment field detected and currently slow simultaneously Deposit data address adjusts read buffer data address, according to the read buffer data address after adjustment, from the position of corresponding alignment field Start read buffer data, realizes channel alignment.
Description of the drawings
Fig. 1 is the flow chart for the channel alignment schemes that one embodiment of the invention provides;
Fig. 2 is the flow chart for the channel alignment schemes that another embodiment of the present invention provides;
Fig. 3 is the schematic diagram for the channel alignment means that one embodiment of the invention provides;
Fig. 4 is the schematic diagram for the channel alignment that one embodiment of the invention provides.
Specific implementation mode
Channel set to be aligned in the present invention can be all channels or passage portion in system, include at least two A channel.Data can not form correct data packet before alignment of data, in order to realize alignment, in the data in each channel It would generally be embedded in special alignment field at certain intervals, since the interchannel received has offset, data are generally advanced The reading address realization that row caching adjusts read buffer data again goes to deviate.
The design of the present invention is further described below by specific embodiment.
As shown in Figure 1, the flow chart of the channel alignment schemes provided for one embodiment of the invention, includes mainly following step Suddenly:
S101, a main channel is determined from channel set to be aligned, other are secondary channels;And it is configured to each channel identical It is aligned clock, each channel reception data are transformed into the clock of the alignment clock and is stored in caching.
Preferably, the mode of identical alignment clock, Ke Yiwei are configured:It is received from main channel and obtains main channel in data Recovered clock configures the alignment clock in each channel to the recovered clock of main channel.It configures identical alignment clock and can allow and wait for All channels that alignment channel is concentrated are under the same alignment clock, convenient for being controlled by the detection of the alignment field to main channel Make the alignment in each channel.The mode that the recovered clock that main channel is obtained in data is received from main channel can be received from main channel The recovered clock of main channel is recovered in data.
Each channel reception data are transformed into the clock of the alignment clock and are stored in caching and are specifically as follows:By each channel It receives data and passes through asynchronous buffer module, the clock of write-in is the recovered clock in this channel, reads data then using by step S101 matches the alignment clock postponed, can complete clock domain conversion in this way, the reception data in each channel are in the case where being aligned clock. And then it will be through the transformed each channel reception data deposit caching of clock domain.
Asynchronous buffer module for example can be that asynchronous FIFO (First Input First Output) or asynchronous address autoincrement type are deposited at random Access to memory (RAM).
If S102, main channel, which receive, detects alignment field in data, each auxiliary according to the alignment field configuration detected The data cached alignment field searches range in channel, and detect each secondary channels it is data cached in corresponding alignment field searches model Whether there is alignment field in enclosing.
In step S101, during each channel reception data are stored in caching, each channel of detection can be synchronized and connect The alignment field in data is received, for secondary channels, then testing result and reception data are stored in caching together, in this case, In step S102, can according to the testing result in caching, come detect each secondary channels it is data cached in corresponding alignment field Whether alignment field is had in search range, due to having carried out the detection of alignment field, step in step s 102 S102 is detected according to testing result can improve efficiency.
The data cached alignment field searches range of each secondary channels, the alignment that can be detected in channel reception data based on The range of the front and back certain amplitude of field, front and back amplitude can be manually set.It ensure that secondary channels are the alignment words in main channel Search alignment field, front and back amplitude are configured in combination with the case where channel offset in front and back a certain range of section.
Preferably, in the substantially same time, detect each secondary channels it is data cached in corresponding alignment field searches range Inside whether there is alignment field.
S103, it is data cached for main channel and detect alignment field secondary channels it is data cached, according to what is detected It is aligned field and current read buffer data address, adjusts read buffer data address, according to the read buffer data address after adjustment, from The position of corresponding alignment field starts read buffer data.Preferably, each channel adjusts read buffer data address, is aligned word from corresponding The action of the position read buffer data of section is substantially in the same time.
In the step, detects that the secondary channels of alignment field are realized and be aligned with main channel.Preferably, to having detected that It is aligned secondary channels and the main channel of field, further includes preserving following information:Behind the position of corresponding alignment field and adjustment Read buffer data address;Or the offset of read buffer data address.The step is for alignment channel, after having locked adjustment Read buffer data address or read buffer data address offset.So if since channel failure or other reasons lose Alignment has been gone, has not needed to remove channel data, it is only necessary to recalculate offset.
Preferably, before preserving above- mentioned information, further include:Judge whether each channel completes to read in channel set to be aligned The adjustment of data cached address;If so, illustrating that all channels in channel set to be aligned are completed alignment, preservation is entered back into The step of above- mentioned information.The step is to relock the read buffer after each channel adjustment after determining that alignment is all realized in all channels The offset of data address or read buffer data address.
The present embodiment is by distinguishing main channel and secondary channels, the secondary channels only alignment in detecting that main channel receives data Just data and main channel are aligned by search alignment field, the address for adjusting read buffer data after field.As long as secondary channels receive Data and main channel receive data there are corresponding offset, need not be additional when losing alignment or data packet format changes etc. It empties the cache, you can realization is constantly aligned with main channel.The flexibility of design is increased while not increasing design complexities.
In another embodiment, the cascade signal transmitted in interchannel may be used, realize the alignment of multichannel.Such as Fig. 2 It is shown, it mainly includes the following steps that:
S201, a main channel is determined from channel set to be aligned, other are secondary channels.
S202, recovered clock is recovered from main channel reception data, configures the alignment clock of main channel to its recovery Clock;By the cascade signal of interchannel, the alignment clock of main channel is passed into neighboring later stage secondary channels, rear stage is auxiliary logical Road configures the alignment clock of this secondary channels on the alignment clock of main channel, and so on, then rear stage secondary channels will be originally auxiliary logical The alignment clock in road is configured to the alignment clock of previous stage secondary channels, until the configuration of alignment clock is all completed in all channels.This The alignment clock in each channel is just realized unification by sample.
S203, the clock domain for being aligned clock that each channel reception data are transformed into this channel, then will turn through clock domain Each channel reception data deposit caching after changing, and synchronously, the alignment field in each channel reception data is detected, for auxiliary logical Testing result is then stored in caching by road together with this channel reception data.
S204, main channel are detected after having alignment field in this main channel reception data, then have set detection successfully mark Signal, and the marking signal is being transferred to rear stage secondary channels, after which receives notice, continue after again Level-one secondary channels transmit the marking signal, until each secondary channels receive the marking signal in channel set to be aligned.
S205, etc. after all secondary channels all receive the marking signal, in the substantially same time, each secondary channels are according to main channel The data cached alignment field searches range of alignment field configuration this secondary channels detected in data is received, and according in caching Testing result detect this secondary channels it is data cached in whether have alignment field within the scope of corresponding alignment field searches.In order to Ensure each channel while adjusting read buffer data address.
The alignment field searches range of configuration ensure that secondary channels are a certain ranges before and after the alignment field of main channel Interior search is aligned field, and the range of search is configured in combination with the case where channel offset.
S206, main channel and the secondary channels for detecting alignment field, in the substantially same time, according to the alignment word detected Section and current read buffer data address adjust read buffer data address, according to the read buffer data address after adjustment, to reply The position of neat field starts read buffer data.
In addition, detecting secondary channels and the main channel of alignment field, position and the adjustment of corresponding alignment field are recorded Read buffer data address afterwards;Or the offset of read buffer data address.
The alignment of data of each secondary channels and main channel that detect alignment field is realized to this.It can also pass into step S207。
S207, the cascade signal according to interchannel, all secondary channels are to main channel feedback information, and main channel is according to all auxiliary The feedback information in channel judges whether all channels are completed alignment, if it is, thinking the institute in channel set to be aligned Having channel to be aligned successfully notifies each secondary channels to lock the information recorded in step S206, maintains the alignment of multichannel.
Fig. 3 is the schematic diagram for the channel alignment means that one embodiment of the invention provides, and channel alignment means include:
Determining module 31, for determining a main channel from channel set to be aligned, other are secondary channels;
Clock configuration module 32, for configuring identical alignment clock to each channel;
Conversion module 34, the clock domain for each channel reception data to be transformed into the alignment clock;
Writing module 33 is cached, for will be cached through the transformed each channel reception data deposit of clock domain;
Main channel is aligned field detection module 35, for detecting the alignment field in main channel reception data;
Range configuration module 36 detects alignment field, according to pair detected if being received for main channel in data The data cached alignment field searches range of each secondary channels of neat field configuration;
Secondary channels are aligned field detection module 37, for detect each secondary channels it is data cached in search in corresponding alignment field Whether alignment field is had within the scope of rope;
Cache read module 38, for for main channel it is data cached and detect alignment field secondary channels cache number According to according to the alignment field and current read buffer data address detected, adjustment read buffer data address, according to the reading after adjustment Data cached address, the read buffer data since the position of corresponding alignment field.
In some embodiments, secondary channels alignment field detection module 37 includes:
First detection sub-module, during caching writing module 33 by each secondary channels reception data write-in caching, The alignment field in each secondary channels reception data is detected, testing result is obtained;
Second detection sub-module, for according to the testing result in caching detect corresponding secondary channels it is data cached in Whether there is alignment field within the scope of corresponding alignment field searches;
Caching writing module 33 is used to the testing result and each secondary channels receiving data is stored in caching together.
In some embodiments, clock configuration module 32, which is specifically used for receiving from main channel, obtains the extensive of main channel in data Multiple clock, configures the alignment clock in each channel to the recovered clock of main channel.
In some embodiments, above-mentioned channel alignment means further include preserving module, pair for preserving each alignment channel The position of neat field, and the read buffer data address after adjustment;Or preserve the offset of read buffer data address.
In some embodiments, above-mentioned channel alignment means further include judgment module, for judging the channel to be aligned Concentrate whether each channel completes the adjustment of read buffer data address;If so, above-mentioned preserving module is notified to carry out above- mentioned information It preserves.
Channel alignment means provided by the invention can be independently of the entity being arranged except each channel, to each channel Data buffer storage, the detection for being aligned field, the configuration for being aligned clock, the configuration for being aligned field searches range, read buffer data address Adjust, data cached reading etc. is uniformly controlled.Alternatively, the modules in channel alignment means provided by the invention It is separately positioned in different entities;Or which part module is associated with channel, is arranged in a one-to-one correspondence with channel.
Fig. 4 is the schematic diagram for the channel alignment that one embodiment of the invention provides, and channel alignment includes:
Determination unit 41, for determining a main channel from channel set to be aligned, other are secondary channels;
Clock dispensing unit 42, for configuring identical alignment clock to each channel;
Converting unit 43, the clock domain for each channel reception data to be transformed into the alignment clock;
Main channel processing unit 44, for data deposit caching, detection will to be received through the transformed main channel of clock domain Main channel receives the alignment field in data, if main channel, which receives in data, detects alignment field, notifies neighboring later stage Secondary channels;It is additionally operable to, according to the alignment field and current read buffer data address that detect, adjust read buffer data address, according to Read buffer data address after adjustment, the read buffer data since the position of corresponding alignment field;
At least one secondary channels processing unit (451 to 45n), each secondary channels processing unit through clock domain for that will convert This secondary channels afterwards receive data deposit caching, after receiving notice, to rear stage secondary channels transmission notice again up to last Grade secondary channels;The data cached alignment field of alignment field configuration this secondary channels detected in data is received according to main channel to search Rope range, detect this secondary channels it is data cached in whether have alignment field within the scope of corresponding alignment field searches;It is additionally operable to According to the alignment field and current read buffer data address detected, read buffer data address is adjusted, it is slow according to the reading after adjustment Deposit data address, the read buffer data since the position of corresponding alignment field.
In some embodiments, each secondary channels processing unit is specifically used for receiving this secondary channels into the mistake of data write-in caching Cheng Zhong detects the alignment field in each secondary channels reception data, obtains testing result, the testing result and this secondary channels are connect It receives data and is stored in caching together;And according to the testing result in caching detect this secondary channels it is data cached in corresponding Whether there is alignment field within the scope of alignment field searches.
In some embodiments, main channel processing unit, each secondary channels processing unit are additionally operable to preserve the alignment detected Read buffer data address behind the position of field, and adjustment;Or preserve the offset of read buffer data address.
In some embodiments, main channel processing unit is additionally operable to receive the grade that each secondary channels processing unit passes through interchannel The feedback information for joining signal transmission judges own in the channel set to be aligned according to the feedback information of each secondary channels processing unit Whether channel, which completes, is aligned.
Channel alignment provided by the invention, main channel processing unit 44 can be associated with setting with main channel, such as with Other associated functional units of main channel are set together, and are arranged in same entity.Each secondary channels processing unit (451 to Setting can also 45n) be associated with secondary channels, secondary channels processing unit is arranged in a one-to-one correspondence with secondary channels, such as auxiliary logical with some The corresponding secondary channels processing unit in road can be set together with other associated functional units of the secondary channels, be arranged same In one entity.Determination unit 41, clock dispensing unit 42, converting unit 43 can be independently of being arranged except each channel.The present invention The channel alignment of offer uses the cascade signal transmitted in interchannel, realizes the alignment of multichannel.
The above content is combining, specific embodiment is made for the present invention to be further described, and it cannot be said that this hair Bright specific implementation is confined to these explanations.For those of ordinary skill in the art to which the present invention belongs, it is not taking off Under the premise of from present inventive concept, a number of simple deductions or replacements can also be made, all shall be regarded as belonging to the protection of the present invention Range.

Claims (15)

1. a kind of channel alignment schemes, which is characterized in that including:
A main channel is determined from channel set to be aligned, other are secondary channels;And identical alignment clock is configured to each channel, Each channel reception data are transformed into the clock of the alignment clock and are stored in caching;
If main channel, which receives, detects alignment field in data, according to each secondary channels caching number of the alignment field configuration detected According to alignment field searches range, and detect each secondary channels it is data cached in whether have within the scope of corresponding alignment field searches It is aligned field;
It is data cached and detect that the secondary channels of alignment field are data cached for main channel, according to the alignment field that detects and Current read buffer data address, adjusts read buffer data address, and according to the read buffer data address after adjustment, word is aligned from corresponding The position of section starts read buffer data.
2. channel alignment schemes as described in claim 1, which is characterized in that by the process of each channel reception data deposit caching In, further include:The alignment field in each channel reception data is detected, testing result and each channel reception data are stored in together slow It deposits;
Whether have within the scope of corresponding alignment field searches during each secondary channels of the detection are data cached and is aligned field and is specially: According to the testing result in caching detect each secondary channels it is data cached in whether have within the scope of corresponding alignment field searches pair Neat field.
3. channel alignment schemes as described in claim 1, which is characterized in that described to configure identical alignment clock to each channel Specially:The recovered clock for obtaining main channel in data is received from main channel, configures the alignment clock in each channel to main channel Recovered clock.
4. channel alignment schemes as described in claim 1, which is characterized in that detected pair in data if the main channel receives Neat field then according to the data cached alignment field searches range of each secondary channels of alignment field configuration detected, and detects each Whether there is within the scope of corresponding alignment field searches the alignment field to be specially during secondary channels are data cached:
If main channel receives and detects alignment field in data, main channel notifies neighboring later stage secondary channels, the rear stage After secondary channels receive notice, continue notice rear stage secondary channels again, until each secondary channels are received in the channel set to be aligned To notice;And notified each secondary channels receive alignment field configuration this secondary channels detected in data according to main channel Data cached alignment field searches range, in the same time, each secondary channels detect this secondary channels it is data cached in corresponding Whether there is alignment field within the scope of alignment field searches.
5. channel alignment schemes according to any one of claims 1 to 4, which is characterized in that further include preserving following information: Read buffer data address behind the position of the alignment field of each alignment channel, and adjustment;Or read buffer data address is inclined Shifting amount.
6. channel alignment schemes as claimed in claim 5, which is characterized in that before preserving above- mentioned information, further include:Judge Whether each channel completes the adjustment of read buffer data address in the channel set to be aligned;Above-mentioned letter is preserved if so, entering The step of breath.
7. a kind of channel alignment means, which is characterized in that including:
Determining module, for determining a main channel from channel set to be aligned, other are secondary channels;
Clock configuration module, for configuring identical alignment clock to each channel;
Conversion module, the clock domain for each channel reception data to be transformed into the alignment clock;
Writing module is cached, for will be cached through the transformed each channel reception data deposit of clock domain;
Main channel is aligned field detection module, for detecting the alignment field in main channel reception data;
Range configuration module detects alignment field, according to the alignment field detected if being received for main channel in data Configure the data cached alignment field searches range of each secondary channels;
Secondary channels be aligned field detection module, for detect each secondary channels it is data cached in corresponding alignment field searches range Inside whether there is alignment field;
Cache read module, for for main channel it is data cached and detect alignment field secondary channels it is data cached, according to The alignment field and current read buffer data address detected adjusts read buffer data address, according to the read buffer number after adjustment According to address, the read buffer data since the position of corresponding alignment field.
8. channel alignment means as claimed in claim 7, which is characterized in that secondary channels are aligned field detection module and include:
First detection sub-module, during each secondary channels are received data write-in caching for the caching writing module, inspection The alignment field in each secondary channels reception data is surveyed, testing result is obtained;
Second detection sub-module, for according to the testing result in caching detect corresponding secondary channels it is data cached in right Whether there is alignment field within the scope of the alignment field searches answered;
The caching writing module is used to the testing result and each secondary channels receiving data is stored in caching together.
9. channel alignment means as claimed in claim 7, which is characterized in that the clock configuration module is specifically used for from main logical Road receives the recovered clock that main channel is obtained in data, configures the alignment clock in each channel to the recovered clock of main channel.
10. the channel alignment means as described in claim 7 to 9 any one, which is characterized in that further include preserving module, use Read buffer data address behind the position for the alignment field for preserving each alignment channel, and adjustment;Or preserve read buffer number According to the offset of address.
11. channel alignment means as claimed in claim 10, which is characterized in that further include judgment module, it is described for judging Whether each channel completes the adjustment of read buffer data address in channel set to be aligned;If so, the preserving module is notified to protect The read buffer data address behind the position of the alignment field of each alignment channel, and adjustment is deposited, or with preserving read buffer data The offset of location.
12. a kind of channel alignment, which is characterized in that including:
Determination unit, for determining a main channel from channel set to be aligned, other are secondary channels;
Clock dispensing unit, for configuring identical alignment clock to each channel;
Converting unit, the clock domain for each channel reception data to be transformed into the alignment clock;
Main channel processing unit detects main channel for that will receive data deposit caching through the transformed main channel of clock domain The alignment field in data is received, if main channel, which receives in data, detects alignment field, notifies neighboring later stage secondary channels; It is additionally operable to, according to the alignment field and current read buffer data address that detect, read buffer data address be adjusted, after adjustment Read buffer data address, the read buffer data since the position of corresponding alignment field;
At least one secondary channels processing unit, each secondary channels processing unit through transformed secondary channels of clock domain for that will connect Data deposit caching is received, after receiving notice, to rear stage secondary channels transmission notice again until afterbody secondary channels;According to master The data cached alignment field searches range of alignment field configuration this secondary channels for being detected in channel reception data, this is auxiliary for detection Whether there is alignment field within the scope of corresponding alignment field searches during channel is data cached;It is additionally operable to according to the alignment detected Field and current read buffer data address adjust read buffer data address, according to the read buffer data address after adjustment, from correspondence The position of alignment field starts read buffer data.
13. channel alignment as claimed in claim 12, which is characterized in that each secondary channels processing unit is specifically used for inciting somebody to action this During secondary channels receives data write-in caching, the alignment field in each secondary channels reception data is detected, testing result is obtained, The testing result and this secondary channels are received into data and are stored in caching together;And it is detected according to the testing result in caching Whether there is alignment field within the scope of corresponding alignment field searches during this secondary channels is data cached.
14. channel alignment as described in claim 12 or 13, which is characterized in that main channel processing unit, each secondary channels Processing unit is additionally operable to preserve the position of the alignment field detected, and the read buffer data address after adjustment;Or it preserves The offset of read buffer data address.
15. channel alignment as claimed in claim 14, which is characterized in that main channel processing unit is additionally operable to receive each auxiliary The feedback information that channel processing unit is transmitted by the cascade signal of interchannel, according to the feedback of each secondary channels processing unit Information judges whether all channels complete to be aligned in the channel set to be aligned.
CN201610025318.4A 2016-01-14 2016-01-14 A kind of channel alignment schemes, apparatus and system Active CN105718413B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610025318.4A CN105718413B (en) 2016-01-14 2016-01-14 A kind of channel alignment schemes, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610025318.4A CN105718413B (en) 2016-01-14 2016-01-14 A kind of channel alignment schemes, apparatus and system

Publications (2)

Publication Number Publication Date
CN105718413A CN105718413A (en) 2016-06-29
CN105718413B true CN105718413B (en) 2018-08-21

Family

ID=56147207

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610025318.4A Active CN105718413B (en) 2016-01-14 2016-01-14 A kind of channel alignment schemes, apparatus and system

Country Status (1)

Country Link
CN (1) CN105718413B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107272822A (en) * 2017-06-16 2017-10-20 郑州云海信息技术有限公司 A kind of system clock monitoring method and device
CN108155964A (en) * 2017-12-21 2018-06-12 南京理工大学 FPGA multi-channel serial data dynamic alignment methods based on training sequence
CN109861807A (en) * 2019-02-28 2019-06-07 烽火通信科技股份有限公司 Logical channel alignment schemes and system under multi-channel mode
CN112600551B (en) * 2020-12-17 2022-11-01 深圳市紫光同创电子有限公司 Serdes interface circuit
CN112671526B (en) * 2020-12-23 2021-09-17 宸芯科技有限公司 Method, device and equipment for aligning wire pairs of physical coding sublayer PCS of Ethernet
CN113922876A (en) * 2021-09-30 2022-01-11 中国船舶重工集团公司第七二四研究所 Method for realizing multichannel optical fiber data alignment by utilizing multiple judgments

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296217A (en) * 2007-04-24 2008-10-29 中芯国际集成电路制造(上海)有限公司 Elastic buffering mechanism and method for compensating clock diversity
CN101299647A (en) * 2008-06-27 2008-11-05 中兴通讯股份有限公司 Apparatus and method for implementing nondestructive switch of SDH service
CN101496367A (en) * 2005-11-04 2009-07-29 Nxp股份有限公司 Alignment and deskew for multiple lanes of serial interconnect
EP2139160A1 (en) * 2007-04-13 2009-12-30 Huawei Technologies Co., Ltd. Method and device for controlling main-backup inversion
CN102394823A (en) * 2011-11-03 2012-03-28 中兴通讯股份有限公司 Multi-channel aligning de-bias method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101496367A (en) * 2005-11-04 2009-07-29 Nxp股份有限公司 Alignment and deskew for multiple lanes of serial interconnect
EP2139160A1 (en) * 2007-04-13 2009-12-30 Huawei Technologies Co., Ltd. Method and device for controlling main-backup inversion
CN101296217A (en) * 2007-04-24 2008-10-29 中芯国际集成电路制造(上海)有限公司 Elastic buffering mechanism and method for compensating clock diversity
CN101299647A (en) * 2008-06-27 2008-11-05 中兴通讯股份有限公司 Apparatus and method for implementing nondestructive switch of SDH service
CN102394823A (en) * 2011-11-03 2012-03-28 中兴通讯股份有限公司 Multi-channel aligning de-bias method and device

Also Published As

Publication number Publication date
CN105718413A (en) 2016-06-29

Similar Documents

Publication Publication Date Title
CN105718413B (en) A kind of channel alignment schemes, apparatus and system
US6377575B1 (en) High speed cross point switch routing circuit with word-synchronous serial back plane
US7093061B2 (en) FIFO module, deskew circuit and rate matching circuit having the same
US7412618B2 (en) Combined alignment scrambler function for elastic interface
EP2976866B1 (en) Timestamp correction in a multi-lane communication link with skew
US20100188910A1 (en) Clock synchronization in a memory system
CN103916252A (en) High-bandwidth Ethernet IP core based on FPGA
US20060184817A1 (en) Elastic interface de-skew mechanism
US20120030438A1 (en) Method and Apparatus for Performing Skew Removal in the Receiver of a Multi-Lane Communication Link
EP1134668A3 (en) Data communication link between two ASICs
US7380084B2 (en) Dynamic detection of block boundaries on memory reads
CN103107862A (en) Logic device and management data input/output (MDIO) data transmission method thereof
US7443940B2 (en) Alignment mode selection mechanism for elastic interface
US20030005344A1 (en) Synchronizing data with a capture pulse and synchronizer
US20130294555A1 (en) Method and apparatus for deskewing data transmissions
CN105718412B (en) A kind of channel frequency difference compensation method, channel control method, apparatus and system
CN105933244A (en) Channel aligning de-skew device and method
CN103888211B (en) A kind of method and device carried out data transmission between cross chips
US10598776B2 (en) Method for determining sampling phase of sampling clock signal and associated electronic device
CN108184038A (en) A kind of high speed transmission system of the very high speed digital cmos image sensor of internet of things oriented
US7869491B2 (en) Data transceiver and method thereof
US6389553B1 (en) Redundant link delay maintenance circuit and method
CN104281546A (en) Wireless communication apparatus and method
CN105335324B (en) The method of receiver and reception data for high-speed serial bus
US8762600B2 (en) Digital delay buffers and related methods

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 518057 Guangdong city of Shenzhen province Nanshan District high tech Industrial Park Road eight South South technology Howare Technology Building 16

Applicant after: Shenzhen Pango Microsystems Co., Ltd.

Address before: 518057 Guangdong city of Shenzhen province Nanshan District high tech Industrial Park Road eight South South technology Howare Technology Building 16

Applicant before: SHENZHEN PANGO MICROSYSTEMS CO., LTD.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant