[go: up one dir, main page]

CN1129279C - Multiplex shunt with variable bit rate and multiplex shunting method - Google Patents

Multiplex shunt with variable bit rate and multiplex shunting method Download PDF

Info

Publication number
CN1129279C
CN1129279C CN 99126991 CN99126991A CN1129279C CN 1129279 C CN1129279 C CN 1129279C CN 99126991 CN99126991 CN 99126991 CN 99126991 A CN99126991 A CN 99126991A CN 1129279 C CN1129279 C CN 1129279C
Authority
CN
China
Prior art keywords
output
input
latch
code stream
code
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.)
Expired - Fee Related
Application number
CN 99126991
Other languages
Chinese (zh)
Other versions
CN1302138A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 99126991 priority Critical patent/CN1129279C/en
Publication of CN1302138A publication Critical patent/CN1302138A/en
Application granted granted Critical
Publication of CN1129279C publication Critical patent/CN1129279C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Time-Division Multiplex Systems (AREA)

Abstract

本发明公开一种可变码速的复用分路器及复用分路方法,先经串入/并出移位寄存器将输入串行码流变换为并行码流,再将码流中的字节按要求排列,最后经并入/串出变换器变换成码速不同于输入码速的串行码流。复用分路器中的主要器件是串入/并出移位寄存器、锁存器和P/S变换器。电路中没有八选一这样的器件,时延易于控制,且可做到高速度,减小了实际困难。且可适于更多个输入码流的情形。

Figure 99126991

The invention discloses a variable code rate multiplexing splitter and a multiplexing splitting method. First, the input serial code stream is converted into a parallel code stream through a serial in/parallel out shift register, and then the code stream in the code stream is converted into a parallel code stream. The bytes are arranged according to the requirements, and finally converted into a serial code stream whose code rate is different from the input code rate through the merge-in/serial-out converter. The main devices in the multiplexing splitter are serial input/parallel output shift registers, latches and P/S converters. There is no one-of-eight device in the circuit, the time delay is easy to control, and high speed can be achieved, which reduces practical difficulties. And it can be adapted to the situation of more input code streams.

Figure 99126991

Description

可变码速的复用分路器及复用分路方法Variable code rate demultiplexer and demultiplexing method

本发明涉及大容量程控数字交换技术,具体涉及实现高速传输的复用分路技术,更具体地说,涉及一种可变码速的复用分路器。The invention relates to a large-capacity program-controlled digital switching technology, in particular to a multiplexing and demultiplexing technology for realizing high-speed transmission, and more specifically, to a variable code rate multiplexing and demultiplexing device.

目前PCM30/32的复用原理框图如图1所示。图1中移位寄存器是8位串入并出移位寄存器,它在CP控制下每个时隙中的8位串行码变成8位并行码,因此移位寄存器出来D0~D7八条线,但是在移位寄存器输出端D0~D7的8位码不是同时出现的,而是在CP控制下一位一位出现的,在时隙最后一位(D7)的CP后半周期时,才把已经变换就绪的8位并行码送入锁存器。当一个CP脉冲来到时,8位平行码即可经8-1电子选择器输出。电子选择器的功能是把8个HW的8位并行码按一定次序进行排列、合并。The block diagram of multiplexing principle of PCM30/32 is shown in Fig. 1 at present. The shift register in Figure 1 is an 8-bit serial in-parallel shift register. Under the control of the CP, the 8-bit serial code in each time slot becomes an 8-bit parallel code, so the shift register comes out with eight lines D0~D7 , but the 8-bit codes at the output terminals D0~D7 of the shift register do not appear at the same time, but appear bit by bit under the control of the CP. In the second half cycle of the CP of the last bit (D7) of the time slot, the Send the 8-bit parallel code that has been transformed into the latch. When a CP pulse comes, the 8-bit parallel code can be output through the 8-1 electronic selector. The function of the electronic selector is to arrange and merge the 8-bit parallel codes of 8 HWs in a certain order.

图2为8端脉码的分路器框,由锁存器和并入串出8位移位寄存器组成。锁存器是作为寄存用的,它的输入直接由数字交换网络连接起来。由数字交换网络连至分路器的锁存器是8端脉码连在一起的,但是能够分开进入各端脉码的锁存器,这是因为各端脉码的锁存器的引线脚接有时间位置不同的脉冲。第一端PCM的锁存器接TD0^CP,第二端接TD1^CP......第八端接TD7^CP。在位脉冲TD0~TD7控制下,就可以8个HW的D0~D7分别写入到锁存器0~7,即HW0的D0~D7写入锁存器0,HW1的D0~D7写入锁存器1......。在下一时隙的TD0时,在CP的前半周期将移位寄存器的置位端S置成1,这时移位寄存器置位,于是就将D0~D7送入。下一个CP到来时,TD=0,因此S端为0,移位寄存器不置位,只移位,就以CP的节拍一位一位往外送出,直到下一个时隙的TD0出现,再置位一位……这样可将并行码变成串行码。Figure 2 is a splitter frame of 8-terminal pulse code, which is composed of a latch and an 8-bit shift register that is connected in series. The latch is used as a register, and its input is directly connected by the digital switching network. The latches connected to the splitter by the digital switching network are connected together with 8-terminal pulse codes, but the latches of each terminal pulse code can be separated, because the pins of the latches of each terminal pulse code There are pulses with different time positions. The latch of the PCM at the first end is connected to TD0^CP, the second end is connected to TD1^CP...the eighth end is connected to TD7^CP. Under the control of bit pulse TD0~TD7, D0~D7 of 8 HWs can be written into latches 0~7 respectively, that is, D0~D7 of HW0 can be written into latch 0, and D0~D7 of HW1 can be written into latches. register 1....... At TD0 of the next time slot, set the setting terminal S of the shift register to 1 in the first half cycle of the CP, at this time the shift register is set, and then D0 ~ D7 are sent into. When the next CP arrives, TD=0, so the S terminal is 0, the shift register is not set, only shifted, and it is sent out one by one at the beat of the CP, until TD0 in the next time slot appears, and then set One bit... This turns the parallel code into a serial code.

上述传统复用分路器的缺点主要有:1)复用器中的8个8选1对于实际实现困难较大,尤其利用可编程器件时,不仅会占用不少资源,而且时延不好控制,很难做到很高速度;2)只能针对8输入,应用不灵活。The disadvantages of the above-mentioned traditional multiplexing splitter mainly include: 1) It is difficult to implement 8 out of 8 multiplexers in the multiplexer, especially when using programmable devices, not only will it take up a lot of resources, but also the time delay is not good Control, it is difficult to achieve very high speed; 2) It can only be used for 8 inputs, and the application is not flexible.

本发明的目的就是为了解决以上问题,提供一种复用器和分路器,不仅使设计实现难度大降低,并且可以方便地进行扩展,实现高速的复用分路。The object of the present invention is to solve the above problems and provide a multiplexer and splitter, which not only greatly reduces the difficulty of design and implementation, but also can be easily expanded to realize high-speed multiplexing and splitting.

本发明实现上述目的的方案包括复用分路器和复用分路方法,它们既属于同一构思。该构思主要是:先经串入/并出移位寄存器将输入串行码流变换为并行码流,再将码流中的字节按要求排列,最后经并入/串出变换器变换成码速不同于输入码速的串行码流。其复用分路器和复用分路方法的方案分别如下:The solution of the present invention to achieve the above object includes a multiplexer and a multiplexer and a multiplexer, both of which belong to the same idea. The idea is mainly: first convert the input serial code stream into a parallel code stream through the serial-in/parallel-out shift register, then arrange the bytes in the code stream according to requirements, and finally transform it into A serial code stream whose code rate is different from the input code rate. The schemes of the multiplexing splitter and the multiplexing splitting method are as follows:

复用分路器包括复用器部分和分路器部分,其中复用器部分包括串入/并出移位寄存器、锁存器,分路器部分包括锁存器、串入/并出移位寄存器,其特征是:在复用器部分中,所述串入/并出移位寄存器中还包括有排序电路,组成S/P变换及排序电路,其输入端是多路低速码流HW0、HW1……HWn,其输出端为并行码流,输出并行码流的排列顺序为:The multiplexing splitter includes a multiplexer part and a splitter part, wherein the multiplexer part includes a serial input/parallel output shift register and a latch, and the splitter part includes a latch, a serial input/parallel output shift register The bit register is characterized in that: in the multiplexer part, the serial input/parallel output shift register also includes a sorting circuit to form an S/P conversion and sorting circuit, and its input end is a multi-channel low-speed code stream HW0 , HW1...HWn, its output terminal is a parallel code stream, and the sequence of the output parallel code stream is:

HW0TS0 HW1TS0…HWnTS0 HW0TS1 HW1TS1…HWnTS1……HW0TS31HW1TS31…HWnTS31其中TS0、TS1…TS31为每个码流中的时隙;根据输入码流的路数和锁存器位数,将上述并行码流等分成一组或多组,相应地,锁存器也有一个或多个,每个锁存器对应一组并行码流;所有锁存器的时钟频率相同而相位不同,其输出信号分别输入到多个P/S变换器,或输入到一个P/S变换器的多个输入端;所述P/S变换器的输出端即为高速串行码流的输出端;所述分路器部分中,在锁存器之前接有S/P变换器,所述S/P变换器的输入端即为分路器的高速码流输入端,其输出端接锁存器的输入端;锁存器的输出端接P/S变换电路输入端,P/S变换电路的输出端即为分路器的低速码流输出端。HW0TS0 HW1TS0…HWnTS0 HW0TS1 HW1TS1…HWnTS1…HW0TS31HW1TS31…HWnTS31 Among them, TS0, TS1…TS31 are the time slots in each code stream; according to the number of input code streams and the number of latch bits, the above parallel code streams are equally divided into One or more groups, correspondingly, there are one or more latches, and each latch corresponds to a group of parallel code streams; all latches have the same clock frequency but different phases, and their output signals are respectively input to multiple P/S converter, or input to a plurality of input terminals of a P/S converter; the output terminal of the P/S converter is the output end of the high-speed serial code stream; in the splitter part, An S/P converter is connected before the latch, and the input end of the S/P converter is the high-speed code stream input end of the splitter, and its output terminal is connected to the input end of the latch; The output terminal is connected to the input terminal of the P/S conversion circuit, and the output terminal of the P/S conversion circuit is the low-speed code stream output terminal of the splitter.

所述复用分路方法包括复用方法和分路方法两部分,其特征是:所述复用方法包括以下步骤:利用S/P变换及排序电路将输入的多路低速码流HW0、HW1……HWn变换为输出端并行码流,并将输出并行码流的顺序排列为:HW0TS0 HW1TS0…HWnTS0 HW0TS1 HW1TS1…HWnTS1……HW0TS31HW1TS31…HWnTS31,其中TS0、TS1…TS31为每个码流中的时隙;根据输入码流的路数和锁存器位数,将上述并行码流等分成一组或多组,每组分别输入到一个时钟频率相同而相位各不相同的锁存器;将锁存器的输出信号分别输入到多个P/S变换器,或输入到一个P/S变换器的多个输入端进行P/S变换;经所述P/S变换器变换后的输出信号即为高速串行码流;所述分路方法包括以下步骤:将接收到的高速码流输入到S/P变换器的输入端,进行S/P变换;经S/P变换的信号输出到锁存器的输入端,并经锁存器的输出到P/S变换电路输入端;经P/S变换电路变换后的输出端即为分路器的低速码流输出信号。The multiplexing and demultiplexing method includes two parts: a multiplexing method and a demultiplexing method, and is characterized in that: the multiplexing method includes the following steps: using S/P conversion and sorting circuits to input multiple low-speed code streams HW0, HW1 ...HWn is transformed into parallel code streams at the output terminal, and the order of the output parallel code streams is arranged as follows: HW0TS0 HW1TS0...HWnTS0 HW0TS1 HW1TS1...HWnTS1...HW0TS31HW1TS31...HWnTS31, where TS0, TS1...TS31 are time intervals in each code stream slot; according to the number of channels of the input code stream and the number of bits of the latch, the above-mentioned parallel code stream is divided into one or more groups, and each group is respectively input to a latch with the same clock frequency and different phases; the lock The output signals of the registers are respectively input to a plurality of P/S converters, or input to a plurality of input terminals of a P/S converter for P/S conversion; the output signal transformed by the P/S converter is It is a high-speed serial code stream; the branching method includes the following steps: input the received high-speed code stream to the input end of the S/P converter, and perform S/P conversion; the signal output through the S/P conversion to the lock The input terminal of the register, and the output of the latch to the input terminal of the P/S conversion circuit; the output terminal transformed by the P/S conversion circuit is the low-speed stream output signal of the splitter.

由于采用了以上的方案,电路中没有8选1这样的器件,用到的器件P/S和S/P变换器、锁存器等时延易于控制,且可做到高速度,减小了实际困难,尤其是利用可编程器件时,好处更加明显。由于都是将输入码流先变换成并行码流再进行处理,这种模式不仅适于8输入的情况,也可适于更多个输入码流的情形(一般为8的倍数)。Due to the adoption of the above scheme, there is no device such as 8 to 1 in the circuit, and the time delay of the used devices such as P/S and S/P converters and latches is easy to control, and can achieve high speed, reducing the Practical difficulties, especially when using programmable devices, the benefits are more apparent. Since the input code streams are converted into parallel code streams before processing, this mode is not only suitable for the case of 8 inputs, but also for the case of more input code streams (generally a multiple of 8).

图1是传统复用器框图。Figure 1 is a block diagram of a traditional multiplexer.

图2是传统分路器框图。Figure 2 is a block diagram of a traditional splitter.

图3是传统复用分路器中8端脉码交换时所需A0-A7定时脉冲波形。Fig. 3 is A0-A7 timing pulse waveform required for 8-port pulse code exchange in a traditional multiplexing splitter.

图4-6b是本发明复用器的四种实施例原理图。4-6b are schematic diagrams of four embodiments of the multiplexer of the present invention.

图7是将n个8位P/S变换器包含在一个n*8位P/S变换器中的示意图。Fig. 7 is a schematic diagram of including n 8-bit P/S converters in one n*8-bit P/S converter.

图8-11是本发明分路器的四种实施例原理图。8-11 are schematic diagrams of four embodiments of splitters of the present invention.

图12是本发明的一个更具体的复用分路器的电路示意图。Fig. 12 is a schematic circuit diagram of a more specific multiplexing splitter of the present invention.

图13是图12中MT9085所用的时序示意图。Figure 13 is a timing diagram for the MT9085 in Figure 12.

图14是图12中的FPGA内部时钟调整示意图。FIG. 14 is a schematic diagram of FPGA internal clock adjustment in FIG. 12 .

下面通过具体的实施例并结合附图对本发明作进一步详细的描述。The present invention will be described in further detail below through specific embodiments and in conjunction with the accompanying drawings.

复用/分路器包括复用器部分和分路器部分,二者安排在同一个设备中。The multiplexer/demultiplexer includes a multiplexer part and a demultiplexer part, both of which are arranged in the same device.

如图4-6b,概括地讲,复用器包括串入/并出移位寄存器、锁存器2,其特征是:所述串入/并出移位寄存器中还包括有排序电路,组成S/P变换及排序电路1,其输入端是多路低速码流HW0、HW1......HWn,其输出端为并行码流,输出并行码流的排列顺序为:As shown in Figure 4-6b, generally speaking, the multiplexer includes a serial-in/parallel-out shift register and a latch 2, which is characterized in that: the serial-in/parallel-out shift register also includes a sorting circuit, consisting of S/P conversion and sorting circuit 1, its input end is multi-channel low-speed code stream HW0, HW1...HWn, its output end is parallel code stream, and the order of arrangement of the output parallel code stream is:

HW0TS0 HW1TS0...HWnTS0 HW0TS1 HW1TS1…HWnTS1……HW0TS31 HW1TS31…HWnTS31其中TS0、TS1...TS31为每个码流中的时隙;根据输入码流的路数和锁存器2位数,将上述并行码流等分成一组或多组,相应地,锁存器2也有一个或多个,每个锁存器2对应一组并行码流;所有锁存器2的时钟频率相同而相位不同,其输出信号分别输入到多个P/S变换器3,或输入到一个P/S变换器3的多个输入端;所述P/S变换器3的输出端即为高速串行码流的输出端。HW0TS0 HW1TS0...HWnTS0 HW0TS1 HW1TS1...HWnTS1...HW0TS31 HW1TS31...HWnTS31 where TS0, TS1...TS31 are time slots in each code stream; The above-mentioned parallel code streams are equally divided into one or more groups, correspondingly, there are one or more latches 2, and each latch 2 corresponds to a group of parallel code streams; all latches 2 have the same clock frequency but different phases , its output signal is input to a plurality of P/S converters 3 respectively, or is input to a plurality of input terminals of a P/S converter 3; The output terminal of the P/S converter 3 is a high-speed serial code stream output terminal.

其中的P/S变换器由锁存器组成,可用全局时钟使其输出保持同步。Among them, the P/S converter is made up of latches, and the global clock can be used to keep its output synchronized.

相应地,如图8-11,分路器包括锁存器2’、串入/并出变换电路(P/S变换电路)3’,其特征是:在锁存器2’之前接有S/P变换器1’,所述S/P变换器1’的输入端即为分路器的高速码流输入端,其输出端接锁存器2’的输入端;锁存器2’的输出端接P/S变换电路3’输入端,P/S变换电路3’的输出端即为分路器的低速码流输出端。Correspondingly, as shown in Fig. 8-11, the splitter includes a latch 2', a serial-in/parallel-out conversion circuit (P/S conversion circuit) 3', which is characterized in that an S /P converter 1', the input end of the S/P converter 1' is the high-speed code stream input end of the splitter, and its output end is connected to the input end of the latch 2'; the input end of the latch 2' The output terminal is connected to the input terminal of the P/S conversion circuit 3', and the output terminal of the P/S conversion circuit 3' is the low-speed code stream output terminal of the splitter.

所述锁存器2’和P/S变换电路3’之间还接有二选一电路4或三选一电路4′,锁存器2’的输出端通过所述二选一电路4接P/S变换电路3’输入端。Between the described latch 2' and the P/S conversion circuit 3', there is also a two-to-one circuit 4 or a three-to-one circuit 4', and the output end of the latch 2' is connected through the two-to-one circuit 4. P/S conversion circuit 3'input end.

本发明提供的复用器可适用于多种码速,结构框图如图4-7所示。高码速必须是低码速的8的整数倍,该复用器的高速码流可以具有两种速度S0、S1,二者的速度相差一倍,或者更多速度。各图中器件描述如下:The multiplexer provided by the present invention is applicable to various code rates, and the structural block diagram is shown in Fig. 4-7. The high code rate must be an integer multiple of 8 of the low code rate, and the high-speed code stream of the multiplexer can have two speeds S0 and S1, and the difference between the two speeds is doubled or more. The devices in each figure are described as follows:

1、S/P变换及排序电路1(简称S/P)与普通的S/P不同,该S/P不仅将输入码流进行串-并变换,而且将并行码流进行排序。将输入低速码流0~n分别计为HW0~n,每个码流中的时隙用TS31(x=0,1,2,...31)表示,则并行输出码流的顺序如下:HW0TS0HW1TS0...HWnTS0HW0TS1HW1TS1...HWnTS1....HW0TS31HW1TS31...HWnTS31。1. The S/P conversion and sorting circuit 1 (S/P for short) is different from the common S/P. The S/P not only performs serial-parallel conversion on the input code stream, but also sorts the parallel code stream. The input low-speed code streams 0~n are respectively counted as HW0~n, and the time slots in each code stream are represented by TS31 (x=0, 1, 2, ... 31), then the order of parallel output code streams is as follows: HW0TS0HW1TS0...HWnTS0HW0TS1HW1TS1...HWnTS1...HW0TS31HW1TS31...HWnTS31.

2、8位锁存器2用来暂存S/P的输出,防止在下级处理时,S/P的输出造成干扰。用2个8位锁存器而不用1个16位锁存器的原因在于要适应2种输出码速,2个锁存器的时钟频率相同而相位不同。2. The 8-bit latch 2 is used to temporarily store the output of the S/P to prevent the output of the S/P from causing interference during the lower-level processing. The reason for using two 8-bit latches instead of one 16-bit latch is to adapt to two output code rates, and the two latches have the same clock frequency but different phases.

3、8或16或24位P/S变换器3(简称P/S)在输出码速为S2时,为24位P/S;在输出码速为S1时,为16位P/S;在输出码速为S0时,为2个8位P/S。这样实现了输出可以为2种码速。3. 8 or 16 or 24-bit P/S converter 3 (referred to as P/S) is 24-bit P/S when the output code rate is S2; when the output code rate is S1, it is 16-bit P/S; When the output code rate is S0, it is two 8-bit P/S. In this way, the output can be 2 code rates.

其中图4是输入低速码流为16路,输出高速码流为2路,每路是低速码流的8倍码速时的情形。其中用2个8位锁存器而不用1个16位锁存器的原因在于要适应2种输出码速。用2个锁存器就可以通过调整使它们时钟频率相同,相位不同。Among them, Figure 4 shows the situation when the input low-speed code stream is 16 channels, the output high-speed code stream is 2 channels, and each channel is 8 times the code rate of the low-speed code stream. Among them, the reason for using two 8-bit latches instead of one 16-bit latch is to adapt to two output code rates. With 2 latches, they can be adjusted to have the same clock frequency and different phases.

图5是输入低速码流为16路,输出高速码流为1路,每路是低速码流的16倍码速时的情形。Figure 5 shows the situation when there are 16 low-speed code streams input and 1 high-speed code stream output, each of which is 16 times the code rate of the low-speed code stream.

图6a是输入低速码流为24路,输出高速码流为3路,是低速码流的8倍码速时的情形。Figure 6a shows the situation when 24 low-speed code streams are input and 3 high-speed code streams are output, which is 8 times the code rate of the low-speed code stream.

图6b是输入低速码流为24路,输出高速码流为1路,每路是低速码流的24倍码速时的情形。Figure 6b shows the situation when 24 low-speed code streams are input and 1 high-speed code stream is output, each of which is 24 times the code rate of the low-speed code stream.

在图4、图6a中,为适应多路高速码流输出,分别用了2个和3个8位P/S变换器。事实上,2个和3个8位P/S变换器分别可以包含于一个2*8或3*8位P/S变换器中(其中*表示乘号,下同)。图7是将n个8位P/S变换器包含于1个n*8位P/S变换器中的示意图,图中省去了同步置数部分,FD为D触发器(D为输入端,Q为输出端,C为时钟输入端),CK为输入时钟。在移位序列中,在每第8个D触发器输出拉一个抽头作为串行码流的输出。这样,如果CK时钟频率为输入码流的8倍,则该P/S相当于n个8位P/S;如果CK时钟频率为输入码流的16倍,则该P/S相当于n/2个16位P/S;如果CK时钟频率为输入码流的n*8倍,则该P/S相当于一个n*8位P/S。In Figure 4 and Figure 6a, two and three 8-bit P/S converters are used respectively in order to adapt to the output of multiple high-speed code streams. In fact, 2 and 3 8-bit P/S converters can be included in a 2*8 or 3*8-bit P/S converter respectively (where * represents a multiplication sign, the same below). Fig. 7 is a schematic diagram of including n 8-bit P/S converters in one n*8-bit P/S converter. The synchronous setting part is omitted in the figure, and FD is a D flip-flop (D is an input terminal , Q is the output terminal, C is the clock input terminal), and CK is the input clock. In the shift sequence, every 8th D flip-flop output pulls a tap as the output of the serial code stream. In this way, if the CK clock frequency is 8 times the input code stream, the P/S is equivalent to n 8-bit P/S; if the CK clock frequency is 16 times the input code stream, the P/S is equivalent to n/ Two 16-bit P/S; if the CK clock frequency is n*8 times of the input code stream, the P/S is equivalent to one n*8-bit P/S.

分路器是复用器的逆向过程,即将高速码流按字节分接成若干低速码流。这里高速码流同样可以具有两种码速S0、S1,二者速度相差一倍,其结构如图8-11所示。The demultiplexer is the reverse process of the multiplexer, that is, the high-speed code stream is divided into several low-speed code streams by bytes. Here, the high-speed code stream can also have two code rates S0 and S1, and the difference between the two speeds is doubled. The structure is shown in Figure 8-11.

1、8或16位S/P变换器1’当高速码速为S0时,为8位S/P;当高速码速为S1时,为16位S/P。1, 8 or 16 bit S/P converter 1 ' when the high-speed code rate is S0, be 8 bits of S/P; When the high-speed code rate is S1, be 16 bits of S/P.

2、16位锁存器2’对16位并行数据进行缓存,避免在进行下一级处理时受上级S/P来的数据干扰。2. The 16-bit latch 2' caches the 16-bit parallel data to avoid data interference from the upper-level S/P when the next-level processing is performed.

3、八个二选一电路4由8个二选一组成,对锁存的16位并行数据进行切换,形成8位并行输出码流。8位并行码流的内部排列顺序与复用器中的S/P输出码流相同。3. The eight optional-one circuits 4 are composed of eight optional-one circuits, which switch the latched 16-bit parallel data to form an 8-bit parallel output code stream. The internal sequence of the 8-bit parallel code stream is the same as the S/P output code stream in the multiplexer.

4、P/S变换电路3’将8位并行码流转换为串行低速码流输出,相当于复用器中S/P的逆向过程。4. The P/S conversion circuit 3' converts the 8-bit parallel code stream into a serial low-speed code stream output, which is equivalent to the reverse process of S/P in the multiplexer.

其中图8是输入为2路高速码流、输出为16路低速码流,高速码流为低速码流8倍码速时的情形。Figure 8 shows the situation when the input is 2 high-speed code streams, the output is 16 low-speed code streams, and the high-speed code stream is 8 times the code rate of the low-speed code stream.

图9是输入为1路高速码流、输出为16路低速码流,高速码流为低速码流16倍码速时的情形。Figure 9 shows the situation when the input is 1 high-speed code stream, the output is 16 low-speed code streams, and the high-speed code stream is 16 times the code rate of the low-speed code stream.

图10是输入为1路高速码流、输出为8路低速码流,高速码流为低速码流8倍码速时的情形。Figure 10 shows the situation when the input is 1 high-speed code stream, the output is 8 low-speed code streams, and the high-speed code stream is 8 times the code rate of the low-speed code stream.

图11是输入为3路高速码流、输出为24路低速码流,高速码流为低速码流8倍码速时的情形。Figure 11 shows the situation when the input is 3 high-speed code streams, the output is 24 low-speed code streams, and the high-speed code stream is 8 times the code rate of the low-speed code stream.

下面结合16个2M与2个16M及1个32M之间的码速变换实例,进一步描述本发明。The present invention will be further described below in conjunction with examples of code rate conversion between 16 2Ms, 2 16Ms and 1 32M.

整个变换电路的总体框图如图12所示:The overall block diagram of the entire conversion circuit is shown in Figure 12:

复用器中的S/P及分路器中的P/S采用Mitel公司的MT9085来实现,通过设置MT9085的工作方式,即可实现串-并串转换。具体的时序图如图13所示。The S/P in the multiplexer and the P/S in the splitter are implemented by Mitel's MT9085. By setting the working mode of MT9085, serial-to-parallel conversion can be realized. The specific timing diagram is shown in Figure 13.

采用FPGA(Field Programmable arrays)实现复用分路器的其他部分。从复用分路器的结构图中可以看出,不管高速码速是多少,经过S/P后就没有码速的区别,这就要求内部控制码不变。因此对内部时钟的处理方法非常重要。最简明的种方法就是通过变换,将FPGA内部的时钟统一。其原理如图14:Use FPGA (Field Programmable arrays) to realize other parts of the multiplexer. It can be seen from the structure diagram of the demultiplexer that no matter what the high-speed code rate is, there is no difference in the code rate after S/P, which requires the internal control code to remain unchanged. Therefore, the processing method of the internal clock is very important. The simplest method is to unify the clocks inside the FPGA through transformation. The principle is shown in Figure 14:

通过一个选择信号SELECT,把FPGA内部时钟进行统一。无论输入时钟是16M或32M,经过选择后,就变为固定的输出,这样以后的时钟产生电路也得到统一。通过这种思想,即使输入码流增加一倍,也不用改变电路就能实现32×2M与2×32M或1×64M之间的变换。本发明对对传统复用分路器进行了改进,利用同步逻辑设计,不仅使设计实现难度大降低,并且可以方便地进行扩展,实现高速的复用/分器。Through a selection signal SELECT, the FPGA internal clock is unified. Regardless of whether the input clock is 16M or 32M, after selection, it becomes a fixed output, so that the subsequent clock generation circuits are also unified. Through this idea, even if the input code stream is doubled, the conversion between 32×2M and 2×32M or 1×64M can be realized without changing the circuit. The invention improves the traditional multiplexer and splitter, uses synchronous logic design, not only greatly reduces the difficulty of design and realization, but also can be expanded conveniently to realize high-speed multiplexer/splitter.

很明显,从对装置的描述即可知利用上述复用分路器实现可变码速复用/分路的方法。简述如下:Obviously, from the description of the device, we can know the method of implementing variable code rate multiplexing/demultiplexing by using the above-mentioned multiplexer/demultiplexer. A brief description is as follows:

复用方法包括以下步骤:利用S/P变换及排序电路将输入的多路低速码流HW0、HW1……HWn变换为输出端并行码流,并将输出并行码流的顺序排列为:HW0TS0 HW1TS0…HWnTS0 HW0TS1 HW1TS1…HWnTS1……HW0TS31 HW1TS31…HWnTS31,其中TS0、TS1…TS31为每个码流中的时隙;根据输入码流的路数和锁存器位数,将上述并行码流等分成一组或多组,每组分别输入到一个时钟频率相同而相位各不相同的锁存器;将锁存器的输出信号分别输入到多个P/S变换器,或输入到一个P/S变换器的多个输入端进行P/S变换;经所述P/S变换器变换后的输出信号即为高速串行码流;The multiplexing method includes the following steps: using the S/P conversion and sorting circuit to transform the input multiple low-speed code streams HW0, HW1...HWn into output parallel code streams, and arrange the order of the output parallel code streams as: HW0TS0 HW1TS0 …HWnTS0 HW0TS1 HW1TS1…HWnTS1…HW0TS31 HW1TS31…HWnTS31, where TS0, TS1…TS31 are the time slots in each code stream; according to the number of input code streams and the number of latches, the above parallel code streams are equally divided into One or more groups, each group is input to a latch with the same clock frequency and different phases; the output signal of the latch is respectively input to multiple P/S converters, or input to a P/S P/S conversion is performed at multiple input terminals of the converter; the output signal converted by the P/S converter is a high-speed serial code stream;

分路方法包括以下步骤:将接收到的高速码流输入到S/P变换器的输入端,进行S/P变换;经S/P变换的信号输出到锁存器的输入端,并经锁存器的输出到P/S变换电路输入端;经P/S变换电路变换后的输出端即为分路器的低速码流输出信号。The branching method includes the following steps: input the received high-speed code stream to the input end of the S/P converter, and perform S/P conversion; output the signal transformed by S/P to the input end of the latch, and The output of the register is sent to the input terminal of the P/S conversion circuit; the output terminal transformed by the P/S conversion circuit is the low-speed stream output signal of the splitter.

本文中所述的S/P变换是指串/并变换,P/S变换是指并/串变换。The S/P conversion described herein refers to the serial/parallel conversion, and the P/S conversion refers to the parallel/serial conversion.

Claims (3)

1、一种可变码速的复用分路器,包括复用器部分和分路器部分,其中复用器部分包括串入/并出移位寄存器、锁存器(2),分路器部分包括锁存器(2’)、串入/并出变换电路(3’),其特征是:在复用器部分中,所述串入/并出移位寄存器中还包括有排序电路,组成S/P变换及排序电路(1),其输入端是多路低速码流HW0、HW1……HWn,其输出端为并行码流,输出并行码流的排列顺序为:1. A variable code rate multiplexing splitter, comprising a multiplexer part and a splitter part, wherein the multiplexer part includes a serial input/parallel output shift register, a latch (2), and a splitter The device part includes a latch (2') and a serial-in/parallel-out conversion circuit (3'), and it is characterized in that: in the multiplexer part, the serial-in/parallel-out shift register also includes a sorting circuit , forming the S/P conversion and sorting circuit (1), its input end is multi-channel low-speed code stream HW0, HW1...HWn, its output end is parallel code stream, and the arrangement sequence of the output parallel code stream is: HW0TS0 HW1TS0…HWnTS0 HW0TS1 HW1TS1…HWnTS1……HW0TS31 HW1TS31…HWnTS31其中TS0、TS1…TS31为每个码流中的时隙;根据输入码流的路数和锁存器(2)位数,将上述并行码流等分成一组或多组,相应地,锁存器(2)也有一个或多个,每个锁存器(2)对应一组并行码流;所有锁存器(2)的时钟频率相同而相位不同,其输出信号分别输入到多个P/S变换器(3),或输入到一个P/S变换器(3)的多个输入端;所述P/S变换器(3)的输出端即为高速串行码流的输出端;所述分路器部分中,在锁存器(2’)之前接有S/P变换器(1’),所述S/P变换器(1’)的输入端即为分路器的高速码流输入端,其输出端接锁存器(2’)的输入端;锁存器(2’)的输出端接P/S变换电路(3’)输入端,P/S变换电路(3’)的输出端即为分路器的低速码流输出端。HW0TS0 HW1TS0…HWnTS0 HW0TS1 HW1TS1…HWnTS1…HW0TS31 HW1TS31…HWnTS31 where TS0, TS1…TS31 are time slots in each code stream; Code streams are equally divided into one or more groups, correspondingly, there are one or more latches (2), and each latch (2) corresponds to a group of parallel code streams; the clock frequency of all latches (2) The same but with different phases, the output signals are respectively input to a plurality of P/S converters (3), or input to multiple input terminals of a P/S converter (3); the P/S converter (3) The output end of is the output end of the high-speed serial code stream; In the described splitter part, before the latch (2'), an S/P converter (1') is connected, and the S/P converter The input terminal of (1') is the high-speed code stream input terminal of the splitter, and its output terminal is connected to the input terminal of the latch (2'); the output terminal of the latch (2') is connected to the P/S conversion circuit (3') input end, and the output end of the P/S conversion circuit (3') is the low-speed code stream output end of the splitter. 2、如权利要求1所述的可变码速的复用分路器,其特征是:所述复用器部分中的P/S变换器(3)由锁存器组成,可用全局时钟使其输出保持同步;所述分路器部分中的锁存器(2’)和P/S变换电路(3’)之间还接有二选一电路(4),锁存器(2’)的输出端通过所述二选一电路(4)接P/S变换电路(3’)输入端。2. The multiplexing splitter of variable code rate as claimed in claim 1 is characterized in that: the P/S converter (3) in the multiplexer part is made up of a latch, which can be used by a global clock. Its output keeps synchronously; Also be connected with two select one circuit (4) between the latch (2') and P/S conversion circuit (3') in the splitter part, latch (2') The output terminal of the P/S conversion circuit (3') is connected to the input terminal of the P/S conversion circuit (3') through the said one-of-two circuit (4). 3、一种可变码速的复用分路方法,包括复用方法和分路方法两部分,其特征是:所述复用方法包括以下步骤:3, a kind of multiplexing branching method of variable code rate, comprise two parts of multiplexing method and branching method, it is characterized in that: described multiplexing method comprises the following steps: 利用S/P变换及排序电路(1)将输入的多路低速码流HW0、HW1……HWn变换为输出端并行码流,并将输出并行码流的顺序排列为:Utilize the S/P conversion and sorting circuit (1) to transform the input multi-channel low-speed code streams HW0, HW1...HWn into output parallel code streams, and arrange the order of the output parallel code streams as follows: HW0TS0 HW1TS0…HWnTS0 HW0TS1 HW1TS1…HWnTS1……HW0TS31HW1TS31…HWnTS31其中TS0、TS1…TS31为每个码流中的时隙;HW0TS0 HW1TS0…HWnTS0 HW0TS1 HW1TS1…HWnTS1…HW0TS31HW1TS31…HWnTS31 where TS0, TS1…TS31 are time slots in each stream; 根据输入码流的路数和锁存器(2)位数,将上述并行码流等分成一组或多组,每组分别输入到一个时钟频率相同而相位各不相同的锁存器(2);According to the number of channels of the input code stream and the number of bits of the latch (2), the above-mentioned parallel code stream is divided into one or more groups, and each group is respectively input to a latch (2) with the same clock frequency and different phases. ); 将锁存器(2)的输出信号分别输入到多个P/S变换器(3)或输入到一个P/S变换器(3)的多个输入端进行P/S变换;Inputting the output signal of the latch (2) to a plurality of P/S converters (3) or multiple input terminals of a P/S converter (3) respectively for P/S conversion; 经所述P/S变换器(3)变换后的输出信号即为高速串行码流;The output signal converted by the P/S converter (3) is a high-speed serial code stream; 所述分路方法包括以下步骤:The branching method includes the following steps: 将接收到的高速码流输入到S/P变换器(1’)的输入端,进行S/P变换;The high-speed code stream that will receive is input to the input end of S/P converter (1 '), carries out S/P conversion; 经S/P变换的信号输出到锁存器(2’)的输入端,并经锁存器(2’)的输出到P/S变换电路(3’)输入端;The signal output through S/P conversion is to the input terminal of latch (2 '), and the output to P/S conversion circuit (3 ') input terminal through the output of latch (2 '); 经P/S变换电路(3’)变换后的输出端即为分路器的低速码流输出信号。The output end transformed by the P/S conversion circuit (3') is the low-speed stream output signal of the splitter.
CN 99126991 1999-12-24 1999-12-24 Multiplex shunt with variable bit rate and multiplex shunting method Expired - Fee Related CN1129279C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 99126991 CN1129279C (en) 1999-12-24 1999-12-24 Multiplex shunt with variable bit rate and multiplex shunting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 99126991 CN1129279C (en) 1999-12-24 1999-12-24 Multiplex shunt with variable bit rate and multiplex shunting method

Publications (2)

Publication Number Publication Date
CN1302138A CN1302138A (en) 2001-07-04
CN1129279C true CN1129279C (en) 2003-11-26

Family

ID=5284650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 99126991 Expired - Fee Related CN1129279C (en) 1999-12-24 1999-12-24 Multiplex shunt with variable bit rate and multiplex shunting method

Country Status (1)

Country Link
CN (1) CN1129279C (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100407603C (en) * 2002-07-02 2008-07-30 华为技术有限公司 Method for realizing time slot multiplexing/demultiplexing
CN101207471B (en) * 2007-12-12 2011-09-21 上海华为技术有限公司 Method and device for exchanging time slots
CN101867430B (en) * 2010-06-21 2013-02-13 王珲 Multiplexing/demultiplexing structure for serial data transmission of low power consumption
CN102098094A (en) * 2010-11-04 2011-06-15 董仕 Method and device for signal period expansion and ultra-high speed row-column conversion

Also Published As

Publication number Publication date
CN1302138A (en) 2001-07-04

Similar Documents

Publication Publication Date Title
US3794768A (en) Cross-office connecting scheme for interconnecting multiplexers and central office terminals
US4935921A (en) Cross-connection network using time switch
CA2024809A1 (en) Digital signal multiplexing apparatus and demultiplexing apparatus
JPH0439820B2 (en)
JPH0654901B2 (en) Format conversion control method
CN1017859B (en) Method of transmitting wide-band digital signal in subsystem cellular chains by synchron digital multiplex hierarchy network
KR930008728B1 (en) Technique for converting either way between a plurality of n synchronized serial bit streams and a parallel format
CA2445001C (en) Architectures for a single-stage grooming switch
CN1129279C (en) Multiplex shunt with variable bit rate and multiplex shunting method
JP3010448B2 (en) Digital communication equipment
JPH06205479A (en) Exchange arrangement and exchange method
US4727558A (en) Method and apparatus for extracting a predetermined bit pattern from a serial bit stream
US5177742A (en) Demultiplexer for a serial and isochronous multiplex signal
USRE29215E (en) Cross-office connecting scheme for interconnecting multiplexers and central office terminals
CN1571328A (en) Super large-scale cross connection device and method used for synchronous digital transmission system
CN1094011C (en) Circuit for converting frame data
US7000158B2 (en) Simplifying verification of an SFI converter by data format adjustment
US7292607B2 (en) Method and circuit for processing data in communication networks
KR920000094B1 (en) Voice and non-voice information and signaling information separation circuit
US3824543A (en) Digital data interchange circuit for a multiplexer/demultiplexer
CN1275427C (en) Remote monitoring data transmission method and implementing device therefor
JP3730379B2 (en) A device that outputs communication line data to a terminal
CN1691568A (en) Method and apparatus for data cross in synchronous data transmission network
JPH02246536A (en) Data multiplexing circuit
KR950005611B1 (en) Optical cable tv system

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C14 Grant of patent or utility model
GR01 Patent grant
DD01 Delivery of document by public notice

Addressee: Huawei Technologies Co., Ltd.

Document name: Notification to Pay the Fees

DD01 Delivery of document by public notice

Addressee: Xia Jianqiang

Document name: Notification of Termination of Patent Right

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20031126

Termination date: 20121224

CF01 Termination of patent right due to non-payment of annual fee