|
User’s Guide For Real-Time Implementation of 2.4 kb/s Federal Standard MELP Coder On the TMS320C5x Prepared For National Security Agency Fort G. Meade, MD, 20755-6000 March 19, 1998 Prepared by DSPCon and Texas Instruments Program Manager: Vishu Viswanathan Overview This document describes the installation instructions of both hardware and software for the TMS320C5x real time implementation of the MELP speech coder. In addition, this document describes the layout of the directory structure and files that make up the coder. Hardware Required Hardware The following hardware is required to run the system as delivered by TI/DSPCon.
Installation The following instructions detail how to install the required hardware to run the TMS320C5x real time MELP coder implementation on an 80 MHz ISA card. Open your PC and make sure that you have at least two ISA slots available.
Software Required Software You will need the following software installed on your PC to build and run the MELP code on the Tiger-5x.
Installation To install the TMS320C5x, real time MELP code environment on your PC (running Windows-95), follow the directions below:
DSPTOOLS = c:\my_directory Where c:my_directory is the path to where you have installed the Texas Instruments TMS320C5x tools.
Running the Software The following text describes how to invoke and run the TMS320C5x real time MELP coder. Two PC executables have been provided. The first executable (melptst.exe) takes the base name of a speech file and "feeds" this file to the TMS320C5x target on the Tiger-5x board which is running the MELP algorithm (both analysis and synthesis). The DSP accepts from the PC a frames worth of data (360 bytes or 180 samples). The DSP runs the analysis algorithm and provides back to the PC the encoded channel stream. Next, while the PC is comparing the channel stream results to the known correct channel stream, the DSP is running the synthesis portion of the algorithm. The DSP then provides the synthesized result to the PC which once again compares the regenerated speech to a known result. Therefore, in order to run melptst.exe you need:
Please note: All three of these files must be in the same directory. To run this executable, you must first load the TMS320C5x MELP executable into the Tiger-5x board and, using the emulator, start its execution. This is described below. After starting the emulator, from a DOS box run the PC executable melptst.exe as follows: Prompt > melptst testfile Where testfile is the base name of the input speech, stream file and synthesized speech files. For example: To run the speech file dam6.sp through the TMS320C5x on the Tiger-5x and compare the DSP’s result to dam6.chn and dam6.spd, the DOS command line would be Prompt> melptst dam6 <cr> The second PC executable allows you to run the melptst executable on several speech files one after the other in batch style. To run this executable, simply type: Prompt> melpauto batch_file Where batch_file is an ASCII file which contains a list of speech file base names that you wish to run through melptst.exe. Please remember that each of the base file names reference in the batch_file, must reference three files (described above) all of which must be located in the current directory.
Loading the MELP DSP Executable into the Tiger-5x Target. After installing the Vista MP XDS-510 support on your Windows-95 PC, there will appear an icon labeled PDM. Double click on this icon. This will cause a dialog box to appear with a prompt. At the prompt type the following: Prompt > spawn emu5xw0 -n cpu_a -p 240 <cr> This will cause an additional window to appear. NOTE, if you have mapped the XDS-510 to an I/O port other than the default (240), you need to change the last parameter of the above statement to that I/O port address. You have now entered the emulator environment and seized control of the DSP target on the Tiger-5x board. A blinking cursor will appear in the lower left hand corner in the "Control Window". At this prompt type the following command: > take c:\ti_melp\tiger5x.cmd <cr> This will load the MELP executable into the Tiger-5x board’s memory. After this process is complete, click on the RUN soft key on the top of the emulator window. You have now started the application running on the DSP.
Directory Tree and MELP Files The MELP real time deliverable has been provided in the form of a directory tree with several types of different files each in their own sub-directory. The following text describes each sub-directory and discusses the significance of the files within each sub-directory.
o .c - ANSI C source files o .asm - TMS320C5x assembly files
Important Files The following section describes the location and function of some of the important files that have been provided. This list does not include the source files but rather files for specifying the target environment, building the application, and running the application.
Rebuilding the Application TI/DSPCon have provided a Unix/ Microsoft compatible "makefile" for building this MELP application. Therefore, to easily rebuild the application, you will need such a "make" utility. Assuming you have a "make" utility, from the c:\ti_melp directory, simply type: prompt > make clean <cr> to remove (clean) all of the library files and associated object code (including the executable). To rebuild all, simply type: prompt > make <cr>
Site Map | HomeThis page was last edited on 18 September 2002 |
|
|