1、STD-ITU-T RECMN G.727 APPEND I T-ENGL 1771 m 4Bb2571 Ob32343 171 m INTERNATIONAL TELECOM MUN ICATION UN ION ITU=T TELECOMMUNICATION STANDARDIZATION SECTOR OF ITU G.727 Appendix I Test vectors (03/9 I ) SERIES G: TRANSMISSION SYSTEMS AND MEDIA, DIGITAL SYSTEMS AND NETWORKS Digital transmission system
2、s - Terminal equipments - Coding of analogue signals by methods other than PCM Description of the digital test sequences for the verification of the G.727 5-, 4-, 3- and 2-bitlsample embedded ADPCM algorithm - STD-ITU-T RECMN G-727 APPEND I T-ENGL 1771 = 48b259L 0b323LI2 OZ8 D FOREWORD IT (Internati
3、onal Telecommunication Union) is the United Nations Specialized Agency in the field of telecommunications. The ITU Telecommunication Standardization Sector (ITU-T) is a permanent organ of the ITU. The ITU-T is responsible for studying technical, operating and tariff questions and issuing Recommendat
4、ions on them with a view to standardizing telecommunications on a worldwide basis. The World Telecommunication Standardization Conference (WTSC), which meets every four years, establishes the topics for study by the IT-T Study Groups which, in their turn, produce Recommendations on these topics. The
5、 approval of Recommendations by the Members of the ITU-T is covered by the procedure laid down in WTSC Resolution No. 1. In some areas of information technology which fail within IT-Ts purview, the necessary standards are prepared on a collaborative basis with IS0 and IEC. INTELLECTUAL PROPERTY RIGH
6、TS The IT draws attention to the possibility that the practice or implementation of this Recommendation may involve the use of a claimed Intellectual Property Right. The ITU takes no position concerning the evidence, validity or applicability of claimed Intellectual Property Rights, whether asserted
7、 by IT members or others outside of the Recommendation development process. As of the date of approval of this Recommendation, the ITU hadhad not received notice of intellectual property, protected by patents, which may be required to implement this Recommendation. However, implementors are cautione
8、d that this may not represent the latest information and are therefore strongly urged to consult the TSB patent database. O ITU 1997 Ali rights reserved. No part of this publication may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying and microf
9、ilm, without permission in writing from the ITU. STD*ITU-T RECMN 6.727 APPEND I T-ENGL 1991 M 48b2571 Ob32343 Tb4 DESCRIPTION OF THE DIGITAL TEST SEQUENCES FOR THE VERIFICATION OF THE G.727 5-, 4-, 3- AND 2-BIT/SAMPLE EMBEDDED ADPCM ALGORITHM 1 Introduction This technical report describes the test s
10、equences (vectors) for the embedded ADPCM algorithms of Recommendation G. 727. The test sequences are arranged in six separate diskettes, three for the p-law and three for the A-law: 1) 2) 3) Diskettes 1 and 2 contain the reset and the homing test sequences for the embedded ADPCM algorithms (5,2), (
11、5,3) and (5,4) for both the p-law and A-law respectively. Diskettes 3 and 4 contain the reset and the homing test sequences for the embedded ADPCM algorithms (4,2), (4,3) and (4,4) for both the p-law and A-law respectively. Diskettes 5 and 6 contain the reset and the homing test sequences for the em
12、bedded ADPCM algorithms (2,2), (3,2) and (3,3) for both the p-law and A-law respectively. The diskettes are of the 3% MS-DOS format. A READ.Ml3 file lists the contents of each diskette. 2 General description The verification testing procedure consists in applying an input sequence to an embedded ADP
13、CM implementation and verifying that the output sequence is the same sequence in the output file for the same test conditions (PCM coding law, type of input, initial state of the implementation). There are three types of input sequences. The first type consists of various sinusoidal PCM inputs that
14、are representative of the signals expected in normal operation. These are called “normal inputs“. A second group of input sequences is the set of “overload inputs“ that contain PCM signals of very large amplitudes. The third group is the set of ADPCM sequences that can exercise the algorithm in a ma
15、nner that is not possible with any PCM input sequence. They test the arithmetic and algorithmic performance of the ADPCM decoder by driving it to states that are unreachable by PCM signals under normal conditions. For example, these states may result from errors on the transmission line. These inter
16、mediate sequences will be denoted as “I-inputs“. The values (or samples) contained in a test file are given in ASCII hexadecimal representation with two hexadecimal characters per 8-bit value. In files with 5-bit ADPCM values, the three most significant bits are set to O. Files containing 4-bit ADPC
17、M values have the four most significant bit of each value set to O. Files that contain 3-bit ADPCM values have the five most significant bits of each word set to O. For files containing 2-bit ADPCM values, the six most significant bits are set to O. All PCM A-law inputs are in the format specified b
18、y Table ldG.711, Le. the even bits are inverted. Each line in any file contains up to 32 values (or 64 characters) and ends with a line feed character. Two more hexadecimal characters representing the result of a checksum computation over the entire file are appended to each file. This checksum is t
19、he remainder of the division of 255 of the sum of all sample values (two hexadecimal characters comprise a sample value) in the file. It has been noted that these diskettes do not always copy correctly using DISKCOPY due to the interaction of DISKCOPY with certain character sequences found in the te
20、st sequences. Either files should be copied individually using COPY, or XCOPY should be used instead of DISKCOPY. Recommendation G.727 - Appendix I - Test vectors description 1 STD-ITU-T RECMN G-727 APPEND I T-ENGL 1791 = 48b2571 0b323Lt4 7TO D Description PCM input word ADPCM word PCM output word I
21、 3 Test configurations Word format Identical to that of SP described in the sub-block COMPRESS of the synchronous coding adjuster (6.2.1 O/G. 727) As specified in the sub-block RECONST of the inverse adaptive quantizer (6.2.4/G.727) Identical to that of SP described in the sub-block COMPRESS (6.2.10
22、lG.727) Test sequences are derived for the two configurations shown in Figures 1 and 2, respectively, The configuration of Figure 1 is the arrangement with the encoder transmitting to the decoder for error- free operation. The configuration of Figure 2 allows for input ADPCM words that would not nor
23、mally emanate from an encoder and a PCM input word. The word formats of the various sequences are detailed in Table 1. PCM Output sequence PCM Input sequence S SD 4 I or I, ADPCM Ouput sequence T1527200-97 Figure 1 - Encoder and decoder configuration ADPCM Input sequence PCM output sequence i or I,
24、Decoder SD T15272 10-97 Figure 2 - Decoder only configuration I I I 4 Test com binations The initiai state of the implementation may be either the reset state of the algorithm defined in Table 2 or a well-defined initial state that follows the application of an initialization (or homing) sequence. A
25、ccordingly, there are two types of test sequences, reset sequences and homing sequences. 2 Recommendation G.727 - Appendix I - Test vectors description STD-ITU-T RECMN G-727 APPEND I T-ENGL 1991 W 48b2.591 Ob32345 837 Input A-law p-law A-law p-law Table 2 - State values at reset output A-law p-law p
26、-law A-law I Variable Vaiue O O 32 O 32 O 34 816 544 The homing sequences are based on the initial states that follow the application of an initialization (homing) sequence. These initialization sequences are described in Mer detail in 6.4. For each initial state, both PCM laws (A-law and p-law) are
27、 considered. To allow for the interoperation of both PCM laws, four possible inputoutput combinations must be considered as shown in Table 3. Table 3 - Inputoutput combinations 5 Test organization Tables 4-7 contain the names of files containing various resethoming sequences for the following cases:
28、 1) p-law; 2) A-law; 3) p+A;and 4) A-+ p. Files whose names start with an “R“ contain reset sequences while the names of files for the homing sequences start with an “H“. The suffix “.I“ is reserved for the intermediate ADPCM encoder response to a PCM input. Files with the suffix “.O“ are the output
29、 PCM files. Recommendation G.727 - Appendix I - Test vectors description 3 STD-ITU-T RECMN Ga727 APPEND I T-ENGL 1971 m 48b2591 Ob3234b 773 W RI33M.O 0VR.M RV33M.I , HI33M.O */*y 1 HV33M.1 RI54M.O 0VR.M RV54M.I HV54M.I Table 4 - Reset and homing sequences for p-law I I I 3,3 594 4,4 Normal Algorithm
30、 NRM.M RN33M.I HN33M.I NRM.M RN54M.I HN54M.I NRh4.M RN44M.I HN44M.I 52 NRM.M RN52M.I HN52M.I 432 NRM.M RN42M.I HN42M.I 32 NRM.M RN32-M.1 HN32M.I RN22 M.1 HN22M.I RN53M.I HN53M.I RN43M.I HN43M.I Overload I I-input I HN42M.O RN32M.O I24 HN32M.O HN22M.O RN53M.O HN53M.O RN43M.O HN43M.O RN33M.O I N, HN33
31、M.O RN54-M.O HN54M.O ZYl.2 “44-M. O I RI52M.O HI52-M. O RI42-M.O HI42M.O 0VR.M 0VR.M RV52M.I HV5 2-M. I RV42M.I HV42-M .I RI32M.O 0VR.M RV32M.I HI3 2-M.O 1 1 HV32M.I RI22M.O HI22M.O RI53M.O HI53M.O HV53M.I RI43M.O 0VR.M RV43M.I HI43M.O 1 1 HV43M.I output (PCM) RV52M.O HV52M.O RV42M.O HV42-M.O RV32M.
32、O HV32-M.O RV22-M. O HV22M.C RV53M.O HV53M.O RV43M.O HV43M.O RV33M.O HV33M.O RV54M.O HV54M.O RV44-M .O HV44-M. O 4 Recommendation G.727 - Appendix I -Test vectors description STD-ITU-T RECMN GO727 APPEND I T-ENGL 1791 LiAb259L Ob323Li7 bOT D Output (PCM) RI52-A.0 HI5 2A. O M42-A.0 HI42-A.0 E32-A.0 H
33、I32-A.0 Table 5 - Reset and homing sequences for A-law I I I 1 Input Intermediate Output (PCM) (ADPCM) (PCM) 0VR.A RV52A.I RV52A.O HV52-A.1 HV52A.O 0VR.A RV42-A.1 RV42-A.0 HV42-A.1 HV42A.O 0VR.A RV32-A.1 RV32A.O HV32A.I HV32-A.0 Normal Algorithm 42 3 32 NRM.A RN42-A.1 “42-A.1 NRM.A RN32-A.1 “32-A. I
34、 HN221A.I “53-A.1 NM.A RN43A.I I 493 I I “43-A.1 “54-A.1 “44-A.1 Overload i I-input I “52-A.0 RN42-A.0 i 113 “42-A. O RN32A.O “3 2-A. O RN53-A.0 “53-A.0 RN43A.O “43-A.0 “33-A.0 RN33-A.0 I 124 RN54-A.0 I40 “54-A.0 N44-A.0 I32 HN44A.O 1 HI5 3 -A .O RI43A.O 1 0VR.A 1 RV43A.I I RV43A.O HI43-A .O HV43A.I
35、 HV43A.O RI33A.O 0VR.A RV33A.I RV33A.O HI33A.O HV33A.I HV33A.O RI54-A.0 0VR.A RV54A.I RV54A.O HI54-A. O I 1 HV54A.I 1 HV54A.O I RI44-A.0 0VR.A RV44-A.1 RV44-A.0 HI44A.O HV44-A.1 HV44A.O Recommendation G.727 - Appendix I - Test vectors description 5 STD-ITU-T RECMN G-727 APPEND I T-ENGL 1941 LiBb259L
36、 Db323Li8 54b a Normal Input Intermediate Output Algorithm (PCM) (ADPCM) (Po Table 6 - Reset and homing cross sequences for p -+ A Overload Input Intermediate Output (PCM) (ADPCM) WM) 533 4,3 RN52-M.1 RN52C.O 0VR.M RV52M.I RV52-C.0 1 HV52M.I 1 HV52-C.0 52 I NRMM I HN52M.I I “52-C.0 1 NRM.M RN53-M.1
37、RN53C.O 0VR.M RV53M.I RV53-C.0 HN53M.l HN53C.O HV53M.I HV53C.O NRM.M RN43M.I RN43C.O 0VR.M RV43M.I RV43C.O HN43M.1 HN43C.O HV43M.I HV43C.O RN42C.O 0VR.M RV42M.I “42-C.0 HV42M.I RN32C.O 0VR.M RV32-M.1 +-i- HN32C.O HV32M.I 3 33 5,4 - RV42C.O HV42C.O NRM.M RN33M.I RN33C.O 0VR.M RV33M.I HN33M.I HN33C.O
38、HV33M.I NRM.M RN54M.I RN54C.O 0VR.M RV54M.I HN54M.I “54-C.0 HVS4M.I RV32-C. O HV32C.O RN22C.O 0VR.M RV22-M.1 “22C.O I I HV22M.i RV22-C.0 HV22C.O RV33C.O HV3 3 C .O RV54C.O HV54C.O RN44M.I RN44C.O 0VR.M RV44M.I I HV44-M.1 I 44 1 NRM*M 1 HN44M.I IHN44-C.0 I RV44-C.0 HV44-(2.0 6 Recommendation G.727 -
39、Appendix I - Test vectors description - STD-ITU-T RECMN G-727 APPEND I T-ENGL 1991 48b2591 0b3Z.349 482 D Intermediate (ADP0 RV52-A.1 HV52-A.1 RV42-A .I HV42-A.1 Table 7 - Reset and homing cross sequences for A + p I I I Output FCM) RV52-X.0 HV52X.O RV42-X. O HV42X.O Normal Input Algorithm 52 472 3,
40、2 NRM.A RN52-A.1 RN52X.O 0VR.A “52-A.1 HN52X.O NRM.A RN42-A.1 RN42X.O 0VR.A “42-A.1 HN42X.O NRM.A RN32A.I RN32X.O 0VR.A “32-A.1 HN32X.O I 2,2 I NRM.A I RN22 A.1 1 RN22-X.0 HN221A.I HN22X.O RV43-A.1 HV43-A.1 RN43A.I RN43X.O I 4y3 I I “43-A.1 I HN43X.O RV43X.O HY43X.O 0VR.A 0VR.A 0VR.A NRh4.A RN33-A.1
41、 RN33X.O 0VR.A “33-A.1 HN33X.O NRM.A RN54-A.1 RN54X.O 0VR.A HN54A.I HN54X.O Overload 474 NRM.A RN44-A.1 RN44X.O 0VR.A RV44-A.1 RV44X.O HN44A.I HN44X.O HV44A.I HV44X.O 5.1 Reset test sequences The reset test files correspond to the following sequences: p-law (A-law) PCM encoder input sequence for nor
42、mal operation: NRM.M and NRM.A. ADPCM encoder output sequence corresponding to the input in 1): RN54 MI, RN53-M.1, RN52-M.1, RN44-M.1, RN43-M.1, RN42-M.1, RN33-M.1, RN32 k.1, RN22 M.1, RN54-A.1, RN53-A.1, RN52-A.1, RN44-A.1, RN43-A.1, RN42 - A.1, W73-A.1, RN32 - A.1 and RN22A.I. p-law (A-law) PCM de
43、coder output sequence corresponding to the ADPCM input in 2): RN54 M.O, RN53 M.O, RN52-M.O, RN44 M.O, RN43 M.O, RN42 M.O, RN33 M.O, RN32M.0, RN22M.0, W54-A.0, RN53A.0, RN5LA.0, RN44A.0, RN43A.0, RN42-A.0, RN33-A.0, RN32-A.0 and RN22-A.O. ADPCM decoder input sequence (“I-input“): 116,124,132 and 140.
44、 p-law (A-law PCM) output sequence corresponding to the i-input ADPCM decoder input in 4): RI54 M.O, RI53 M.O, RI52-M.O, RI44-M.O, RI43-M.O, M42-M.O, RI33-M.O, RI32M.0,- RI22M., lZI54-A.0, RI53-A.0, RI52-A.0, RI44-A.0, 343-A.0, RI42 - A.0, RI33 - A.0, RI32 - A.0 and RI22A.O. p-law (A-law) PCM encode
45、r input sequence for overload conditions: 0VR.M and 0VR.A. ADPCM encoder output sequence in response to the input in 6): RV54 M.1, RV53-M.1, RV52 M.1, RV44-M.1, RV43-M.1, RV42-M.1, RV33-M.1, RV32-k.1, RV22-M.1, RV54-A.1, RV53-A.1, RV52-A.1, RV44A.1, RV43A.1, RV42A.1, RV33A.X7 RV32A.I and Rt22-A.I. R
46、ecommendation G.727 - Appendix I - Test vectors description 7 STD-ITU-T RECMN G-727 APPEND I T-ENGL L771 9 48b257L Ob32350 LT4 9 8) p-law (A-law) PCM output sequence corresponding to the ADPCM input in 7): RV54-M.O, RV53-M.O, RV52-M.O, RV44-M.O, RV43-M.O, RV42 M.O, RV33-M.O, RV32 M.O, RV22-M.O, RV54
47、-A.0, RV53-A.0, RV52-A.0, RV44A.0, RV43-A.0, RV4cA.0, RV33-A.0, RV32-A.0 and RV22 - A.O. The p -+ A and A -+ p cross test sequences for the normal and overload cases: RN54 C.0, RN53C.0, RN52C.0, RN44-C.0, RN43C.0, RN42-(2.0, RN33C.0, RN32C.0, RN22 C.0, RV54C.0, RV53C.0, RV5ZC.0, RV44-(2.0, RV43 C.0,
48、 RV42-C.0, RV33C.0, RV32C.0, RV22 CO, RN54-X.0, RN53-X.0, RN52X.0, RN44X.0, RN43X.0, RN42X.0, RN33X.0, RN32X.0, RN22X.0, RV54X.0, RV53X.0, RV52-X.0, - RV44X.0, RV43X.0, RV42X.0, RV33 - X.0, RV32X. and RV22 - x.0. 9) 5.2 Homing test sequences The homing test sequences correspond to the following sequ
49、ences: 1) 2) 3) PCM initialization (homing) sequences to drive the implementation to a known initial state: PCM - IN1T.M for the p-law and PCM - IN1T.A for the A-law respectively. p-law (A-law) PCM encoder input sequence for normal operation: NRh4.M and NRM.A. ADPCM encoder output sequence corresponding to the input in 2): HN54 M.1, “53-M.1, “52-M.1, “44-M.1, HN43-M.1, “42-M.1, “33-M.1, “32 k.1, “22 M.1, HN54A.1, HN53A.1, HN52A.1, “44-A.1, HN43A.1, HN42A.1, - HN3fA.1, - HN32A.I and “22-A.I. p-law (A-law) PCM decoder output sequence correspo