├── LICENSE.md ├── README.md ├── doc ├── datasheet-telebench.pdf ├── errata-telebench.pdf ├── porting.pdf └── releasenotes.pdf ├── forall ├── forall.bat ├── makeall ├── makeall.bat ├── makefile ├── makelite ├── makelite.bat ├── makereg ├── makereg.bat ├── makeworld.dsw ├── me.bat ├── telecom ├── autcor00 │ ├── algo.h │ ├── autcor00.c │ ├── bmark.c │ ├── bmark_lite.c │ ├── datasets │ │ ├── vpulsea.dat │ │ ├── vpulseai.dat │ │ ├── vsinea.dat │ │ ├── vsineai.dat │ │ ├── vspeecha.dat │ │ ├── vspeechai.dat │ │ ├── xpulsei.dat │ │ ├── xpulset.dat │ │ ├── xsinei.dat │ │ ├── xsinet.dat │ │ ├── xspeechi.dat │ │ └── xspeecht.dat │ └── win32 │ │ ├── autcor00.dsp │ │ └── autcor00_lite.dsp ├── conven00 │ ├── algo.h │ ├── bmark.c │ ├── bmark_lite.c │ ├── conven00.c │ ├── datasets │ │ ├── vk3r2bw.dat │ │ ├── vk3r2bwi.dat │ │ ├── vk4r2bw.dat │ │ ├── vk4r2bwi.dat │ │ ├── vk5r2bw.dat │ │ ├── vk5r2bwi.dat │ │ ├── xk3r2di.dat │ │ ├── xk3r2dt.dat │ │ ├── xk4r2di.dat │ │ ├── xk4r2dt.dat │ │ ├── xk5r2di.dat │ │ └── xk5r2dt.dat │ └── win32 │ │ ├── conven00.dsp │ │ └── conven00_lite.dsp ├── depgen_gcc.cml ├── depgen_vc.cml ├── diffmeasure │ ├── diffmeasure.c │ ├── doc │ │ └── diffmeasure.pdf │ ├── verify.c │ ├── verify.h │ └── win32 │ │ └── diffmeasure.dsp ├── dirsx86.mak ├── doc │ └── howtoruntelecom.htm ├── empty │ ├── bmark.c │ ├── bmark_lite.c │ ├── readme.txt │ └── win32 │ │ ├── empty.dsp │ │ └── empty_lite.dsp ├── fbital00 │ ├── algo.h │ ├── bmark.c │ ├── bmark_lite.c │ ├── datasets │ │ ├── allocmapi.dat │ │ ├── allocmapt.dat │ │ ├── vpentbai.dat │ │ ├── vpentbat.dat │ │ ├── vstepbai.dat │ │ ├── vstepbat.dat │ │ ├── vtypbai.dat │ │ ├── vtypbat.dat │ │ ├── xpentsnri.dat │ │ ├── xpentsnrt.dat │ │ ├── xstepsnri.dat │ │ ├── xstepsnrt.dat │ │ ├── xtypsnri.dat │ │ └── xtypsnrt.dat │ ├── fbital00.c │ └── win32 │ │ ├── fbital00.dsp │ │ └── fbital00_lite.dsp ├── fft00 │ ├── algo.h │ ├── bmark.c │ ├── bmark_lite.c │ ├── datasets │ │ ├── brind256i.dat │ │ ├── brind256t.dat │ │ ├── cstable256i.dat │ │ ├── ctable256i.dat │ │ ├── ctable256t.dat │ │ ├── gen.exe │ │ ├── golden_sine.dat │ │ ├── stable256i.dat │ │ ├── stable256t.dat │ │ ├── vsine256i.dat │ │ ├── vsine256t.dat │ │ ├── vspn256.dat │ │ ├── vspn256i.dat │ │ ├── vtpulse256.dat │ │ ├── vtpulse256i.dat │ │ ├── xsine256i.dat │ │ ├── xsine256t.dat │ │ ├── xspn256i.dat │ │ ├── xspn256t.dat │ │ ├── xtpulse256i.dat │ │ └── xtpulse256t.dat │ ├── fft00.c │ └── win32 │ │ ├── fft00.dsp │ │ └── fft00_lite.dsp ├── harness.h ├── iterationsx86.mak ├── makefile ├── resultsx86.mak ├── runx86.mak ├── targets_gcc.mak ├── targets_vc.mak ├── telecom.dsw └── viterb00 │ ├── algo.h │ ├── bmark.c │ ├── bmark_lite.c │ ├── datasets │ ├── gett.dat │ ├── gett_golden.dat │ ├── getti.dat │ ├── gettref.dat │ ├── ones_golden.dat │ ├── onesi.dat │ ├── onesref.dat │ ├── onest.dat │ ├── toggle_golden.dat │ ├── togglei.dat │ ├── toggleref.dat │ ├── togglet.dat │ ├── zeros_golden.dat │ ├── zerosi.dat │ ├── zerosref.dat │ └── zerost.dat │ ├── viterb00.c │ └── win32 │ ├── viterb00.dsp │ └── viterb00_lite.dsp ├── th ├── gcc │ ├── depgen.cml │ └── harness.mak ├── src │ ├── anytoi.c │ ├── anytoi.h │ ├── ascii.h │ ├── crc.c │ ├── heap.c │ ├── heap.h │ ├── memmgr.c │ ├── memmgr.h │ ├── printfe.c │ ├── printfe.h │ ├── ssubs.c │ ├── ssubs.h │ ├── thal.h │ ├── thassert.h │ ├── therror.c │ ├── therror.h │ ├── thfl.c │ ├── thfl.h │ ├── thfli.h │ ├── thlib.c │ ├── thlib.h │ ├── thvinfo.h │ ├── uuencode.c │ └── uuencode.h ├── vc │ ├── depgen.cml │ └── harness.mak └── x86 │ └── al │ ├── eembc_dt.h │ ├── heapport.h │ ├── thal.c │ └── thcfg.h ├── th_lite ├── gcc │ ├── depgen.cml │ └── harness.mak ├── src │ ├── crc.c │ ├── heap.c │ ├── heap.h │ ├── thal.h │ ├── thassert.h │ ├── therror.h │ ├── thlib.c │ ├── thlib.h │ └── thvinfo.h ├── vc │ ├── depgen.cml │ └── harness.mak └── x86 │ └── al │ ├── eembc_dt.h │ ├── heapport.h │ ├── thal.c │ └── thcfg.h └── util ├── awk ├── extracttime.awk ├── sizegcc.awk ├── sizevc.awk ├── titlesize.txt └── titletime.txt ├── doc └── makerule.html ├── make ├── gcc.mak ├── makefile ├── vc.mak └── vcvars32.bat └── perl ├── makerule.mak └── makerule.pl /README.md: -------------------------------------------------------------------------------- 1 | # Introduction 2 | 3 | TeleBench™ is a suite of benchmarks that allows the users to approximate the performance of processors in modem and related fixed-telecom applications. Its benchmark kernels, which also serve as a representation of traditional DSP algorithms, include the following: 4 | 5 | ## Autocorrelation 6 | This benchmark, which produces scores from three different data sets – pulse, sine, and speech – is based on a mathematical tool used frequently in signal processing for analyzing functions or series of values, such as time domain signals. It is the cross-correlation of a signal with itself. 7 | 8 | ## Convolutional Encoder 9 | This benchmark, supports a type of error-correcting code, is based on an algorithm often used to improve the performance of digital radio, mobile phones, satellite links, and Bluetooth implementations. 10 | 11 | ## Bit Allocation 12 | The benchmark tests the target processor’s ability to spread a stream of data over a series of buffers (or “frequency bins”) which it then modulates and transmits on a telephone line in ADSL applications. 13 | 14 | ## Inverse Fast Fourier Transform (iFFT) 15 | The benchmark tests the target processor’s ability to convert frequency domain data into time domain data. 16 | 17 | ## Fast Fourier Transform (FFT) 18 | The benchmark tests the target processor’s ability to convert time domain data into frequency domain data. 19 | 20 | ## Viterbi Decoder 21 | The benchmark tests the processor’s ability to recover an output data packet from an encoded input data packet in embedded IS-136 channel coding applications. 22 | 23 | # Score 24 | 25 | The TelemarkTM score reported for each device is a single-number figure of merit calculated by taking the geometric mean of the individual TeleBench scores and dividing by 785.138 . (This normalization factor is derived from the lowest score in this category on December 5, 2000.) Scores for each of the individual benchmarks within this suite allow designers to weight and aggregate the benchmarks to suit specific application requirements. 26 | 27 | To calculate a geometric mean, multiply all the results of the tests together and take the nth root of the product, where n equals the number of tests. 28 | 29 | # Notes 30 | 31 | This repository contains the TeleBench benchmark and its corresponding Test Harness for the Version 1.1 benchmarks produced by EEMBC between 1997 and 2004. This benchmark is released as-is, meaning EEMBC will follow issues but cannot guarantee support. Issues should be considered errata, and changes to the benchmark core algorithms are no longer considered compatible with version 1.1. 32 | 33 | -------------------------------------------------------------------------------- /doc/datasheet-telebench.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eembc/telebench/ae6fc3399e1d705b157f5926aa3c4cee5f53a52b/doc/datasheet-telebench.pdf -------------------------------------------------------------------------------- /doc/errata-telebench.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eembc/telebench/ae6fc3399e1d705b157f5926aa3c4cee5f53a52b/doc/errata-telebench.pdf -------------------------------------------------------------------------------- /doc/porting.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eembc/telebench/ae6fc3399e1d705b157f5926aa3c4cee5f53a52b/doc/porting.pdf -------------------------------------------------------------------------------- /doc/releasenotes.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eembc/telebench/ae6fc3399e1d705b157f5926aa3c4cee5f53a52b/doc/releasenotes.pdf -------------------------------------------------------------------------------- /forall: -------------------------------------------------------------------------------- 1 | # ============================================================================ 2 | # 3 | # Copyright (C) EEMBC(R) All Rights Reserved 4 | # 5 | # This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | # Please refer to the license file (LICENSE.md) included with this code. 7 | # 8 | # ============================================================================ 9 | 10 | called=$1 11 | if [ -z "$called" ]; then 12 | called="techtag.sh" 13 | fi 14 | # top level section 15 | if [ $called = "techtag.sh" ]; then 16 | cvs -Q checkout -PAd th eembc2/techtag/th 17 | cvs -Q checkout -PAd th_lite eembc2/techtag/th_lite 18 | cvs -Q checkout -PAd util eembc2/techtag/util 19 | fi 20 | 21 | applications="8_16-bit automotive consumer networking office telecom" 22 | 23 | for i in $applications; do 24 | cd $i;../$called $2;cd .. 25 | done 26 | 27 | -------------------------------------------------------------------------------- /forall.bat: -------------------------------------------------------------------------------- 1 | :: ============================================================================ 2 | :: 3 | :: Copyright (C) EEMBC(R) All Rights Reserved 4 | :: 5 | :: This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | :: Please refer to the license file (LICENSE.md) included with this code. 7 | :: 8 | :: ============================================================================ 9 | @if "%os%%" == "Windows_NT" setlocal 10 | @set VER= 11 | @set called=%1 12 | @if "%called%" == "" set called=techtag 13 | :: top level section 14 | @if NOT "%called%" == "techtag" goto skiptop 15 | @cvs -Q checkout -PAd th eembc2/techtag/th 16 | @cvs -Q checkout -PAd th_lite eembc2/techtag/th_lite 17 | @cvs -Q checkout -PAd util eembc2/techtag/util 18 | :skiptop 19 | @if "%os%%" == "Windows_NT" goto for_nt 20 | @for %%i in (8_16-bit automotive consumer networking office telecom) do call me %called% %2 %%i 21 | @goto end 22 | :for_nt 23 | @for %%i in (8_16-bit automotive consumer networking office telecom) do pushd %%i&&call ..\%called% %2&&popd 24 | :end 25 | -------------------------------------------------------------------------------- /makeall: -------------------------------------------------------------------------------- 1 | # ============================================================================ 2 | # 3 | # Copyright (C) EEMBC(R) All Rights Reserved 4 | # 5 | # This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | # Please refer to the license file (LICENSE.md) included with this code. 7 | # 8 | # ============================================================================ 9 | ../makereg $1 10 | ../makelite $1 11 | -------------------------------------------------------------------------------- /makeall.bat: -------------------------------------------------------------------------------- 1 | :: ============================================================================ 2 | :: 3 | :: Copyright (C) EEMBC(R) All Rights Reserved 4 | :: 5 | :: This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | :: Please refer to the license file (LICENSE.md) included with this code. 7 | :: 8 | :: ============================================================================ 9 | @echo off 10 | @if NOT EXIST makefile goto end 11 | @call ..\makereg %1 12 | @call ..\makelite %1 13 | :end 14 | -------------------------------------------------------------------------------- /makefile: -------------------------------------------------------------------------------- 1 | # ============================================================================ 2 | # 3 | # Copyright (C) EEMBC(R) All Rights Reserved 4 | # 5 | # This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | # Please refer to the license file (LICENSE.md) included with this code. 7 | # 8 | # ============================================================================ 9 | 10 | 11 | # Override to v2 from command line (make VER=v2) 12 | VER= 13 | 14 | # Automatic Override from toolchain.mak 15 | PLATFORM=x86 16 | TLOGTYP="_time" 17 | SLOGTYP="_size" 18 | THLITE="_lite" 19 | ROOT=.. 20 | TCDIR=util/make 21 | 22 | tchain= `ls $(TCDIR)/*.mak | sed -e 's/[^\/]*.[^\/]*.\([^\.]*\).*/\1/'` 23 | 24 | app=8_16-bit automotive consumer networking office telecom voip 25 | 26 | all: all-regular all-lite 27 | 28 | 29 | .PHONY:all-regular 30 | all-regular: 31 | @for j in $(tchain); do \ 32 | for i in $(app); do \ 33 | if [ -f "$$i/dirs$(VER)$(PLATFORM).mak" ]; then \ 34 | cd $$i;\ 35 | make TCDIR=$(ROOT)/$(TCDIR) VER=$(VER) TOOLCHAIN=$$j LITE= ;\ 36 | if [ ! -f "$(ROOT)/$$j$(TLOGTYP)$(VER).log" ]; then \ 37 | cat $(ROOT)/util/awk/titletime.txt >$(ROOT)/$$j$(TLOGTYP)$(VER).log;\ 38 | fi; \ 39 | cat $$j$(TLOGTYP)$(VER).log >>"$(ROOT)/$$j$(TLOGTYP)$(VER).log";\ 40 | if [ ! -f "$(ROOT)/$$j$(SLOGTYP)$(VER).log" ]; then \ 41 | cat $(ROOT)/util/awk/titlesize.txt >$(ROOT)/$$j$(SLOGTYP)$(VER).log;\ 42 | fi; \ 43 | cat $$j$(SLOGTYP)$(VER).log >>"$(ROOT)/$$j$(SLOGTYP)$(VER).log";\ 44 | cd ..; \ 45 | fi; \ 46 | done; \ 47 | done 48 | 49 | .PHONY:all-lite 50 | all-lite: 51 | @for j in $(tchain); do \ 52 | for i in $(app); do \ 53 | if [ -f "$$i/dirs$(VER)$(PLATFORM).mak" ]; then \ 54 | cd $$i;\ 55 | make TCDIR=$(ROOT)/$(TCDIR) VER=$(VER) TOOLCHAIN=$$j LITE=$(THLITE) ;\ 56 | if [ ! -f "$(ROOT)/$$j$(TLOGTYP)$(VER)$(THLITE).log" ]; then \ 57 | cat $(ROOT)/util/awk/titletime.txt >$(ROOT)/$$j$(TLOGTYP)$(VER)$(THLITE).log;\ 58 | fi; \ 59 | cat $$j$(TLOGTYP)$(VER)$(THLITE).log >>$(ROOT)/$$j$(TLOGTYP)$(VER)$(THLITE).log;\ 60 | if [ ! -f "$(ROOT)/$$j$(SLOGTYP)$(VER)$(THLITE).log" ]; then \ 61 | cat $(ROOT)/util/awk/titletime.txt >$(ROOT)/$$j$(SLOGTYP)$(VER)$(THLITE).log;\ 62 | fi; \ 63 | cat $$j$(SLOGTYP)$(VER)$(THLITE).log >>$(ROOT)/$$j$(SLOGTYP)$(VER)$(THLITE).log;\ 64 | cd ..; \ 65 | fi; \ 66 | done; \ 67 | done 68 | 69 | clean: 70 | @for j in $(tchain); do \ 71 | for i in $(app); do \ 72 | if [ -f "$$i/dirs$(VER)$(PLATFORM).mak" ]; then \ 73 | cd $$i;\ 74 | make TCDIR=$(ROOT)/$(TCDIR) VER=$(VER) TOOLCHAIN=$$j LITE=$(THLITE) clean;\ 75 | make TCDIR=$(ROOT)/$(TCDIR) VER=$(VER) TOOLCHAIN=$$j LITE= clean;\ 76 | cd ..; \ 77 | fi; \ 78 | done; \ 79 | done 80 | 81 | distclean: 82 | @for j in $(tchain); do \ 83 | for i in $(app); do \ 84 | if [ -f "$$i/dirs$(VER)$(PLATFORM).mak" ]; then \ 85 | cd $$i;\ 86 | make TCDIR=$(ROOT)/$(TCDIR) VER=$(VER) TOOLCHAIN=$$j LITE=$(THLITE) distclean;\ 87 | make TCDIR=$(ROOT)/$(TCDIR) VER=$(VER) TOOLCHAIN=$$j LITE= distclean;\ 88 | cd ..; \ 89 | fi; \ 90 | done; \ 91 | done 92 | 93 | rerun: 94 | @for j in $(tchain); do \ 95 | for i in $(app); do \ 96 | if [ -f "$$i/dirs$(VER)$(PLATFORM).mak" ]; then \ 97 | cd $$i;\ 98 | make TCDIR=$(ROOT)/$(TCDIR) VER=$(VER) TOOLCHAIN=$$j LITE=$(THLITE) rerun;\ 99 | make TCDIR=$(ROOT)/$(TCDIR) VER=$(VER) TOOLCHAIN=$$j LITE= rerun;\ 100 | cd ..; \ 101 | fi; \ 102 | done; \ 103 | done 104 | 105 | harness: 106 | @for j in $(tchain); do \ 107 | for i in $(app); do \ 108 | if [ -f "$$i/dirs$(VER)$(PLATFORM).mak" ]; then \ 109 | cd $$i;\ 110 | make TCDIR=$(ROOT)/$(TCDIR) VER=$(VER) TOOLCHAIN=$$j LITE=$(THLITE) harness;\ 111 | make TCDIR=$(ROOT)/$(TCDIR) VER=$(VER) TOOLCHAIN=$$j LITE= harness;\ 112 | cd ..; \ 113 | fi; \ 114 | done; \ 115 | done 116 | 117 | -------------------------------------------------------------------------------- /makelite: -------------------------------------------------------------------------------- 1 | # ============================================================================ 2 | # 3 | # Copyright (C) EEMBC(R) All Rights Reserved 4 | # 5 | # This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | # Please refer to the license file (LICENSE.md) included with this code. 7 | # 8 | # ============================================================================ 9 | make VER=$VER TOOLCHAIN=gcc LITE=_lite $1 10 | if [ ! -e ../gcc_time${VER}_lite.log ]; then 11 | cat ../util/awk/titletime.txt >../gcc_time${VER}_lite.log 12 | fi 13 | if [ -e gcc_time${VER}_lite.log ]; then 14 | cat gcc_time${VER}_lite.log >>../gcc_time${VER}_lite.log 15 | fi 16 | 17 | -------------------------------------------------------------------------------- /makelite.bat: -------------------------------------------------------------------------------- 1 | :: ============================================================================ 2 | :: 3 | :: Copyright (C) EEMBC(R) All Rights Reserved 4 | :: 5 | :: This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | :: Please refer to the license file (LICENSE.md) included with this code. 7 | :: 8 | :: ============================================================================ 9 | @echo off 10 | :: GCC 11 | @make VER=%VER% TOOLCHAIN=gcc LITE=_lite %1 12 | @if NOT EXIST ..\gcc_time%VER%_lite.log type ..\util\awk\titletime.txt >..\gcc_time%VER%_lite.log 13 | @if EXIST gcc_time%VER%_lite.log type gcc_time%VER%_lite.log >>..\gcc_time%VER%_lite.log 14 | :: Visual C++ 15 | :: See if user has removed visual C 16 | @if NOT EXIST ..\util\make\vc.mak goto end 17 | :: PORTING: Set up Visual C variables in your environment 18 | @if "%MSVCDir%" == "" call ..\util\make\vcvars32 19 | @if "%MSVCDir%" == "" goto vcerror 20 | :: For each TOOLCHAIN 21 | @make VER=%VER% TOOLCHAIN=vc LITE=_lite %1 22 | @if NOT EXIST ..\vc_time%VER%_lite.log type ..\util\awk\titletime.txt >..\vc_time%VER%_lite.log 23 | @if EXIST vc_time%VER%_lite.log type vc_time%VER%_lite.log >>..\vc_time%VER%_lite.log 24 | @goto end 25 | :vcerror 26 | @echo "***ERROR: VC++ NOT FOUND: edit util/make/vcvars32.bat 27 | :end 28 | -------------------------------------------------------------------------------- /makereg: -------------------------------------------------------------------------------- 1 | # ============================================================================ 2 | # 3 | # Copyright (C) EEMBC(R) All Rights Reserved 4 | # 5 | # This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | # Please refer to the license file (LICENSE.md) included with this code. 7 | # 8 | # ============================================================================ 9 | make VER=$VER TOOLCHAIN=gcc LITE= $1 10 | if [ ! -e ../gcc_time${VER}.log ]; then 11 | cat ../util/awk/titletime.txt >../gcc_time${VER}.log 12 | fi 13 | if [ -e gcc_time${VER}.log ]; then 14 | cat gcc_time${VER}.log >>../gcc_time${VER}.log 15 | fi 16 | 17 | -------------------------------------------------------------------------------- /makereg.bat: -------------------------------------------------------------------------------- 1 | :: ============================================================================ 2 | :: 3 | :: Copyright (C) EEMBC(R) All Rights Reserved 4 | :: 5 | :: This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | :: Please refer to the license file (LICENSE.md) included with this code. 7 | :: 8 | :: ============================================================================ 9 | @echo off 10 | :: GCC 11 | @make VER=%VER% TOOLCHAIN=gcc LITE= %1 12 | @if NOT EXIST ..\gcc_time%VER%.log type ..\util\awk\titletime.txt >..\gcc_time%VER%.log 13 | @if EXIST gcc_time%VER%.log type gcc_time%VER%.log >>..\gcc_time%VER%.log 14 | :: Visual C++ 15 | :: See if user has removed visual C 16 | @if NOT EXIST ..\util\make\vc.mak goto end 17 | :: PORTING: Set up Visual C variables in your environment 18 | @if "%MSVCDir%" == "" call ..\util\make\vcvars32 19 | @if "%MSVCDir%" == "" goto vcerror 20 | @make VER=%VER% TOOLCHAIN=vc LITE= %1 21 | @if NOT EXIST ..\vc_time%VER%.log type ..\util\awk\titletime.txt >..\vc_time%VER%.log 22 | @if EXIST vc_time%VER%.log type vc_time%VER%.log >>..\vc_time%VER%.log 23 | @goto end 24 | :vcerror 25 | @echo "***ERROR: VC++ NOT FOUND: edit util/make/vcvars32.bat 26 | :end 27 | -------------------------------------------------------------------------------- /me.bat: -------------------------------------------------------------------------------- 1 | :: DESC : Stub for Windows 98/ME 2 | :: 3 | :: CVS : $Revision: 1.3 $ 4 | :: $Date: 2002/07/27 00:20:41 $ 5 | :: $Author: rick $ 6 | :: $Log: me.bat,v $ 7 | :: Revision 1.3 2002/07/27 00:20:41 rick 8 | :: Fix 95/ME calls 9 | :: 10 | :: Revision 1.2 2002/04/09 20:20:43 rick 11 | :: Support 98/ME in checkout.bat 12 | :: 13 | :: 14 | @echo off 15 | @set medir=%3 16 | @set meparm=%2 17 | @if NOT "%3" == "" goto skipslide 18 | @set medir=%2 19 | @set meparm= 20 | :skipslide 21 | @cd %medir% 22 | @call ..\%1 %meparm% 23 | @cd .. 24 | 25 | 26 | -------------------------------------------------------------------------------- /telecom/autcor00/algo.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | #ifndef ALGO_H 11 | #define ALGO_H 12 | 13 | /******************************************************************************* 14 | Includes 15 | *******************************************************************************/ 16 | #include "thlib.h" 17 | 18 | /******************************************************************************* 19 | Defines 20 | *******************************************************************************/ 21 | 22 | /* Compile time Data set select for uuencode: 23 | * DATA_1 through DATA_3 24 | * DATA_3 is default 25 | */ 26 | #if (!defined(DATA_1) && !defined(DATA_2) && !defined(DATA_3)) 27 | #define DATA_3 28 | #endif 29 | 30 | /* OUTPUT_SCALE is used to accomodate data size limit of 16 bits */ 31 | #define OUTPUT_SCALE 16 32 | 33 | /******************************************************************************* 34 | Global Variables 35 | *******************************************************************************/ 36 | #ifndef ALGO_GLOBALS /* Don't define these twice! */ 37 | #define ALGO_GLOBALS 38 | #endif /* ALGO_GLOBALS */ 39 | 40 | /******************************************************************************* 41 | Function Prototypes 42 | *******************************************************************************/ 43 | 44 | void fxpAutoCorrelation ( 45 | e_s16 *InputData, /* input data */ 46 | e_s16 *AutoCorrData, /* output data */ 47 | e_s16 DataSize, /* size of input data */ 48 | e_s16 NumberOfLags, /* size of output data */ 49 | e_s16 Scale /* partial product scale (bits) */ 50 | ); 51 | 52 | #endif /* __ALGO_H */ 53 | -------------------------------------------------------------------------------- /telecom/autcor00/autcor00.c: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | /******************************************************************************* 11 | Includes 12 | *******************************************************************************/ 13 | #include "algo.h" 14 | 15 | /******************************************************************************* 16 | Functions 17 | *******************************************************************************/ 18 | /*------------------------------------------------------------------------------ 19 | * FUNC : fxpAutoCorrelation 20 | * 21 | * DESC : 22 | * 23 | * Compute the autocorrelation of the InputData (size = DataSize), 24 | * store the results in AutoCorrData (size = NumberOfLags). 25 | * For this application NumberOfLags is small (<64) so a direct 26 | * sum-of-products implementation is used to compute the output. 27 | * Partial products are scaled by Scale bits. 28 | * 29 | * 30 | * RETURNS : 31 | * true/false 32 | * ---------------------------------------------------------------------------*/ 33 | 34 | void 35 | fxpAutoCorrelation ( 36 | e_s16 *InputData, /* input data */ 37 | e_s16 *AutoCorrData, /* output data */ 38 | e_s16 DataSize, /* size of input data */ 39 | e_s16 NumberOfLags, /* size of output data */ 40 | e_s16 Scale /* partial product scale (bits) */ 41 | ) 42 | { 43 | n_int i; 44 | n_int lag; 45 | n_int LastIndex; 46 | e_s32 Accumulator; 47 | 48 | /* Compute AutoCorrelation */ 49 | for (lag = 0; lag < NumberOfLags; lag++) { 50 | Accumulator = 0; 51 | LastIndex = DataSize - lag; 52 | for (i = 0; i < LastIndex; i++) { 53 | Accumulator += ((e_s32) InputData[i] * (e_s32) InputData[i+lag]) >> Scale; 54 | } 55 | 56 | /* Extract MSW of 1.31 fixed point accumulator */ 57 | AutoCorrData[lag] = (e_s16) (Accumulator >> 16) ; 58 | } 59 | } 60 | 61 | -------------------------------------------------------------------------------- /telecom/autcor00/datasets/vpulsea.dat: -------------------------------------------------------------------------------- 1 | 0.500000 2 | 0.437500 3 | 0.375000 4 | 0.312500 5 | 0.250000 6 | 0.187500 7 | 0.125000 8 | 0.062500 9 | -------------------------------------------------------------------------------- /telecom/autcor00/datasets/vpulseai.dat: -------------------------------------------------------------------------------- 1 | 0.500000 , 2 | 0.437500 , 3 | 0.375000 , 4 | 0.312500 , 5 | 0.250000 , 6 | 0.187500 , 7 | 0.125000 , 8 | 0.062500, 9 | -------------------------------------------------------------------------------- /telecom/autcor00/datasets/vsinea.dat: -------------------------------------------------------------------------------- 1 | 0.499994 2 | 0.490386 3 | 0.461972 4 | 0.415875 5 | 0.353903 6 | 0.278466 7 | 0.192486 8 | 0.099285 9 | 0.002455 10 | -0.094279 11 | -0.187202 12 | -0.272756 13 | -0.347670 14 | -0.409088 15 | -0.454680 16 | -0.482723 -------------------------------------------------------------------------------- /telecom/autcor00/datasets/vsineai.dat: -------------------------------------------------------------------------------- 1 | 0.499994 , 2 | 0.490386 , 3 | 0.461972 , 4 | 0.415875 , 5 | 0.353903 , 6 | 0.278466 , 7 | 0.192486 , 8 | 0.099285 , 9 | 0.002455 , 10 | -0.094279 , 11 | -0.187202 , 12 | -0.272756 , 13 | -0.347670 , 14 | -0.409088 , 15 | -0.454680 , 16 | -0.482723, 17 | -------------------------------------------------------------------------------- /telecom/autcor00/datasets/vspeecha.dat: -------------------------------------------------------------------------------- 1 | 0.107100 2 | 0.104475 3 | 0.103019 4 | 0.103118 5 | 0.101069 6 | 0.100143 7 | 0.098557 8 | 0.096588 9 | 0.094885 10 | 0.092132 11 | 0.090515 12 | 0.087626 13 | 0.085008 14 | 0.084536 15 | 0.080738 16 | 0.077114 17 | 0.075760 18 | 0.072664 19 | 0.070298 20 | 0.068210 21 | 0.065608 22 | 0.063667 23 | 0.060929 24 | 0.058988 25 | 0.056420 26 | 0.053306 27 | 0.052673 28 | 0.049813 29 | 0.045877 30 | 0.044607 31 | 0.042108 32 | 0.039425 -------------------------------------------------------------------------------- /telecom/autcor00/datasets/vspeechai.dat: -------------------------------------------------------------------------------- 1 | 0.107100 , 2 | 0.104475 , 3 | 0.103019 , 4 | 0.103118 , 5 | 0.101069 , 6 | 0.100143 , 7 | 0.098557 , 8 | 0.096588 , 9 | 0.094885 , 10 | 0.092132 , 11 | 0.090515 , 12 | 0.087626 , 13 | 0.085008 , 14 | 0.084536 , 15 | 0.080738 , 16 | 0.077114 , 17 | 0.075760 , 18 | 0.072664 , 19 | 0.070298 , 20 | 0.068210 , 21 | 0.065608 , 22 | 0.063667 , 23 | 0.060929 , 24 | 0.058988 , 25 | 0.056420 , 26 | 0.053306 , 27 | 0.052673 , 28 | 0.049813 , 29 | 0.045877 , 30 | 0.044607 , 31 | 0.042108 , 32 | 0.039425, 33 | -------------------------------------------------------------------------------- /telecom/autcor00/datasets/xpulsei.dat: -------------------------------------------------------------------------------- 1 | 16384, 2 | 16384, 3 | 16384, 4 | 16384, 5 | 16384, 6 | 16384, 7 | 16384, 8 | 16384, 9 | 0, 10 | 0, 11 | 0, 12 | 0, 13 | 0, 14 | 0, 15 | 0, 16 | 0 17 | -------------------------------------------------------------------------------- /telecom/autcor00/datasets/xpulset.dat: -------------------------------------------------------------------------------- 1 | 16384 2 | 16384 3 | 16384 4 | 16384 5 | 16384 6 | 16384 7 | 16384 8 | 16384 9 | 0 10 | 0 11 | 0 12 | 0 13 | 0 14 | 0 15 | 0 16 | 0 -------------------------------------------------------------------------------- /telecom/conven00/algo.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | #ifndef ALGO_H 11 | #define ALGO_H 12 | 13 | /******************************************************************************* 14 | Includes 15 | *******************************************************************************/ 16 | #include "thlib.h" 17 | 18 | /******************************************************************************* 19 | Defines 20 | *******************************************************************************/ 21 | #define MAX_CODE_VECTORS 2 22 | #define MAX_CONSTRAINT_LENGTH 8 23 | 24 | /* Compile time Data set select for uuencode: 25 | * DATA_1 through DATA_3 26 | * DATA_3 is default 27 | */ 28 | #if (!defined(DATA_1) && !defined(DATA_2) && !defined(DATA_3)) 29 | #define DATA_3 30 | #endif 31 | 32 | 33 | /******************************************************************************* 34 | Global Variables 35 | *******************************************************************************/ 36 | 37 | /******************************************************************************* 38 | Function Prototypes 39 | *******************************************************************************/ 40 | void 41 | convolutionalEncode ( 42 | e_u8 *DataBits, /* Input data 1 bit per byte */ 43 | e_s16 DataByteSize, /* Data size in bytes */ 44 | e_s16 NumberCodeVectors, /* Number of code vectors (n) */ 45 | e_s16 ConstraintLength, /* Constraint Length (K) */ 46 | e_u8 (*CodeMatrix)[MAX_CODE_VECTORS], /* Matrix of code vectors (column-wise) */ 47 | e_u8 *BranchWords /* Output data 1 bit per byte */ 48 | ); 49 | 50 | #endif 51 | 52 | -------------------------------------------------------------------------------- /telecom/conven00/conven00.c: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | /******************************************************************************* 11 | Includes 12 | *******************************************************************************/ 13 | #include "algo.h" 14 | 15 | /******************************************************************************* 16 | Functions 17 | *******************************************************************************/ 18 | /*------------------------------------------------------------------------------ 19 | * FUNC : convolutionalEncode 20 | * 21 | * DESC : 22 | * Compute the sequence of BranchWords associated with the input DataBits 23 | * based on a 1/2 rate convolutional code specified by the NumberCodeVectors, 24 | * ConstraintLength and the CodeMatrix. 25 | * DataByteSize is provided to allow input/output data packing of multiple 26 | * bits per byte, the default is one bit per byte. 27 | * The CodeMatrix specifies the respective convolutional code by enumerating 28 | * NumberCodeVectors (default = 2) of size ConstraintLength in a column-wise 29 | * arrangment. 30 | * 31 | * RETURNS : Void 32 | * ---------------------------------------------------------------------------*/ 33 | void 34 | convolutionalEncode ( 35 | e_u8 *DataBits, /* Input data 1 bit per byte */ 36 | e_s16 DataByteSize, /* Data size in bytes */ 37 | e_s16 NumberCodeVectors, /* Number of code vectors (n) */ 38 | e_s16 ConstraintLength, /* Constraint Length (K) */ 39 | e_u8 (*CodeMatrix)[MAX_CODE_VECTORS], /* Matrix of code vectors (column-wise) */ 40 | e_u8 *BranchWords /* Output data 1 bit per byte */ 41 | ) 42 | { 43 | e_s16 SRIndex; 44 | e_s16 BWIndex; 45 | e_s16 DIndex; 46 | e_s16 CVIndex; 47 | e_u8 ShiftRegister[MAX_CONSTRAINT_LENGTH]; 48 | 49 | /* Initializations */ 50 | for (SRIndex = 0; SRIndex < ConstraintLength; SRIndex++) { 51 | ShiftRegister[SRIndex] = 0; 52 | } 53 | 54 | BWIndex = 0; 55 | 56 | /* Convolutional encoder loop */ 57 | for (DIndex = 0; DIndex < DataByteSize; DIndex++) { 58 | 59 | /* Update the shift register */ 60 | for (SRIndex = ConstraintLength-1; SRIndex > 0; SRIndex--) { 61 | ShiftRegister[SRIndex] = ShiftRegister[SRIndex-1]; 62 | } 63 | 64 | /* Enter data into the shift register */ 65 | ShiftRegister[0] = DataBits[DIndex]; 66 | 67 | /* Compute each branchword value */ 68 | for (CVIndex = 0; CVIndex < NumberCodeVectors; CVIndex++) { 69 | BranchWords[BWIndex] = 0; 70 | 71 | for (SRIndex = 0; SRIndex < ConstraintLength; SRIndex++) { 72 | if ( CodeMatrix[SRIndex][CVIndex] ) { 73 | BranchWords[BWIndex] ^= ShiftRegister[SRIndex]; 74 | } 75 | } /* end SRIndex for */ 76 | 77 | BWIndex++; 78 | } /* end CVIndex for */ 79 | } /* end DIndex for */ 80 | } 81 | -------------------------------------------------------------------------------- /telecom/conven00/datasets/xk3r2di.dat: -------------------------------------------------------------------------------- 1 | 0, 2 | 1, 3 | 0, 4 | 0, 5 | 1, 6 | 1, 7 | 0, 8 | 0, 9 | 0, 10 | 1, 11 | 1, 12 | 1, 13 | 0, 14 | 0, 15 | 0, 16 | 0, 17 | 1, 18 | 1, 19 | 1, 20 | 1, 21 | 0, 22 | 0, 23 | 0, 24 | 0, 25 | 0, 26 | 1, 27 | 1, 28 | 1, 29 | 1, 30 | 1, 31 | 0, 32 | 1, 33 | 0, 34 | 1, 35 | 0, 36 | 0, 37 | 1, 38 | 1, 39 | 0, 40 | 0, 41 | 0, 42 | 1, 43 | 1, 44 | 1, 45 | 0, 46 | 0, 47 | 0, 48 | 0, 49 | 1, 50 | 1, 51 | 1, 52 | 1, 53 | 0, 54 | 0, 55 | 0, 56 | 0, 57 | 0, 58 | 1, 59 | 1, 60 | 1, 61 | 1, 62 | 1, 63 | 0, 64 | 1, 65 | 0, 66 | 1, 67 | 0, 68 | 0, 69 | 1, 70 | 1, 71 | 0, 72 | 0, 73 | 0, 74 | 1, 75 | 1, 76 | 1, 77 | 0, 78 | 0, 79 | 0, 80 | 0, 81 | 1, 82 | 1, 83 | 1, 84 | 1, 85 | 0, 86 | 0, 87 | 0, 88 | 0, 89 | 0, 90 | 1, 91 | 1, 92 | 1, 93 | 1, 94 | 1, 95 | 0, 96 | 1, 97 | 0, 98 | 1, 99 | 0, 100 | 0, 101 | 1, 102 | 1, 103 | 0, 104 | 0, 105 | 0, 106 | 1, 107 | 1, 108 | 1, 109 | 0, 110 | 0, 111 | 0, 112 | 0, 113 | 1, 114 | 1, 115 | 1, 116 | 1, 117 | 0, 118 | 0, 119 | 0, 120 | 0, 121 | 0, 122 | 1, 123 | 1, 124 | 1, 125 | 1, 126 | 1, 127 | 0, 128 | 1, 129 | 0, 130 | 1, 131 | 0, 132 | 0, 133 | 1, 134 | 1, 135 | 0, 136 | 0, 137 | 0, 138 | 1, 139 | 1, 140 | 1, 141 | 0, 142 | 0, 143 | 0, 144 | 0, 145 | 1, 146 | 1, 147 | 1, 148 | 1, 149 | 0, 150 | 0, 151 | 0, 152 | 0, 153 | 0, 154 | 1, 155 | 1, 156 | 1, 157 | 1, 158 | 1, 159 | 0, 160 | 1, 161 | 0, 162 | 1, 163 | 0, 164 | 0, 165 | 1, 166 | 1, 167 | 0, 168 | 0, 169 | 0, 170 | 1, 171 | 1, 172 | 1, 173 | 0, 174 | 0, 175 | 0, 176 | 0, 177 | 1, 178 | 1, 179 | 1, 180 | 1, 181 | 0, 182 | 0, 183 | 0, 184 | 0, 185 | 0, 186 | 1, 187 | 1, 188 | 1, 189 | 1, 190 | 1, 191 | 0, 192 | 1, 193 | 0, 194 | 1, 195 | 0, 196 | 0, 197 | 1, 198 | 1, 199 | 0, 200 | 0, 201 | 0, 202 | 1, 203 | 1, 204 | 1, 205 | 0, 206 | 0, 207 | 0, 208 | 0, 209 | 1, 210 | 1, 211 | 1, 212 | 1, 213 | 0, 214 | 0, 215 | 0, 216 | 0, 217 | 0, 218 | 1, 219 | 1, 220 | 1, 221 | 1, 222 | 1, 223 | 0, 224 | 1, 225 | 0, 226 | 1, 227 | 0, 228 | 0, 229 | 1, 230 | 1, 231 | 0, 232 | 0, 233 | 0, 234 | 1, 235 | 1, 236 | 1, 237 | 0, 238 | 0, 239 | 0, 240 | 0, 241 | 1, 242 | 1, 243 | 1, 244 | 1, 245 | 0, 246 | 0, 247 | 0, 248 | 0, 249 | 0, 250 | 1, 251 | 1, 252 | 1, 253 | 1, 254 | 1, 255 | 0, 256 | 1, 257 | 0, 258 | 1, 259 | 0, 260 | 0, 261 | 1, 262 | 1, 263 | 0, 264 | 0, 265 | 0, 266 | 1, 267 | 1, 268 | 1, 269 | 0, 270 | 0, 271 | 0, 272 | 0, 273 | 1, 274 | 1, 275 | 1, 276 | 1, 277 | 0, 278 | 0, 279 | 0, 280 | 0, 281 | 0, 282 | 1, 283 | 1, 284 | 1, 285 | 1, 286 | 1, 287 | 0, 288 | 1, 289 | 0, 290 | 1, 291 | 0, 292 | 0, 293 | 1, 294 | 1, 295 | 0, 296 | 0, 297 | 0, 298 | 1, 299 | 1, 300 | 1, 301 | 0, 302 | 0, 303 | 0, 304 | 0, 305 | 1, 306 | 1, 307 | 1, 308 | 1, 309 | 0, 310 | 0, 311 | 0, 312 | 0, 313 | 0, 314 | 1, 315 | 1, 316 | 1, 317 | 1, 318 | 1, 319 | 0, 320 | 1, 321 | 0, 322 | 1, 323 | 0, 324 | 0, 325 | 1, 326 | 1, 327 | 0, 328 | 0, 329 | 0, 330 | 1, 331 | 1, 332 | 1, 333 | 0, 334 | 0, 335 | 0, 336 | 0, 337 | 1, 338 | 1, 339 | 1, 340 | 1, 341 | 0, 342 | 0, 343 | 0, 344 | 0, 345 | 0, 346 | 1, 347 | 1, 348 | 1, 349 | 1, 350 | 1, 351 | 0, 352 | 1, 353 | 0, 354 | 1, 355 | 0, 356 | 0, 357 | 1, 358 | 1, 359 | 0, 360 | 0, 361 | 0, 362 | 1, 363 | 1, 364 | 1, 365 | 0, 366 | 0, 367 | 0, 368 | 0, 369 | 1, 370 | 1, 371 | 1, 372 | 1, 373 | 0, 374 | 0, 375 | 0, 376 | 0, 377 | 0, 378 | 1, 379 | 1, 380 | 1, 381 | 1, 382 | 1, 383 | 0, 384 | 1, 385 | 0, 386 | 1, 387 | 0, 388 | 0, 389 | 1, 390 | 1, 391 | 0, 392 | 0, 393 | 0, 394 | 1, 395 | 1, 396 | 1, 397 | 0, 398 | 0, 399 | 0, 400 | 0, 401 | 1, 402 | 1, 403 | 1, 404 | 1, 405 | 0, 406 | 0, 407 | 0, 408 | 0, 409 | 0, 410 | 1, 411 | 1, 412 | 1, 413 | 1, 414 | 1, 415 | 0, 416 | 1, 417 | 0, 418 | 1, 419 | 0, 420 | 0, 421 | 1, 422 | 1, 423 | 0, 424 | 0, 425 | 0, 426 | 1, 427 | 1, 428 | 1, 429 | 0, 430 | 0, 431 | 0, 432 | 0, 433 | 1, 434 | 1, 435 | 1, 436 | 1, 437 | 0, 438 | 0, 439 | 0, 440 | 0, 441 | 0, 442 | 1, 443 | 1, 444 | 1, 445 | 1, 446 | 1, 447 | 0, 448 | 1, 449 | 0, 450 | 1, 451 | 0, 452 | 0, 453 | 1, 454 | 1, 455 | 0, 456 | 0, 457 | 0, 458 | 1, 459 | 1, 460 | 1, 461 | 0, 462 | 0, 463 | 0, 464 | 0, 465 | 1, 466 | 1, 467 | 1, 468 | 1, 469 | 0, 470 | 0, 471 | 0, 472 | 0, 473 | 0, 474 | 1, 475 | 1, 476 | 1, 477 | 1, 478 | 1, 479 | 0, 480 | 1, 481 | 0, 482 | 1, 483 | 0, 484 | 0, 485 | 1, 486 | 1, 487 | 0, 488 | 0, 489 | 0, 490 | 1, 491 | 1, 492 | 1, 493 | 0, 494 | 0, 495 | 0, 496 | 0, 497 | 1, 498 | 1, 499 | 1, 500 | 1, 501 | 0, 502 | 0, 503 | 0, 504 | 0, 505 | 0, 506 | 1, 507 | 1, 508 | 1, 509 | 1, 510 | 1, 511 | 0, 512 | 1 513 | -------------------------------------------------------------------------------- /telecom/conven00/datasets/xk3r2dt.dat: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 0 4 | 0 5 | 1 6 | 1 7 | 0 8 | 0 9 | 0 10 | 1 11 | 1 12 | 1 13 | 0 14 | 0 15 | 0 16 | 0 17 | 1 18 | 1 19 | 1 20 | 1 21 | 0 22 | 0 23 | 0 24 | 0 25 | 0 26 | 1 27 | 1 28 | 1 29 | 1 30 | 1 31 | 0 32 | 1 33 | 0 34 | 1 35 | 0 36 | 0 37 | 1 38 | 1 39 | 0 40 | 0 41 | 0 42 | 1 43 | 1 44 | 1 45 | 0 46 | 0 47 | 0 48 | 0 49 | 1 50 | 1 51 | 1 52 | 1 53 | 0 54 | 0 55 | 0 56 | 0 57 | 0 58 | 1 59 | 1 60 | 1 61 | 1 62 | 1 63 | 0 64 | 1 65 | 0 66 | 1 67 | 0 68 | 0 69 | 1 70 | 1 71 | 0 72 | 0 73 | 0 74 | 1 75 | 1 76 | 1 77 | 0 78 | 0 79 | 0 80 | 0 81 | 1 82 | 1 83 | 1 84 | 1 85 | 0 86 | 0 87 | 0 88 | 0 89 | 0 90 | 1 91 | 1 92 | 1 93 | 1 94 | 1 95 | 0 96 | 1 97 | 0 98 | 1 99 | 0 100 | 0 101 | 1 102 | 1 103 | 0 104 | 0 105 | 0 106 | 1 107 | 1 108 | 1 109 | 0 110 | 0 111 | 0 112 | 0 113 | 1 114 | 1 115 | 1 116 | 1 117 | 0 118 | 0 119 | 0 120 | 0 121 | 0 122 | 1 123 | 1 124 | 1 125 | 1 126 | 1 127 | 0 128 | 1 129 | 0 130 | 1 131 | 0 132 | 0 133 | 1 134 | 1 135 | 0 136 | 0 137 | 0 138 | 1 139 | 1 140 | 1 141 | 0 142 | 0 143 | 0 144 | 0 145 | 1 146 | 1 147 | 1 148 | 1 149 | 0 150 | 0 151 | 0 152 | 0 153 | 0 154 | 1 155 | 1 156 | 1 157 | 1 158 | 1 159 | 0 160 | 1 161 | 0 162 | 1 163 | 0 164 | 0 165 | 1 166 | 1 167 | 0 168 | 0 169 | 0 170 | 1 171 | 1 172 | 1 173 | 0 174 | 0 175 | 0 176 | 0 177 | 1 178 | 1 179 | 1 180 | 1 181 | 0 182 | 0 183 | 0 184 | 0 185 | 0 186 | 1 187 | 1 188 | 1 189 | 1 190 | 1 191 | 0 192 | 1 193 | 0 194 | 1 195 | 0 196 | 0 197 | 1 198 | 1 199 | 0 200 | 0 201 | 0 202 | 1 203 | 1 204 | 1 205 | 0 206 | 0 207 | 0 208 | 0 209 | 1 210 | 1 211 | 1 212 | 1 213 | 0 214 | 0 215 | 0 216 | 0 217 | 0 218 | 1 219 | 1 220 | 1 221 | 1 222 | 1 223 | 0 224 | 1 225 | 0 226 | 1 227 | 0 228 | 0 229 | 1 230 | 1 231 | 0 232 | 0 233 | 0 234 | 1 235 | 1 236 | 1 237 | 0 238 | 0 239 | 0 240 | 0 241 | 1 242 | 1 243 | 1 244 | 1 245 | 0 246 | 0 247 | 0 248 | 0 249 | 0 250 | 1 251 | 1 252 | 1 253 | 1 254 | 1 255 | 0 256 | 1 257 | 0 258 | 1 259 | 0 260 | 0 261 | 1 262 | 1 263 | 0 264 | 0 265 | 0 266 | 1 267 | 1 268 | 1 269 | 0 270 | 0 271 | 0 272 | 0 273 | 1 274 | 1 275 | 1 276 | 1 277 | 0 278 | 0 279 | 0 280 | 0 281 | 0 282 | 1 283 | 1 284 | 1 285 | 1 286 | 1 287 | 0 288 | 1 289 | 0 290 | 1 291 | 0 292 | 0 293 | 1 294 | 1 295 | 0 296 | 0 297 | 0 298 | 1 299 | 1 300 | 1 301 | 0 302 | 0 303 | 0 304 | 0 305 | 1 306 | 1 307 | 1 308 | 1 309 | 0 310 | 0 311 | 0 312 | 0 313 | 0 314 | 1 315 | 1 316 | 1 317 | 1 318 | 1 319 | 0 320 | 1 321 | 0 322 | 1 323 | 0 324 | 0 325 | 1 326 | 1 327 | 0 328 | 0 329 | 0 330 | 1 331 | 1 332 | 1 333 | 0 334 | 0 335 | 0 336 | 0 337 | 1 338 | 1 339 | 1 340 | 1 341 | 0 342 | 0 343 | 0 344 | 0 345 | 0 346 | 1 347 | 1 348 | 1 349 | 1 350 | 1 351 | 0 352 | 1 353 | 0 354 | 1 355 | 0 356 | 0 357 | 1 358 | 1 359 | 0 360 | 0 361 | 0 362 | 1 363 | 1 364 | 1 365 | 0 366 | 0 367 | 0 368 | 0 369 | 1 370 | 1 371 | 1 372 | 1 373 | 0 374 | 0 375 | 0 376 | 0 377 | 0 378 | 1 379 | 1 380 | 1 381 | 1 382 | 1 383 | 0 384 | 1 385 | 0 386 | 1 387 | 0 388 | 0 389 | 1 390 | 1 391 | 0 392 | 0 393 | 0 394 | 1 395 | 1 396 | 1 397 | 0 398 | 0 399 | 0 400 | 0 401 | 1 402 | 1 403 | 1 404 | 1 405 | 0 406 | 0 407 | 0 408 | 0 409 | 0 410 | 1 411 | 1 412 | 1 413 | 1 414 | 1 415 | 0 416 | 1 417 | 0 418 | 1 419 | 0 420 | 0 421 | 1 422 | 1 423 | 0 424 | 0 425 | 0 426 | 1 427 | 1 428 | 1 429 | 0 430 | 0 431 | 0 432 | 0 433 | 1 434 | 1 435 | 1 436 | 1 437 | 0 438 | 0 439 | 0 440 | 0 441 | 0 442 | 1 443 | 1 444 | 1 445 | 1 446 | 1 447 | 0 448 | 1 449 | 0 450 | 1 451 | 0 452 | 0 453 | 1 454 | 1 455 | 0 456 | 0 457 | 0 458 | 1 459 | 1 460 | 1 461 | 0 462 | 0 463 | 0 464 | 0 465 | 1 466 | 1 467 | 1 468 | 1 469 | 0 470 | 0 471 | 0 472 | 0 473 | 0 474 | 1 475 | 1 476 | 1 477 | 1 478 | 1 479 | 0 480 | 1 481 | 0 482 | 1 483 | 0 484 | 0 485 | 1 486 | 1 487 | 0 488 | 0 489 | 0 490 | 1 491 | 1 492 | 1 493 | 0 494 | 0 495 | 0 496 | 0 497 | 1 498 | 1 499 | 1 500 | 1 501 | 0 502 | 0 503 | 0 504 | 0 505 | 0 506 | 1 507 | 1 508 | 1 509 | 1 510 | 1 511 | 0 512 | 1 -------------------------------------------------------------------------------- /telecom/conven00/datasets/xk4r2dt.dat: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 0 4 | 0 5 | 1 6 | 1 7 | 0 8 | 0 9 | 0 10 | 1 11 | 1 12 | 1 13 | 0 14 | 0 15 | 0 16 | 0 17 | 1 18 | 1 19 | 1 20 | 1 21 | 0 22 | 0 23 | 0 24 | 0 25 | 0 26 | 1 27 | 1 28 | 1 29 | 1 30 | 1 31 | 0 32 | 1 33 | 0 34 | 1 35 | 0 36 | 0 37 | 1 38 | 1 39 | 0 40 | 0 41 | 0 42 | 1 43 | 1 44 | 1 45 | 0 46 | 0 47 | 0 48 | 0 49 | 1 50 | 1 51 | 1 52 | 1 53 | 0 54 | 0 55 | 0 56 | 0 57 | 0 58 | 1 59 | 1 60 | 1 61 | 1 62 | 1 63 | 0 64 | 1 65 | 0 66 | 1 67 | 0 68 | 0 69 | 1 70 | 1 71 | 0 72 | 0 73 | 0 74 | 1 75 | 1 76 | 1 77 | 0 78 | 0 79 | 0 80 | 0 81 | 1 82 | 1 83 | 1 84 | 1 85 | 0 86 | 0 87 | 0 88 | 0 89 | 0 90 | 1 91 | 1 92 | 1 93 | 1 94 | 1 95 | 0 96 | 1 97 | 0 98 | 1 99 | 0 100 | 0 101 | 1 102 | 1 103 | 0 104 | 0 105 | 0 106 | 1 107 | 1 108 | 1 109 | 0 110 | 0 111 | 0 112 | 0 113 | 1 114 | 1 115 | 1 116 | 1 117 | 0 118 | 0 119 | 0 120 | 0 121 | 0 122 | 1 123 | 1 124 | 1 125 | 1 126 | 1 127 | 0 128 | 1 129 | 0 130 | 1 131 | 0 132 | 0 133 | 1 134 | 1 135 | 0 136 | 0 137 | 0 138 | 1 139 | 1 140 | 1 141 | 0 142 | 0 143 | 0 144 | 0 145 | 1 146 | 1 147 | 1 148 | 1 149 | 0 150 | 0 151 | 0 152 | 0 153 | 0 154 | 1 155 | 1 156 | 1 157 | 1 158 | 1 159 | 0 160 | 1 161 | 0 162 | 1 163 | 0 164 | 0 165 | 1 166 | 1 167 | 0 168 | 0 169 | 0 170 | 1 171 | 1 172 | 1 173 | 0 174 | 0 175 | 0 176 | 0 177 | 1 178 | 1 179 | 1 180 | 1 181 | 0 182 | 0 183 | 0 184 | 0 185 | 0 186 | 1 187 | 1 188 | 1 189 | 1 190 | 1 191 | 0 192 | 1 193 | 0 194 | 1 195 | 0 196 | 0 197 | 1 198 | 1 199 | 0 200 | 0 201 | 0 202 | 1 203 | 1 204 | 1 205 | 0 206 | 0 207 | 0 208 | 0 209 | 1 210 | 1 211 | 1 212 | 1 213 | 0 214 | 0 215 | 0 216 | 0 217 | 0 218 | 1 219 | 1 220 | 1 221 | 1 222 | 1 223 | 0 224 | 1 225 | 0 226 | 1 227 | 0 228 | 0 229 | 1 230 | 1 231 | 0 232 | 0 233 | 0 234 | 1 235 | 1 236 | 1 237 | 0 238 | 0 239 | 0 240 | 0 241 | 1 242 | 1 243 | 1 244 | 1 245 | 0 246 | 0 247 | 0 248 | 0 249 | 0 250 | 1 251 | 1 252 | 1 253 | 1 254 | 1 255 | 0 256 | 1 257 | 0 258 | 1 259 | 0 260 | 0 261 | 1 262 | 1 263 | 0 264 | 0 265 | 0 266 | 1 267 | 1 268 | 1 269 | 0 270 | 0 271 | 0 272 | 0 273 | 1 274 | 1 275 | 1 276 | 1 277 | 0 278 | 0 279 | 0 280 | 0 281 | 0 282 | 1 283 | 1 284 | 1 285 | 1 286 | 1 287 | 0 288 | 1 289 | 0 290 | 1 291 | 0 292 | 0 293 | 1 294 | 1 295 | 0 296 | 0 297 | 0 298 | 1 299 | 1 300 | 1 301 | 0 302 | 0 303 | 0 304 | 0 305 | 1 306 | 1 307 | 1 308 | 1 309 | 0 310 | 0 311 | 0 312 | 0 313 | 0 314 | 1 315 | 1 316 | 1 317 | 1 318 | 1 319 | 0 320 | 1 321 | 0 322 | 1 323 | 0 324 | 0 325 | 1 326 | 1 327 | 0 328 | 0 329 | 0 330 | 1 331 | 1 332 | 1 333 | 0 334 | 0 335 | 0 336 | 0 337 | 1 338 | 1 339 | 1 340 | 1 341 | 0 342 | 0 343 | 0 344 | 0 345 | 0 346 | 1 347 | 1 348 | 1 349 | 1 350 | 1 351 | 0 352 | 1 353 | 0 354 | 1 355 | 0 356 | 0 357 | 1 358 | 1 359 | 0 360 | 0 361 | 0 362 | 1 363 | 1 364 | 1 365 | 0 366 | 0 367 | 0 368 | 0 369 | 1 370 | 1 371 | 1 372 | 1 373 | 0 374 | 0 375 | 0 376 | 0 377 | 0 378 | 1 379 | 1 380 | 1 381 | 1 382 | 1 383 | 0 384 | 1 385 | 0 386 | 1 387 | 0 388 | 0 389 | 1 390 | 1 391 | 0 392 | 0 393 | 0 394 | 1 395 | 1 396 | 1 397 | 0 398 | 0 399 | 0 400 | 0 401 | 1 402 | 1 403 | 1 404 | 1 405 | 0 406 | 0 407 | 0 408 | 0 409 | 0 410 | 1 411 | 1 412 | 1 413 | 1 414 | 1 415 | 0 416 | 1 417 | 0 418 | 1 419 | 0 420 | 0 421 | 1 422 | 1 423 | 0 424 | 0 425 | 0 426 | 1 427 | 1 428 | 1 429 | 0 430 | 0 431 | 0 432 | 0 433 | 1 434 | 1 435 | 1 436 | 1 437 | 0 438 | 0 439 | 0 440 | 0 441 | 0 442 | 1 443 | 1 444 | 1 445 | 1 446 | 1 447 | 0 448 | 1 449 | 0 450 | 1 451 | 0 452 | 0 453 | 1 454 | 1 455 | 0 456 | 0 457 | 0 458 | 1 459 | 1 460 | 1 461 | 0 462 | 0 463 | 0 464 | 0 465 | 1 466 | 1 467 | 1 468 | 1 469 | 0 470 | 0 471 | 0 472 | 0 473 | 0 474 | 1 475 | 1 476 | 1 477 | 1 478 | 1 479 | 0 480 | 1 481 | 0 482 | 1 483 | 0 484 | 0 485 | 1 486 | 1 487 | 0 488 | 0 489 | 0 490 | 1 491 | 1 492 | 1 493 | 0 494 | 0 495 | 0 496 | 0 497 | 1 498 | 1 499 | 1 500 | 1 501 | 0 502 | 0 503 | 0 504 | 0 505 | 0 506 | 1 507 | 1 508 | 1 509 | 1 510 | 1 511 | 0 512 | 1 -------------------------------------------------------------------------------- /telecom/conven00/datasets/xk5r2dt.dat: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 0 4 | 0 5 | 1 6 | 1 7 | 0 8 | 0 9 | 0 10 | 1 11 | 1 12 | 1 13 | 0 14 | 0 15 | 0 16 | 0 17 | 1 18 | 1 19 | 1 20 | 1 21 | 0 22 | 0 23 | 0 24 | 0 25 | 0 26 | 1 27 | 1 28 | 1 29 | 1 30 | 1 31 | 0 32 | 1 33 | 0 34 | 1 35 | 0 36 | 0 37 | 1 38 | 1 39 | 0 40 | 0 41 | 0 42 | 1 43 | 1 44 | 1 45 | 0 46 | 0 47 | 0 48 | 0 49 | 1 50 | 1 51 | 1 52 | 1 53 | 0 54 | 0 55 | 0 56 | 0 57 | 0 58 | 1 59 | 1 60 | 1 61 | 1 62 | 1 63 | 0 64 | 1 65 | 0 66 | 1 67 | 0 68 | 0 69 | 1 70 | 1 71 | 0 72 | 0 73 | 0 74 | 1 75 | 1 76 | 1 77 | 0 78 | 0 79 | 0 80 | 0 81 | 1 82 | 1 83 | 1 84 | 1 85 | 0 86 | 0 87 | 0 88 | 0 89 | 0 90 | 1 91 | 1 92 | 1 93 | 1 94 | 1 95 | 0 96 | 1 97 | 0 98 | 1 99 | 0 100 | 0 101 | 1 102 | 1 103 | 0 104 | 0 105 | 0 106 | 1 107 | 1 108 | 1 109 | 0 110 | 0 111 | 0 112 | 0 113 | 1 114 | 1 115 | 1 116 | 1 117 | 0 118 | 0 119 | 0 120 | 0 121 | 0 122 | 1 123 | 1 124 | 1 125 | 1 126 | 1 127 | 0 128 | 1 129 | 0 130 | 1 131 | 0 132 | 0 133 | 1 134 | 1 135 | 0 136 | 0 137 | 0 138 | 1 139 | 1 140 | 1 141 | 0 142 | 0 143 | 0 144 | 0 145 | 1 146 | 1 147 | 1 148 | 1 149 | 0 150 | 0 151 | 0 152 | 0 153 | 0 154 | 1 155 | 1 156 | 1 157 | 1 158 | 1 159 | 0 160 | 1 161 | 0 162 | 1 163 | 0 164 | 0 165 | 1 166 | 1 167 | 0 168 | 0 169 | 0 170 | 1 171 | 1 172 | 1 173 | 0 174 | 0 175 | 0 176 | 0 177 | 1 178 | 1 179 | 1 180 | 1 181 | 0 182 | 0 183 | 0 184 | 0 185 | 0 186 | 1 187 | 1 188 | 1 189 | 1 190 | 1 191 | 0 192 | 1 193 | 0 194 | 1 195 | 0 196 | 0 197 | 1 198 | 1 199 | 0 200 | 0 201 | 0 202 | 1 203 | 1 204 | 1 205 | 0 206 | 0 207 | 0 208 | 0 209 | 1 210 | 1 211 | 1 212 | 1 213 | 0 214 | 0 215 | 0 216 | 0 217 | 0 218 | 1 219 | 1 220 | 1 221 | 1 222 | 1 223 | 0 224 | 1 225 | 0 226 | 1 227 | 0 228 | 0 229 | 1 230 | 1 231 | 0 232 | 0 233 | 0 234 | 1 235 | 1 236 | 1 237 | 0 238 | 0 239 | 0 240 | 0 241 | 1 242 | 1 243 | 1 244 | 1 245 | 0 246 | 0 247 | 0 248 | 0 249 | 0 250 | 1 251 | 1 252 | 1 253 | 1 254 | 1 255 | 0 256 | 1 257 | 0 258 | 1 259 | 0 260 | 0 261 | 1 262 | 1 263 | 0 264 | 0 265 | 0 266 | 1 267 | 1 268 | 1 269 | 0 270 | 0 271 | 0 272 | 0 273 | 1 274 | 1 275 | 1 276 | 1 277 | 0 278 | 0 279 | 0 280 | 0 281 | 0 282 | 1 283 | 1 284 | 1 285 | 1 286 | 1 287 | 0 288 | 1 289 | 0 290 | 1 291 | 0 292 | 0 293 | 1 294 | 1 295 | 0 296 | 0 297 | 0 298 | 1 299 | 1 300 | 1 301 | 0 302 | 0 303 | 0 304 | 0 305 | 1 306 | 1 307 | 1 308 | 1 309 | 0 310 | 0 311 | 0 312 | 0 313 | 0 314 | 1 315 | 1 316 | 1 317 | 1 318 | 1 319 | 0 320 | 1 321 | 0 322 | 1 323 | 0 324 | 0 325 | 1 326 | 1 327 | 0 328 | 0 329 | 0 330 | 1 331 | 1 332 | 1 333 | 0 334 | 0 335 | 0 336 | 0 337 | 1 338 | 1 339 | 1 340 | 1 341 | 0 342 | 0 343 | 0 344 | 0 345 | 0 346 | 1 347 | 1 348 | 1 349 | 1 350 | 1 351 | 0 352 | 1 353 | 0 354 | 1 355 | 0 356 | 0 357 | 1 358 | 1 359 | 0 360 | 0 361 | 0 362 | 1 363 | 1 364 | 1 365 | 0 366 | 0 367 | 0 368 | 0 369 | 1 370 | 1 371 | 1 372 | 1 373 | 0 374 | 0 375 | 0 376 | 0 377 | 0 378 | 1 379 | 1 380 | 1 381 | 1 382 | 1 383 | 0 384 | 1 385 | 0 386 | 1 387 | 0 388 | 0 389 | 1 390 | 1 391 | 0 392 | 0 393 | 0 394 | 1 395 | 1 396 | 1 397 | 0 398 | 0 399 | 0 400 | 0 401 | 1 402 | 1 403 | 1 404 | 1 405 | 0 406 | 0 407 | 0 408 | 0 409 | 0 410 | 1 411 | 1 412 | 1 413 | 1 414 | 1 415 | 0 416 | 1 417 | 0 418 | 1 419 | 0 420 | 0 421 | 1 422 | 1 423 | 0 424 | 0 425 | 0 426 | 1 427 | 1 428 | 1 429 | 0 430 | 0 431 | 0 432 | 0 433 | 1 434 | 1 435 | 1 436 | 1 437 | 0 438 | 0 439 | 0 440 | 0 441 | 0 442 | 1 443 | 1 444 | 1 445 | 1 446 | 1 447 | 0 448 | 1 449 | 0 450 | 1 451 | 0 452 | 0 453 | 1 454 | 1 455 | 0 456 | 0 457 | 0 458 | 1 459 | 1 460 | 1 461 | 0 462 | 0 463 | 0 464 | 0 465 | 1 466 | 1 467 | 1 468 | 1 469 | 0 470 | 0 471 | 0 472 | 0 473 | 0 474 | 1 475 | 1 476 | 1 477 | 1 478 | 1 479 | 0 480 | 1 481 | 0 482 | 1 483 | 0 484 | 0 485 | 1 486 | 1 487 | 0 488 | 0 489 | 0 490 | 1 491 | 1 492 | 1 493 | 0 494 | 0 495 | 0 496 | 0 497 | 1 498 | 1 499 | 1 500 | 1 501 | 0 502 | 0 503 | 0 504 | 0 505 | 0 506 | 1 507 | 1 508 | 1 509 | 1 510 | 1 511 | 0 512 | 1 -------------------------------------------------------------------------------- /telecom/diffmeasure/doc/diffmeasure.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eembc/telebench/ae6fc3399e1d705b157f5926aa3c4cee5f53a52b/telecom/diffmeasure/doc/diffmeasure.pdf -------------------------------------------------------------------------------- /telecom/diffmeasure/verify.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | #ifndef VERIFY_H 11 | #define VERIFY_H 12 | 13 | #include 14 | #include "thlib.h" 15 | 16 | /* typedef enum {REAL, COMPLEX} DATA_TYPE;*/ 17 | typedef 18 | enum { 19 | BAD_F = EOF, 20 | REAL = 1, 21 | COMPLEX = 2} 22 | DATA_TYPE; 23 | 24 | 25 | 26 | double diffmeasure (e_f64 *, int , DATA_TYPE , e_s16 *, int , DATA_TYPE ); 27 | 28 | /* Used to convert diffmeasure output into THResults */ 29 | 30 | typedef union { 31 | double d; 32 | size_t v[2]; 33 | } d_union; 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /telecom/dirsx86.mak: -------------------------------------------------------------------------------- 1 | # ============================================================================ 2 | # 3 | # Copyright (C) EEMBC(R) All Rights Reserved 4 | # 5 | # This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | # Please refer to the license file (LICENSE.md) included with this code. 7 | # 8 | # ============================================================================ 9 | 10 | cleanlogs: 11 | @rm -f $(RESULTS)/*.log 12 | @rm -f $(RESULTS)/*.size 13 | @rm -f $(TOOLCHAIN)_time$(LITE)$(VER).log 14 | @rm -f $(TOOLCHAIN)$(PLATFORM)$(LITE).log 15 | 16 | clean:: cleanlogs 17 | @rm -f $(OBJBUILD)/*$(OBJ) 18 | @rm -f $(OBJBUILD)/*$(LIBTYPE) 19 | @rm -f $(OBJBUILD)/diffmeasure/*$(OBJ) 20 | @rm -f $(OBJBUILD)/empty/*$(OBJ) 21 | @rm -f $(OBJBUILD)/autcor00data_1/*$(OBJ) 22 | @rm -f $(OBJBUILD)/autcor00data_2/*$(OBJ) 23 | @rm -f $(OBJBUILD)/autcor00data_3/*$(OBJ) 24 | @rm -f $(OBJBUILD)/conven00data_1/*$(OBJ) 25 | @rm -f $(OBJBUILD)/conven00data_2/*$(OBJ) 26 | @rm -f $(OBJBUILD)/conven00data_3/*$(OBJ) 27 | @rm -f $(OBJBUILD)/fbital00data_2/*$(OBJ) 28 | @rm -f $(OBJBUILD)/fbital00data_3/*$(OBJ) 29 | @rm -f $(OBJBUILD)/fbital00data_6/*$(OBJ) 30 | @rm -f $(OBJBUILD)/fft00data_1/*$(OBJ) 31 | @rm -f $(OBJBUILD)/fft00data_2/*$(OBJ) 32 | @rm -f $(OBJBUILD)/fft00data_3/*$(OBJ) 33 | @rm -f $(OBJBUILD)/viterb00data_1/*$(OBJ) 34 | @rm -f $(OBJBUILD)/viterb00data_2/*$(OBJ) 35 | @rm -f $(OBJBUILD)/viterb00data_3/*$(OBJ) 36 | @rm -f $(OBJBUILD)/viterb00data_4/*$(OBJ) 37 | @rm -f $(BINBUILD)/empty$(LITE)$(EXE) 38 | @rm -f $(BINBUILD)/autcor00data_1$(LITE)$(EXE) 39 | @rm -f $(BINBUILD)/autcor00data_2$(LITE)$(EXE) 40 | @rm -f $(BINBUILD)/autcor00data_3$(LITE)$(EXE) 41 | @rm -f $(BINBUILD)/conven00data_1$(LITE)$(EXE) 42 | @rm -f $(BINBUILD)/conven00data_2$(LITE)$(EXE) 43 | @rm -f $(BINBUILD)/conven00data_3$(LITE)$(EXE) 44 | @rm -f $(BINBUILD)/fbital00data_2$(LITE)$(EXE) 45 | @rm -f $(BINBUILD)/fbital00data_3$(LITE)$(EXE) 46 | @rm -f $(BINBUILD)/fbital00data_6$(LITE)$(EXE) 47 | @rm -f $(BINBUILD)/fft00data_1$(LITE)$(EXE) 48 | @rm -f $(BINBUILD)/fft00data_2$(LITE)$(EXE) 49 | @rm -f $(BINBUILD)/fft00data_3$(LITE)$(EXE) 50 | @rm -f $(BINBUILD)/viterb00data_1$(LITE)$(EXE) 51 | @rm -f $(BINBUILD)/viterb00data_2$(LITE)$(EXE) 52 | @rm -f $(BINBUILD)/viterb00data_3$(LITE)$(EXE) 53 | @rm -f $(BINBUILD)/viterb00data_4$(LITE)$(EXE) 54 | @rm -f $(BINBUILD)/diffmeasure$(LITE)$(EXE) 55 | 56 | mkdir: 57 | @mkdir -p $(BINBUILD) 58 | @mkdir -p $(OBJBUILD) 59 | @mkdir -p $(RESULTS) 60 | @mkdir -p $(OBJBUILD)/empty 61 | @mkdir -p $(OBJBUILD)/diffmeasure 62 | @mkdir -p $(OBJBUILD)/autcor00data_1 63 | @mkdir -p $(OBJBUILD)/autcor00data_2 64 | @mkdir -p $(OBJBUILD)/autcor00data_3 65 | @mkdir -p $(OBJBUILD)/conven00data_1 66 | @mkdir -p $(OBJBUILD)/conven00data_2 67 | @mkdir -p $(OBJBUILD)/conven00data_3 68 | @mkdir -p $(OBJBUILD)/fbital00data_2 69 | @mkdir -p $(OBJBUILD)/fbital00data_3 70 | @mkdir -p $(OBJBUILD)/fbital00data_6 71 | @mkdir -p $(OBJBUILD)/fft00data_1 72 | @mkdir -p $(OBJBUILD)/fft00data_2 73 | @mkdir -p $(OBJBUILD)/fft00data_3 74 | @mkdir -p $(OBJBUILD)/viterb00data_1 75 | @mkdir -p $(OBJBUILD)/viterb00data_2 76 | @mkdir -p $(OBJBUILD)/viterb00data_3 77 | @mkdir -p $(OBJBUILD)/viterb00data_4 78 | 79 | rmdir: 80 | @rm -rf $(BINBUILD) 81 | @rm -rf $(OBJBUILD) 82 | @rm -rf $(RESULTS) 83 | -------------------------------------------------------------------------------- /telecom/empty/readme.txt: -------------------------------------------------------------------------------- 1 | The following is the approved process for measuring code and data sizes 2 | for Release 1 of the EEMBC Benchmarks. This method is called "The 3 | Subtraction Method" because, in general, you build an empty benchmark, 4 | link it to the Test Harness, and subtract the code and data sizes from 5 | a real benchmark linked to the Test Harness. 6 | 7 | 1. TechTAG is providing an empty benchmark file. This is to be 8 | compiled and linked with the TH3.2E1 or TH3.3 as applicable in place of 9 | the standard bmark.c file. 10 | 11 | 2. The code and data sizes for this "null benchmark" must be 12 | calculated by the benchmarking (submitting) company. 13 | 14 | 3. The values for each will be constants and will be subtracted from 15 | the values of the result of the builds for the real benchmarks+test 16 | harnesses. 17 | 18 | 4. The result code and data (where data does not include stack and 19 | heap but all other data) will be reported for each kernel, and will be 20 | verified by the certification process of ECL. 21 | 22 | 5, If your compiler does not easily emit code and data sizes, you must 23 | create a .map file (or .lnk file, or equivalent) and manually sum these 24 | up. When you submit your scores to ECL for certification, you must 25 | include the exact description of how you arrived at your answers. 26 | 27 | -------------------------------------------------------------------------------- /telecom/fbital00/algo.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | #ifndef ALGO_H 11 | #define ALGO_H 12 | 13 | /******************************************************************************* 14 | Includes 15 | *******************************************************************************/ 16 | #include "thlib.h" 17 | 18 | /******************************************************************************* 19 | Defines 20 | *******************************************************************************/ 21 | /* STEP_SIZE 51 (fixed) is equivalent to 0.099609 (float) */ 22 | #define STEP_SIZE 51 23 | #define MAX_BITS_PER_CARRIER 12 24 | #define ALLOCATION_MAP_SIZE 512 25 | 26 | /* Compile time Data set select for uuencode: 27 | * DATA_1 through DATA_6 28 | * DATA_6 is default 29 | */ 30 | #if (!defined(DATA_2) && !defined(DATA_3) && !defined(DATA_6)) 31 | #define DATA_6 32 | #endif 33 | 34 | /******************************************************************************* 35 | Global Variables 36 | *******************************************************************************/ 37 | #ifndef ALGO_GLOBALS /* Don't define these twice! */ 38 | #define ALGO_GLOBALS 39 | #endif /* ALGO_GLOBALS */ 40 | 41 | /******************************************************************************* 42 | Function Prototypes 43 | *******************************************************************************/ 44 | void 45 | fxpBitAllocation ( 46 | e_s16 *CarrierSNRdB, /* input data */ 47 | e_s16 *CarrierBitAllocation, /* output data */ 48 | e_u16 NumberOfCarriers, /* size of input data */ 49 | e_s16 WaterLeveldB_in, /* Starting water level in dB */ 50 | e_s16 *WaterLeveldB_out, /* Final water level in dB */ 51 | e_s16 *AllocationMap, /* Lookup Table */ 52 | e_u16 BitsPerDMTSymbol, /* total bits for allocation */ 53 | size_t loop_cnt 54 | ); 55 | 56 | #endif /* __fBitAl00_H */ 57 | -------------------------------------------------------------------------------- /telecom/fbital00/datasets/vpentbai.dat: -------------------------------------------------------------------------------- 1 | 1 , 2 | 1 , 3 | 1 , 4 | 1 , 5 | 2 , 6 | 2 , 7 | 3 , 8 | 4 , 9 | 5 , 10 | 6 , 11 | 6 , 12 | 7 , 13 | 7 , 14 | 8 , 15 | 8 , 16 | 8 , 17 | 9 , 18 | 9 , 19 | 9 , 20 | 10 , 21 | 10 , 22 | 10 , 23 | 10 , 24 | 10 , 25 | 10 , 26 | 10 , 27 | 10 , 28 | 10 , 29 | 10 , 30 | 10 , 31 | 10 , 32 | 10 , 33 | 10 , 34 | 9 , 35 | 9 , 36 | 9 , 37 | 8 , 38 | 8 , 39 | 8 , 40 | 7 , 41 | 7 , 42 | 6 , 43 | 6 , 44 | 5 , 45 | 4 , 46 | 3 , 47 | 2 , 48 | 2 , 49 | 1 , 50 | 1 , 51 | 1 , 52 | 1 , 53 | 1 , 54 | 1 , 55 | 1 , 56 | 2 , 57 | 2 , 58 | 2 , 59 | 2 , 60 | 3 , 61 | 3 , 62 | 3 , 63 | 4 , 64 | 4 , 65 | 4 , 66 | 4 , 67 | 4 , 68 | 5 , 69 | 5 , 70 | 5 , 71 | 5 , 72 | 5 , 73 | 5 , 74 | 6 , 75 | 6 , 76 | 6 , 77 | 6 , 78 | 6 , 79 | 5 , 80 | 5 , 81 | 5 , 82 | 5 , 83 | 5 , 84 | 5 , 85 | 4 , 86 | 4 , 87 | 4 , 88 | 4 , 89 | 4 , 90 | 3 , 91 | 3 , 92 | 3 , 93 | 2 , 94 | 2 , 95 | 2 , 96 | 1 , 97 | 0 , 98 | 0 , 99 | 0 , 100 | 0 101 | -------------------------------------------------------------------------------- /telecom/fbital00/datasets/vpentbat.dat: -------------------------------------------------------------------------------- 1 | 1 2 | 1 3 | 1 4 | 1 5 | 2 6 | 2 7 | 3 8 | 4 9 | 5 10 | 6 11 | 6 12 | 7 13 | 7 14 | 8 15 | 8 16 | 8 17 | 9 18 | 9 19 | 9 20 | 10 21 | 10 22 | 10 23 | 10 24 | 10 25 | 10 26 | 10 27 | 10 28 | 10 29 | 10 30 | 10 31 | 10 32 | 10 33 | 10 34 | 9 35 | 9 36 | 9 37 | 8 38 | 8 39 | 8 40 | 7 41 | 7 42 | 6 43 | 6 44 | 5 45 | 4 46 | 3 47 | 2 48 | 2 49 | 1 50 | 1 51 | 1 52 | 1 53 | 1 54 | 1 55 | 1 56 | 2 57 | 2 58 | 2 59 | 2 60 | 3 61 | 3 62 | 3 63 | 4 64 | 4 65 | 4 66 | 4 67 | 4 68 | 5 69 | 5 70 | 5 71 | 5 72 | 5 73 | 5 74 | 6 75 | 6 76 | 6 77 | 6 78 | 6 79 | 5 80 | 5 81 | 5 82 | 5 83 | 5 84 | 5 85 | 4 86 | 4 87 | 4 88 | 4 89 | 4 90 | 3 91 | 3 92 | 3 93 | 2 94 | 2 95 | 2 96 | 1 97 | 0 98 | 0 99 | 0 100 | 0 101 | -------------------------------------------------------------------------------- /telecom/fbital00/datasets/vstepbai.dat: -------------------------------------------------------------------------------- 1 | 0 , 2 | 0 , 3 | 0 , 4 | 0 , 5 | 0 , 6 | 12 , 7 | 12 , 8 | 12 , 9 | 12 , 10 | 12 , 11 | 12 , 12 | 12 , 13 | 12 , 14 | 12 , 15 | 12 , 16 | 0 , 17 | 0 , 18 | 0 , 19 | 0 , 20 | 0 21 | -------------------------------------------------------------------------------- /telecom/fbital00/datasets/vstepbat.dat: -------------------------------------------------------------------------------- 1 | 0 2 | 0 3 | 0 4 | 0 5 | 0 6 | 12 7 | 12 8 | 12 9 | 12 10 | 12 11 | 12 12 | 12 13 | 12 14 | 12 15 | 12 16 | 0 17 | 0 18 | 0 19 | 0 20 | 0 21 | -------------------------------------------------------------------------------- /telecom/fbital00/datasets/vtypbai.dat: -------------------------------------------------------------------------------- 1 | 0 , 2 | 0 , 3 | 0 , 4 | 0 , 5 | 0 , 6 | 1 , 7 | 2 , 8 | 4 , 9 | 5 , 10 | 6 , 11 | 6 , 12 | 6 , 13 | 7 , 14 | 7 , 15 | 7 , 16 | 7 , 17 | 7 , 18 | 7 , 19 | 7 , 20 | 7 , 21 | 7 , 22 | 6 , 23 | 6 , 24 | 6 , 25 | 6 , 26 | 6 , 27 | 6 , 28 | 6 , 29 | 6 , 30 | 6 , 31 | 6 , 32 | 6 , 33 | 6 , 34 | 6 , 35 | 6 , 36 | 6 , 37 | 6 , 38 | 6 , 39 | 5 , 40 | 5 , 41 | 5 , 42 | 5 , 43 | 6 , 44 | 6 , 45 | 6 , 46 | 6 , 47 | 6 , 48 | 6 , 49 | 6 , 50 | 6 , 51 | 6 , 52 | 6 , 53 | 6 , 54 | 7 , 55 | 7 , 56 | 7 , 57 | 7 , 58 | 7 , 59 | 7 , 60 | 8 , 61 | 8 , 62 | 8 , 63 | 8 , 64 | 8 , 65 | 9 , 66 | 9 , 67 | 9 , 68 | 9 , 69 | 9 , 70 | 9 , 71 | 9 , 72 | 10 , 73 | 10 , 74 | 10 , 75 | 10 , 76 | 10 , 77 | 11 , 78 | 11 , 79 | 11 , 80 | 11 , 81 | 11 , 82 | 11 , 83 | 11 , 84 | 11 , 85 | 11 , 86 | 11 , 87 | 11 , 88 | 11 , 89 | 11 , 90 | 11 , 91 | 11 , 92 | 11 , 93 | 11 , 94 | 11 , 95 | 11 , 96 | 11 , 97 | 11 , 98 | 11 , 99 | 11 , 100 | 11 , 101 | 11 , 102 | 11 , 103 | 11 , 104 | 11 , 105 | 11 , 106 | 11 , 107 | 11 , 108 | 11 , 109 | 10 , 110 | 10 , 111 | 10 , 112 | 10 , 113 | 11 , 114 | 11 , 115 | 11 , 116 | 11 , 117 | 11 , 118 | 11 , 119 | 11 , 120 | 10 , 121 | 10 , 122 | 10 , 123 | 10 , 124 | 10 , 125 | 10 , 126 | 10 , 127 | 10 , 128 | 10 , 129 | 10 , 130 | 10 , 131 | 10 , 132 | 10 , 133 | 10 , 134 | 10 , 135 | 10 , 136 | 10 , 137 | 10 , 138 | 10 , 139 | 10 , 140 | 10 , 141 | 10 , 142 | 10 , 143 | 10 , 144 | 10 , 145 | 10 , 146 | 10 , 147 | 9 , 148 | 9 , 149 | 9 , 150 | 9 , 151 | 9 , 152 | 9 , 153 | 9 , 154 | 9 , 155 | 9 , 156 | 9 , 157 | 9 , 158 | 9 , 159 | 9 , 160 | 9 , 161 | 9 , 162 | 9 , 163 | 9 , 164 | 9 , 165 | 9 , 166 | 9 , 167 | 9 , 168 | 9 , 169 | 9 , 170 | 9 , 171 | 9 , 172 | 9 , 173 | 9 , 174 | 8 , 175 | 8 , 176 | 8 , 177 | 8 , 178 | 8 , 179 | 8 , 180 | 8 , 181 | 8 , 182 | 8 , 183 | 8 , 184 | 8 , 185 | 8 , 186 | 8 , 187 | 8 , 188 | 8 , 189 | 8 , 190 | 8 , 191 | 8 , 192 | 8 , 193 | 8 , 194 | 8 , 195 | 7 , 196 | 7 , 197 | 7 , 198 | 7 , 199 | 7 , 200 | 7 , 201 | 7 , 202 | 7 , 203 | 7 , 204 | 7 , 205 | 7 , 206 | 7 , 207 | 7 , 208 | 7 , 209 | 6 , 210 | 6 , 211 | 6 , 212 | 6 , 213 | 6 , 214 | 6 , 215 | 6 , 216 | 6 , 217 | 6 , 218 | 6 , 219 | 6 , 220 | 6 , 221 | 6 , 222 | 6 , 223 | 5 , 224 | 5 , 225 | 5 , 226 | 5 , 227 | 5 , 228 | 5 , 229 | 5 , 230 | 5 , 231 | 5 , 232 | 5 , 233 | 4 , 234 | 4 , 235 | 4 , 236 | 4 , 237 | 4 , 238 | 4 , 239 | 4 , 240 | 4 , 241 | 3 , 242 | 3 , 243 | 3 , 244 | 3 , 245 | 3 , 246 | 3 , 247 | 3 , 248 | 2 , 249 | 2 , 250 | 2 , 251 | 2 , 252 | 1 , 253 | 0 , 254 | 0 , 255 | 0 , 256 | 0 257 | -------------------------------------------------------------------------------- /telecom/fbital00/datasets/vtypbat.dat: -------------------------------------------------------------------------------- 1 | 0 2 | 0 3 | 0 4 | 0 5 | 0 6 | 1 7 | 2 8 | 4 9 | 5 10 | 6 11 | 6 12 | 6 13 | 7 14 | 7 15 | 7 16 | 7 17 | 7 18 | 7 19 | 7 20 | 7 21 | 7 22 | 6 23 | 6 24 | 6 25 | 6 26 | 6 27 | 6 28 | 6 29 | 6 30 | 6 31 | 6 32 | 6 33 | 6 34 | 6 35 | 6 36 | 6 37 | 6 38 | 6 39 | 5 40 | 5 41 | 5 42 | 5 43 | 6 44 | 6 45 | 6 46 | 6 47 | 6 48 | 6 49 | 6 50 | 6 51 | 6 52 | 6 53 | 6 54 | 7 55 | 7 56 | 7 57 | 7 58 | 7 59 | 7 60 | 8 61 | 8 62 | 8 63 | 8 64 | 8 65 | 9 66 | 9 67 | 9 68 | 9 69 | 9 70 | 9 71 | 9 72 | 10 73 | 10 74 | 10 75 | 10 76 | 10 77 | 11 78 | 11 79 | 11 80 | 11 81 | 11 82 | 11 83 | 11 84 | 11 85 | 11 86 | 11 87 | 11 88 | 11 89 | 11 90 | 11 91 | 11 92 | 11 93 | 11 94 | 11 95 | 11 96 | 11 97 | 11 98 | 11 99 | 11 100 | 11 101 | 11 102 | 11 103 | 11 104 | 11 105 | 11 106 | 11 107 | 11 108 | 11 109 | 10 110 | 10 111 | 10 112 | 10 113 | 11 114 | 11 115 | 11 116 | 11 117 | 11 118 | 11 119 | 11 120 | 10 121 | 10 122 | 10 123 | 10 124 | 10 125 | 10 126 | 10 127 | 10 128 | 10 129 | 10 130 | 10 131 | 10 132 | 10 133 | 10 134 | 10 135 | 10 136 | 10 137 | 10 138 | 10 139 | 10 140 | 10 141 | 10 142 | 10 143 | 10 144 | 10 145 | 10 146 | 10 147 | 9 148 | 9 149 | 9 150 | 9 151 | 9 152 | 9 153 | 9 154 | 9 155 | 9 156 | 9 157 | 9 158 | 9 159 | 9 160 | 9 161 | 9 162 | 9 163 | 9 164 | 9 165 | 9 166 | 9 167 | 9 168 | 9 169 | 9 170 | 9 171 | 9 172 | 9 173 | 9 174 | 8 175 | 8 176 | 8 177 | 8 178 | 8 179 | 8 180 | 8 181 | 8 182 | 8 183 | 8 184 | 8 185 | 8 186 | 8 187 | 8 188 | 8 189 | 8 190 | 8 191 | 8 192 | 8 193 | 8 194 | 8 195 | 7 196 | 7 197 | 7 198 | 7 199 | 7 200 | 7 201 | 7 202 | 7 203 | 7 204 | 7 205 | 7 206 | 7 207 | 7 208 | 7 209 | 6 210 | 6 211 | 6 212 | 6 213 | 6 214 | 6 215 | 6 216 | 6 217 | 6 218 | 6 219 | 6 220 | 6 221 | 6 222 | 6 223 | 5 224 | 5 225 | 5 226 | 5 227 | 5 228 | 5 229 | 5 230 | 5 231 | 5 232 | 5 233 | 4 234 | 4 235 | 4 236 | 4 237 | 4 238 | 4 239 | 4 240 | 4 241 | 3 242 | 3 243 | 3 244 | 3 245 | 3 246 | 3 247 | 3 248 | 2 249 | 2 250 | 2 251 | 2 252 | 1 253 | 0 254 | 0 255 | 0 256 | 0 257 | -------------------------------------------------------------------------------- /telecom/fbital00/datasets/xpentsnri.dat: -------------------------------------------------------------------------------- 1 | 0, 2 | 0, 3 | 0, 4 | 0, 5 | 1280, 6 | 2560, 7 | 3840, 8 | 5120, 9 | 6400, 10 | 7680, 11 | 8960, 12 | 10240, 13 | 10752, 14 | 11264, 15 | 11776, 16 | 12288, 17 | 12800, 18 | 13312, 19 | 13824, 20 | 14336, 21 | 14848, 22 | 15360, 23 | 15360, 24 | 15360, 25 | 15360, 26 | 15360, 27 | 15360, 28 | 15360, 29 | 15360, 30 | 15360, 31 | 15360, 32 | 14848, 33 | 14336, 34 | 13824, 35 | 13312, 36 | 12800, 37 | 12288, 38 | 11776, 39 | 11264, 40 | 10752, 41 | 10240, 42 | 8960, 43 | 7680, 44 | 6400, 45 | 5120, 46 | 3840, 47 | 2560, 48 | 1280, 49 | 0, 50 | 0, 51 | 0, 52 | 0, 53 | 0, 54 | 0, 55 | 512, 56 | 1024, 57 | 1536, 58 | 2048, 59 | 2560, 60 | 3072, 61 | 3584, 62 | 4096, 63 | 4608, 64 | 5120, 65 | 5376, 66 | 5632, 67 | 5888, 68 | 6144, 69 | 6400, 70 | 6656, 71 | 6912, 72 | 7168, 73 | 7424, 74 | 7680, 75 | 7680, 76 | 7680, 77 | 7680, 78 | 7680, 79 | 7424, 80 | 7168, 81 | 6912, 82 | 6656, 83 | 6400, 84 | 6144, 85 | 5888, 86 | 5632, 87 | 5376, 88 | 5120, 89 | 4608, 90 | 4096, 91 | 3584, 92 | 3072, 93 | 2560, 94 | 2048, 95 | 1536, 96 | 1024, 97 | 512, 98 | 0, 99 | 0, 100 | 0 101 | -------------------------------------------------------------------------------- /telecom/fbital00/datasets/xpentsnrt.dat: -------------------------------------------------------------------------------- 1 | 0 2 | 0 3 | 0 4 | 0 5 | 1280 6 | 2560 7 | 3840 8 | 5120 9 | 6400 10 | 7680 11 | 8960 12 | 10240 13 | 10752 14 | 11264 15 | 11776 16 | 12288 17 | 12800 18 | 13312 19 | 13824 20 | 14336 21 | 14848 22 | 15360 23 | 15360 24 | 15360 25 | 15360 26 | 15360 27 | 15360 28 | 15360 29 | 15360 30 | 15360 31 | 15360 32 | 14848 33 | 14336 34 | 13824 35 | 13312 36 | 12800 37 | 12288 38 | 11776 39 | 11264 40 | 10752 41 | 10240 42 | 8960 43 | 7680 44 | 6400 45 | 5120 46 | 3840 47 | 2560 48 | 1280 49 | 0 50 | 0 51 | 0 52 | 0 53 | 0 54 | 0 55 | 512 56 | 1024 57 | 1536 58 | 2048 59 | 2560 60 | 3072 61 | 3584 62 | 4096 63 | 4608 64 | 5120 65 | 5376 66 | 5632 67 | 5888 68 | 6144 69 | 6400 70 | 6656 71 | 6912 72 | 7168 73 | 7424 74 | 7680 75 | 7680 76 | 7680 77 | 7680 78 | 7680 79 | 7424 80 | 7168 81 | 6912 82 | 6656 83 | 6400 84 | 6144 85 | 5888 86 | 5632 87 | 5376 88 | 5120 89 | 4608 90 | 4096 91 | 3584 92 | 3072 93 | 2560 94 | 2048 95 | 1536 96 | 1024 97 | 512 98 | 0 99 | 0 100 | 0 101 | -------------------------------------------------------------------------------- /telecom/fbital00/datasets/xstepsnri.dat: -------------------------------------------------------------------------------- 1 | -5120 , 2 | -5120 , 3 | -5120 , 4 | -5120 , 5 | -5120 , 6 | 15360 , 7 | 15360 , 8 | 15360 , 9 | 15360 , 10 | 15360 , 11 | 15360 , 12 | 15360 , 13 | 15360 , 14 | 15360 , 15 | 15360 , 16 | -5120 , 17 | -5120 , 18 | -5120 , 19 | -5120 , 20 | -5120 21 | -------------------------------------------------------------------------------- /telecom/fbital00/datasets/xstepsnrt.dat: -------------------------------------------------------------------------------- 1 | -5120 2 | -5120 3 | -5120 4 | -5120 5 | -5120 6 | 15360 7 | 15360 8 | 15360 9 | 15360 10 | 15360 11 | 15360 12 | 15360 13 | 15360 14 | 15360 15 | 15360 16 | -5120 17 | -5120 18 | -5120 19 | -5120 20 | -5120 21 | -------------------------------------------------------------------------------- /telecom/fbital00/datasets/xtypsnri.dat: -------------------------------------------------------------------------------- 1 | 0 , 2 | 0 , 3 | 0 , 4 | 1280 , 5 | 2560 , 6 | 4864 , 7 | 7168 , 8 | 9472 , 9 | 11776 , 10 | 12672 , 11 | 13568 , 12 | 14080 , 13 | 15360 , 14 | 15360 , 15 | 15360 , 16 | 15360 , 17 | 15360 , 18 | 15104 , 19 | 14848 , 20 | 14592 , 21 | 14336 , 22 | 14080 , 23 | 14080 , 24 | 13952 , 25 | 13824 , 26 | 13696 , 27 | 13568 , 28 | 13440 , 29 | 13312 , 30 | 13184 , 31 | 13056 , 32 | 12928 , 33 | 12800 , 34 | 12800 , 35 | 12800 , 36 | 12800 , 37 | 12800 , 38 | 12672 , 39 | 12544 , 40 | 12544 , 41 | 12544 , 42 | 12544 , 43 | 12672 , 44 | 12800 , 45 | 12800 , 46 | 12928 , 47 | 13056 , 48 | 13184 , 49 | 13312 , 50 | 13440 , 51 | 13568 , 52 | 13696 , 53 | 13824 , 54 | 14208 , 55 | 14592 , 56 | 14976 , 57 | 15104 , 58 | 15360 , 59 | 15616 , 60 | 15872 , 61 | 16128 , 62 | 16512 , 63 | 16896 , 64 | 17152 , 65 | 17408 , 66 | 17536 , 67 | 17664 , 68 | 17792 , 69 | 17920 , 70 | 18304 , 71 | 18688 , 72 | 19072 , 73 | 19456 , 74 | 19712 , 75 | 19968 , 76 | 20224 , 77 | 20480 , 78 | 20608 , 79 | 20864 , 80 | 20992 , 81 | 21248 , 82 | 21248 , 83 | 21248 , 84 | 21248 , 85 | 21248 , 86 | 21248 , 87 | 21376 , 88 | 21504 , 89 | 21760 , 90 | 21760 , 91 | 21632 , 92 | 21504 , 93 | 21504 , 94 | 21632 , 95 | 21632 , 96 | 21504 , 97 | 21504 , 98 | 21376 , 99 | 21248 , 100 | 21120 , 101 | 20992 , 102 | 20992 , 103 | 20864 , 104 | 20736 , 105 | 20736 , 106 | 20736 , 107 | 20480 , 108 | 20352 , 109 | 20224 , 110 | 20224 , 111 | 20224 , 112 | 20224 , 113 | 20352 , 114 | 20352 , 115 | 20480 , 116 | 20352 , 117 | 20352 , 118 | 20352 , 119 | 20352 , 120 | 20224 , 121 | 20224 , 122 | 20224 , 123 | 20096 , 124 | 20096 , 125 | 19968 , 126 | 19840 , 127 | 19712 , 128 | 19584 , 129 | 19456 , 130 | 19584 , 131 | 19584 , 132 | 19456 , 133 | 19456 , 134 | 19328 , 135 | 19328 , 136 | 19456 , 137 | 19456 , 138 | 19328 , 139 | 19328 , 140 | 19200 , 141 | 19200 , 142 | 19200 , 143 | 19072 , 144 | 19072 , 145 | 18944 , 146 | 18816 , 147 | 18688 , 148 | 18560 , 149 | 18432 , 150 | 18304 , 151 | 18304 , 152 | 18176 , 153 | 18176 , 154 | 18176 , 155 | 18304 , 156 | 18304 , 157 | 18432 , 158 | 18560 , 159 | 18432 , 160 | 18176 , 161 | 17920 , 162 | 17920 , 163 | 17792 , 164 | 17792 , 165 | 17664 , 166 | 17664 , 167 | 17536 , 168 | 17536 , 169 | 17408 , 170 | 17408 , 171 | 17280 , 172 | 17280 , 173 | 17280 , 174 | 17152 , 175 | 17152 , 176 | 17152 , 177 | 17152 , 178 | 17024 , 179 | 17024 , 180 | 16896 , 181 | 16896 , 182 | 16896 , 183 | 16768 , 184 | 16768 , 185 | 16640 , 186 | 16640 , 187 | 16512 , 188 | 16512 , 189 | 16384 , 190 | 16256 , 191 | 16128 , 192 | 16000 , 193 | 15872 , 194 | 15744 , 195 | 15616 , 196 | 15488 , 197 | 15360 , 198 | 15488 , 199 | 15360 , 200 | 15232 , 201 | 15360 , 202 | 15232 , 203 | 15104 , 204 | 14976 , 205 | 14336 , 206 | 14336 , 207 | 14592 , 208 | 14464 , 209 | 13824 , 210 | 13824 , 211 | 13568 , 212 | 13568 , 213 | 13440 , 214 | 13312 , 215 | 13184 , 216 | 13056 , 217 | 13056 , 218 | 13056 , 219 | 12928 , 220 | 12800 , 221 | 12672 , 222 | 12672 , 223 | 12544 , 224 | 12416 , 225 | 12288 , 226 | 12160 , 227 | 11904 , 228 | 11776 , 229 | 11571 , 230 | 11520 , 231 | 11392 , 232 | 11136 , 233 | 10905 , 234 | 10752 , 235 | 10624 , 236 | 10444 , 237 | 10240 , 238 | 9984 , 239 | 9728 , 240 | 9472 , 241 | 9216 , 242 | 8960 , 243 | 8704 , 244 | 8448 , 245 | 8192 , 246 | 7936 , 247 | 7680 , 248 | 7424 , 249 | 7168 , 250 | 6400 , 251 | 5632 , 252 | 4864 , 253 | 3584 , 254 | 1536 , 255 | 0 , 256 | 0 257 | -------------------------------------------------------------------------------- /telecom/fbital00/datasets/xtypsnrt.dat: -------------------------------------------------------------------------------- 1 | 0 2 | 0 3 | 0 4 | 1280 5 | 2560 6 | 4864 7 | 7168 8 | 9472 9 | 11776 10 | 12672 11 | 13568 12 | 14080 13 | 15360 14 | 15360 15 | 15360 16 | 15360 17 | 15360 18 | 15104 19 | 14848 20 | 14592 21 | 14336 22 | 14080 23 | 14080 24 | 13952 25 | 13824 26 | 13696 27 | 13568 28 | 13440 29 | 13312 30 | 13184 31 | 13056 32 | 12928 33 | 12800 34 | 12800 35 | 12800 36 | 12800 37 | 12800 38 | 12672 39 | 12544 40 | 12544 41 | 12544 42 | 12544 43 | 12672 44 | 12800 45 | 12800 46 | 12928 47 | 13056 48 | 13184 49 | 13312 50 | 13440 51 | 13568 52 | 13696 53 | 13824 54 | 14208 55 | 14592 56 | 14976 57 | 15104 58 | 15360 59 | 15616 60 | 15872 61 | 16128 62 | 16512 63 | 16896 64 | 17152 65 | 17408 66 | 17536 67 | 17664 68 | 17792 69 | 17920 70 | 18304 71 | 18688 72 | 19072 73 | 19456 74 | 19712 75 | 19968 76 | 20224 77 | 20480 78 | 20608 79 | 20864 80 | 20992 81 | 21248 82 | 21248 83 | 21248 84 | 21248 85 | 21248 86 | 21248 87 | 21376 88 | 21504 89 | 21760 90 | 21760 91 | 21632 92 | 21504 93 | 21504 94 | 21632 95 | 21632 96 | 21504 97 | 21504 98 | 21376 99 | 21248 100 | 21120 101 | 20992 102 | 20992 103 | 20864 104 | 20736 105 | 20736 106 | 20736 107 | 20480 108 | 20352 109 | 20224 110 | 20224 111 | 20224 112 | 20224 113 | 20352 114 | 20352 115 | 20480 116 | 20352 117 | 20352 118 | 20352 119 | 20352 120 | 20224 121 | 20224 122 | 20224 123 | 20096 124 | 20096 125 | 19968 126 | 19840 127 | 19712 128 | 19584 129 | 19456 130 | 19584 131 | 19584 132 | 19456 133 | 19456 134 | 19328 135 | 19328 136 | 19456 137 | 19456 138 | 19328 139 | 19328 140 | 19200 141 | 19200 142 | 19200 143 | 19072 144 | 19072 145 | 18944 146 | 18816 147 | 18688 148 | 18560 149 | 18432 150 | 18304 151 | 18304 152 | 18176 153 | 18176 154 | 18176 155 | 18304 156 | 18304 157 | 18432 158 | 18560 159 | 18432 160 | 18176 161 | 17920 162 | 17920 163 | 17792 164 | 17792 165 | 17664 166 | 17664 167 | 17536 168 | 17536 169 | 17408 170 | 17408 171 | 17280 172 | 17280 173 | 17280 174 | 17152 175 | 17152 176 | 17152 177 | 17152 178 | 17024 179 | 17024 180 | 16896 181 | 16896 182 | 16896 183 | 16768 184 | 16768 185 | 16640 186 | 16640 187 | 16512 188 | 16512 189 | 16384 190 | 16256 191 | 16128 192 | 16000 193 | 15872 194 | 15744 195 | 15616 196 | 15488 197 | 15360 198 | 15488 199 | 15360 200 | 15232 201 | 15360 202 | 15232 203 | 15104 204 | 14976 205 | 14336 206 | 14336 207 | 14592 208 | 14464 209 | 13824 210 | 13824 211 | 13568 212 | 13568 213 | 13440 214 | 13312 215 | 13184 216 | 13056 217 | 13056 218 | 13056 219 | 12928 220 | 12800 221 | 12672 222 | 12672 223 | 12544 224 | 12416 225 | 12288 226 | 12160 227 | 11904 228 | 11776 229 | 11571 230 | 11520 231 | 11392 232 | 11136 233 | 10905 234 | 10752 235 | 10624 236 | 10444 237 | 10240 238 | 9984 239 | 9728 240 | 9472 241 | 9216 242 | 8960 243 | 8704 244 | 8448 245 | 8192 246 | 7936 247 | 7680 248 | 7424 249 | 7168 250 | 6400 251 | 5632 252 | 4864 253 | 3584 254 | 1536 255 | 0 256 | 0 257 | -------------------------------------------------------------------------------- /telecom/fbital00/fbital00.c: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | /******************************************************************************* 11 | Includes 12 | *******************************************************************************/ 13 | #include "algo.h" 14 | 15 | /******************************************************************************* 16 | Functions 17 | *******************************************************************************/ 18 | /*------------------------------------------------------------------------------ 19 | * FUNC : FxpBitAllocation 20 | * 21 | * DESC : 22 | * Allocate BitsPerDMTSymbol over a set (size = NumberOfCarriers) of carriers 23 | * using a "water level" algorithm. 24 | * The SNR profile in dB is contained in the input array: CarrierSNRdB, the bit 25 | * allocation results are returned in the output array: CarrierBitAllocation. 26 | * Upon start WaterLeveldB contains the initial water level, upon exit it 27 | * contains the final water level. 28 | * 29 | * Requires precomputed bit allocation lookup table (AllocationMap). 30 | * 31 | * The range of CarrierSNR (dB) [-64.0, 63.998] (float) 32 | * is represented by the range [-32768, 32767] (fixed) 33 | * 34 | * RETURNS : 35 | * ---------------------------------------------------------------------------*/ 36 | 37 | void 38 | fxpBitAllocation ( 39 | e_s16 *CarrierSNRdB, /* input data */ 40 | e_s16 *CarrierBitAllocation, /* output data */ 41 | e_u16 NumberOfCarriers, /* size of input data */ 42 | e_s16 WaterLeveldB_in, /* Starting water level in dB */ 43 | e_s16 *WaterLeveldB_out, /* Final water level in dB */ 44 | e_s16 *AllocationMap, /* Lookup Table */ 45 | e_u16 BitsPerDMTSymbol, /* total bits for allocation */ 46 | size_t loop_cnt 47 | 48 | ) 49 | 50 | { 51 | e_u16 TotalBits; 52 | e_u16 CarrierBits; 53 | e_s16 ccb; 54 | e_s32 DeltadB; 55 | e_s16 l_WaterLeveldB; 56 | 57 | /* Make a working copy */ 58 | l_WaterLeveldB = WaterLeveldB_in; 59 | 60 | do { 61 | /* Allocate bits based on current water level */ 62 | TotalBits = 0; 63 | for (ccb = 0; ccb < NumberOfCarriers; ccb++) { 64 | DeltadB = CarrierSNRdB[ccb] - l_WaterLeveldB; 65 | 66 | /* Check if any bits can be allocated to this carrier */ 67 | if (DeltadB < 0) { 68 | CarrierBits = 0; 69 | } 70 | else { 71 | if (DeltadB > 32767) { 72 | CarrierBits = MAX_BITS_PER_CARRIER; 73 | } 74 | else { 75 | CarrierBits = AllocationMap[(DeltadB >> 6)]; 76 | } 77 | 78 | /* Limit per BitsPerDMTSymbol */ 79 | /* Needed to insure convergence */ 80 | if ((CarrierBits + TotalBits) > BitsPerDMTSymbol) { 81 | CarrierBits = BitsPerDMTSymbol - TotalBits; 82 | } 83 | } 84 | 85 | /* Assign bits to carrier */ 86 | CarrierBitAllocation[ccb] = CarrierBits; 87 | TotalBits += CarrierBits; 88 | } 89 | 90 | /* Update water level */ 91 | /* bug 90, 121 92 | l_WaterLeveldB += STEP_SIZE * 3 * 93 | ((e_s16)(TotalBits - BitsPerDMTSymbol)) / NumberOfCarriers; 94 | */ 95 | l_WaterLeveldB += (e_s32)STEP_SIZE * 3 * 96 | ((e_s16)TotalBits - (e_s16)BitsPerDMTSymbol) /(e_s16) NumberOfCarriers; 97 | 98 | 99 | } while (TotalBits != BitsPerDMTSymbol); 100 | 101 | /* Store the result back to the caller */ 102 | *WaterLeveldB_out = l_WaterLeveldB; 103 | 104 | } 105 | 106 | 107 | -------------------------------------------------------------------------------- /telecom/fft00/algo.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | #ifndef ALGO_H 11 | #define ALGO_H 12 | 13 | /******************************************************************************* 14 | Includes 15 | *******************************************************************************/ 16 | #include "thlib.h" 17 | 18 | /******************************************************************************* 19 | Defines 20 | *******************************************************************************/ 21 | 22 | #define MAX_FFT_SIZE 256 /* changed to 256 because that is what it really is arw 02/23/00 */ 23 | 24 | /* Compile time Data set select for uuencode: 25 | * DATA_1 or DATA_2 or DATA_3 26 | * DATA_3 is default 27 | */ 28 | #if (!defined(DATA_1) && !defined(DATA_2) && !defined(DATA_3)) 29 | #define DATA_3 30 | #endif 31 | 32 | /* 33 | * Use interleaved representation -- you need to decide on this yourself!! arw/ECL 34 | */ 35 | 36 | /* Allow settings by compiler define */ 37 | #ifndef SET_INTERLEAVE 38 | 39 | /* default, case. */ 40 | #if (!defined(C_INTERLEAVED) && !defined(D_INTERLEAVED)) 41 | #define C_INTERLEAVED 42 | #define D_INTERLEAVED 43 | #endif 44 | 45 | #endif 46 | 47 | /* 48 | * TRIG_SCALE_FACTOR is used for greatest twiddle factor precision 49 | */ 50 | #define TRIG_SCALE_FACTOR 32768 51 | 52 | /* 53 | * BUTTERFLY_SCALE_FACTOR = log2(TRIG_SCALE_FACTOR) is used to 54 | * accomodate accumulator size limit of 32 bits 55 | */ 56 | #define BUTTERFLY_SCALE_FACTOR 15 57 | 58 | /* 59 | * STAGE_SCALE_FACTOR is used to prevent overflow from 60 | * accumulation at each processing stage 61 | */ 62 | #define STAGE_SCALE_FACTOR 1 63 | #define DATA_SIZE_EXPONENT 8 64 | 65 | /* 66 | * IFFT_SCALE_FACTOR = 1 provides for 1/N ifft output scaling 67 | * IFFT_SCALE_FACTOR = 0 disables 1/N ifft output scaling 68 | */ 69 | #define IFFT_SCALE_FACTOR 0 70 | 71 | 72 | /******************************************************************************* 73 | TypeDefs 74 | *******************************************************************************/ 75 | 76 | /******************************************************************************* 77 | Global Variables 78 | *******************************************************************************/ 79 | #ifndef ALGO_GLOBALS /* Don't define these twice! */ 80 | #define ALGO_GLOBALS 81 | #endif /* ALGO_GLOBALS */ 82 | 83 | /******************************************************************************* 84 | Function Prototypes 85 | *******************************************************************************/ 86 | 87 | 88 | n_int ipow(n_int x, n_int y); 89 | 90 | void 91 | fxpfft ( 92 | e_s16 *InRealData, /* real part of input data */ 93 | e_s16 *InImagData, /* imaginary part of input data */ 94 | e_s16 *OutRealData, /* real part of output data */ 95 | e_s16 *OutImagData, /* imaginary part of output data */ 96 | e_s16 DataSizeExponent, /* size of data = 2**DataSizeExponent */ 97 | e_s16 *SineV, /* Sine table */ 98 | e_s16 *CosineV, /* Cosine table */ 99 | e_s16 *BitRevInd /* bit reversal indicies */ 100 | ); 101 | 102 | void 103 | fxpifft ( 104 | e_s16 *InRealData, /* real part of input data */ 105 | e_s16 *InImagData, /* imaginary part of input data */ 106 | e_s16 *OutRealData, /* real part of output data */ 107 | e_s16 *OutImagData, /* imaginary part of output data */ 108 | e_s16 DataSizeExponent, /* size of data = 2**DataSizeExponent */ 109 | e_s16 *SineV, /* Sine table */ 110 | e_s16 *CosineV, /* Cosine table */ 111 | e_s16 *BitRevInd /* bit reversal indicies */ 112 | ); 113 | 114 | 115 | #endif /* ALGO_H */ 116 | -------------------------------------------------------------------------------- /telecom/fft00/datasets/brind256i.dat: -------------------------------------------------------------------------------- 1 | 0 , 2 | 128 , 3 | 64 , 4 | 192 , 5 | 32 , 6 | 160 , 7 | 96 , 8 | 224 , 9 | 16 , 10 | 144 , 11 | 80 , 12 | 208 , 13 | 48 , 14 | 176 , 15 | 112 , 16 | 240 , 17 | 8 , 18 | 136 , 19 | 72 , 20 | 200 , 21 | 40 , 22 | 168 , 23 | 104 , 24 | 232 , 25 | 24 , 26 | 152 , 27 | 88 , 28 | 216 , 29 | 56 , 30 | 184 , 31 | 120 , 32 | 248 , 33 | 4 , 34 | 132 , 35 | 68 , 36 | 196 , 37 | 36 , 38 | 164 , 39 | 100 , 40 | 228 , 41 | 20 , 42 | 148 , 43 | 84 , 44 | 212 , 45 | 52 , 46 | 180 , 47 | 116 , 48 | 244 , 49 | 12 , 50 | 140 , 51 | 76 , 52 | 204 , 53 | 44 , 54 | 172 , 55 | 108 , 56 | 236 , 57 | 28 , 58 | 156 , 59 | 92 , 60 | 220 , 61 | 60 , 62 | 188 , 63 | 124 , 64 | 252 , 65 | 2 , 66 | 130 , 67 | 66 , 68 | 194 , 69 | 34 , 70 | 162 , 71 | 98 , 72 | 226 , 73 | 18 , 74 | 146 , 75 | 82 , 76 | 210 , 77 | 50 , 78 | 178 , 79 | 114 , 80 | 242 , 81 | 10 , 82 | 138 , 83 | 74 , 84 | 202 , 85 | 42 , 86 | 170 , 87 | 106 , 88 | 234 , 89 | 26 , 90 | 154 , 91 | 90 , 92 | 218 , 93 | 58 , 94 | 186 , 95 | 122 , 96 | 250 , 97 | 6 , 98 | 134 , 99 | 70 , 100 | 198 , 101 | 38 , 102 | 166 , 103 | 102 , 104 | 230 , 105 | 22 , 106 | 150 , 107 | 86 , 108 | 214 , 109 | 54 , 110 | 182 , 111 | 118 , 112 | 246 , 113 | 14 , 114 | 142 , 115 | 78 , 116 | 206 , 117 | 46 , 118 | 174 , 119 | 110 , 120 | 238 , 121 | 30 , 122 | 158 , 123 | 94 , 124 | 222 , 125 | 62 , 126 | 190 , 127 | 126 , 128 | 254 , 129 | 1 , 130 | 129 , 131 | 65 , 132 | 193 , 133 | 33 , 134 | 161 , 135 | 97 , 136 | 225 , 137 | 17 , 138 | 145 , 139 | 81 , 140 | 209 , 141 | 49 , 142 | 177 , 143 | 113 , 144 | 241 , 145 | 9 , 146 | 137 , 147 | 73 , 148 | 201 , 149 | 41 , 150 | 169 , 151 | 105 , 152 | 233 , 153 | 25 , 154 | 153 , 155 | 89 , 156 | 217 , 157 | 57 , 158 | 185 , 159 | 121 , 160 | 249 , 161 | 5 , 162 | 133 , 163 | 69 , 164 | 197 , 165 | 37 , 166 | 165 , 167 | 101 , 168 | 229 , 169 | 21 , 170 | 149 , 171 | 85 , 172 | 213 , 173 | 53 , 174 | 181 , 175 | 117 , 176 | 245 , 177 | 13 , 178 | 141 , 179 | 77 , 180 | 205 , 181 | 45 , 182 | 173 , 183 | 109 , 184 | 237 , 185 | 29 , 186 | 157 , 187 | 93 , 188 | 221 , 189 | 61 , 190 | 189 , 191 | 125 , 192 | 253 , 193 | 3 , 194 | 131 , 195 | 67 , 196 | 195 , 197 | 35 , 198 | 163 , 199 | 99 , 200 | 227 , 201 | 19 , 202 | 147 , 203 | 83 , 204 | 211 , 205 | 51 , 206 | 179 , 207 | 115 , 208 | 243 , 209 | 11 , 210 | 139 , 211 | 75 , 212 | 203 , 213 | 43 , 214 | 171 , 215 | 107 , 216 | 235 , 217 | 27 , 218 | 155 , 219 | 91 , 220 | 219 , 221 | 59 , 222 | 187 , 223 | 123 , 224 | 251 , 225 | 7 , 226 | 135 , 227 | 71 , 228 | 199 , 229 | 39 , 230 | 167 , 231 | 103 , 232 | 231 , 233 | 23 , 234 | 151 , 235 | 87 , 236 | 215 , 237 | 55 , 238 | 183 , 239 | 119 , 240 | 247 , 241 | 15 , 242 | 143 , 243 | 79 , 244 | 207 , 245 | 47 , 246 | 175 , 247 | 111 , 248 | 239 , 249 | 31 , 250 | 159 , 251 | 95 , 252 | 223 , 253 | 63 , 254 | 191 , 255 | 127 , 256 | 255 257 | 258 | -------------------------------------------------------------------------------- /telecom/fft00/datasets/brind256t.dat: -------------------------------------------------------------------------------- 1 | 0 2 | 128 3 | 64 4 | 192 5 | 32 6 | 160 7 | 96 8 | 224 9 | 16 10 | 144 11 | 80 12 | 208 13 | 48 14 | 176 15 | 112 16 | 240 17 | 8 18 | 136 19 | 72 20 | 200 21 | 40 22 | 168 23 | 104 24 | 232 25 | 24 26 | 152 27 | 88 28 | 216 29 | 56 30 | 184 31 | 120 32 | 248 33 | 4 34 | 132 35 | 68 36 | 196 37 | 36 38 | 164 39 | 100 40 | 228 41 | 20 42 | 148 43 | 84 44 | 212 45 | 52 46 | 180 47 | 116 48 | 244 49 | 12 50 | 140 51 | 76 52 | 204 53 | 44 54 | 172 55 | 108 56 | 236 57 | 28 58 | 156 59 | 92 60 | 220 61 | 60 62 | 188 63 | 124 64 | 252 65 | 2 66 | 130 67 | 66 68 | 194 69 | 34 70 | 162 71 | 98 72 | 226 73 | 18 74 | 146 75 | 82 76 | 210 77 | 50 78 | 178 79 | 114 80 | 242 81 | 10 82 | 138 83 | 74 84 | 202 85 | 42 86 | 170 87 | 106 88 | 234 89 | 26 90 | 154 91 | 90 92 | 218 93 | 58 94 | 186 95 | 122 96 | 250 97 | 6 98 | 134 99 | 70 100 | 198 101 | 38 102 | 166 103 | 102 104 | 230 105 | 22 106 | 150 107 | 86 108 | 214 109 | 54 110 | 182 111 | 118 112 | 246 113 | 14 114 | 142 115 | 78 116 | 206 117 | 46 118 | 174 119 | 110 120 | 238 121 | 30 122 | 158 123 | 94 124 | 222 125 | 62 126 | 190 127 | 126 128 | 254 129 | 1 130 | 129 131 | 65 132 | 193 133 | 33 134 | 161 135 | 97 136 | 225 137 | 17 138 | 145 139 | 81 140 | 209 141 | 49 142 | 177 143 | 113 144 | 241 145 | 9 146 | 137 147 | 73 148 | 201 149 | 41 150 | 169 151 | 105 152 | 233 153 | 25 154 | 153 155 | 89 156 | 217 157 | 57 158 | 185 159 | 121 160 | 249 161 | 5 162 | 133 163 | 69 164 | 197 165 | 37 166 | 165 167 | 101 168 | 229 169 | 21 170 | 149 171 | 85 172 | 213 173 | 53 174 | 181 175 | 117 176 | 245 177 | 13 178 | 141 179 | 77 180 | 205 181 | 45 182 | 173 183 | 109 184 | 237 185 | 29 186 | 157 187 | 93 188 | 221 189 | 61 190 | 189 191 | 125 192 | 253 193 | 3 194 | 131 195 | 67 196 | 195 197 | 35 198 | 163 199 | 99 200 | 227 201 | 19 202 | 147 203 | 83 204 | 211 205 | 51 206 | 179 207 | 115 208 | 243 209 | 11 210 | 139 211 | 75 212 | 203 213 | 43 214 | 171 215 | 107 216 | 235 217 | 27 218 | 155 219 | 91 220 | 219 221 | 59 222 | 187 223 | 123 224 | 251 225 | 7 226 | 135 227 | 71 228 | 199 229 | 39 230 | 167 231 | 103 232 | 231 233 | 23 234 | 151 235 | 87 236 | 215 237 | 55 238 | 183 239 | 119 240 | 247 241 | 15 242 | 143 243 | 79 244 | 207 245 | 47 246 | 175 247 | 111 248 | 239 249 | 31 250 | 159 251 | 95 252 | 223 253 | 63 254 | 191 255 | 127 256 | 255 257 | 258 | -------------------------------------------------------------------------------- /telecom/fft00/datasets/cstable256i.dat: -------------------------------------------------------------------------------- 1 | 32765 , 402 , 2 | 32745 , 1206 , 3 | 32706 , 2009 , 4 | 32647 , 2811 , 5 | 32568 , 3611 , 6 | 32469 , 4409 , 7 | 32351 , 5205 , 8 | 32214 , 5997 , 9 | 32057 , 6786 , 10 | 31881 , 7571 , 11 | 31685 , 8351 , 12 | 31471 , 9126 , 13 | 31237 , 9896 , 14 | 30985 , 10659 , 15 | 30714 , 11416 , 16 | 30425 , 12167 , 17 | 30117 , 12910 , 18 | 29791 , 13645 , 19 | 29447 , 14372 , 20 | 29086 , 15090 , 21 | 28707 , 15800 , 22 | 28310 , 16499 , 23 | 27897 , 17189 , 24 | 27466 , 17869 , 25 | 27020 , 18537 , 26 | 26557 , 19195 , 27 | 26077 , 19841 , 28 | 25583 , 20475 , 29 | 25073 , 21097 , 30 | 24547 , 21706 , 31 | 24007 , 22301 , 32 | 23453 , 22884 , 33 | 22884 , 23453 , 34 | 22301 , 24007 , 35 | 21706 , 24547 , 36 | 21097 , 25073 , 37 | 20475 , 25583 , 38 | 19841 , 26077 , 39 | 19195 , 26557 , 40 | 18537 , 27020 , 41 | 17869 , 27466 , 42 | 17189 , 27897 , 43 | 16499 , 28310 , 44 | 15800 , 28707 , 45 | 15090 , 29086 , 46 | 14372 , 29447 , 47 | 13645 , 29791 , 48 | 12910 , 30117 , 49 | 12167 , 30425 , 50 | 11416 , 30714 , 51 | 10659 , 30985 , 52 | 9896 , 31237 , 53 | 9126 , 31471 , 54 | 8351 , 31685 , 55 | 7571 , 31881 , 56 | 6786 , 32057 , 57 | 5997 , 32214 , 58 | 5205 , 32351 , 59 | 4409 , 32469 , 60 | 3611 , 32568 , 61 | 2811 , 32647 , 62 | 2009 , 32706 , 63 | 1206 , 32745 , 64 | 402 , 32765 , 65 | -402 , 32765 , 66 | -1206 , 32745 , 67 | -2009 , 32706 , 68 | -2811 , 32647 , 69 | -3611 , 32568 , 70 | -4409 , 32469 , 71 | -5205 , 32351 , 72 | -5997 , 32214 , 73 | -6786 , 32057 , 74 | -7571 , 31881 , 75 | -8351 , 31685 , 76 | -9126 , 31471 , 77 | -9896 , 31237 , 78 | -10659 , 30985 , 79 | -11416 , 30714 , 80 | -12167 , 30425 , 81 | -12910 , 30117 , 82 | -13645 , 29791 , 83 | -14372 , 29447 , 84 | -15090 , 29086 , 85 | -15800 , 28707 , 86 | -16499 , 28310 , 87 | -17189 , 27897 , 88 | -17869 , 27466 , 89 | -18537 , 27020 , 90 | -19195 , 26557 , 91 | -19841 , 26077 , 92 | -20475 , 25583 , 93 | -21097 , 25073 , 94 | -21706 , 24547 , 95 | -22301 , 24007 , 96 | -22884 , 23453 , 97 | -23453 , 22884 , 98 | -24007 , 22301 , 99 | -24547 , 21706 , 100 | -25073 , 21097 , 101 | -25583 , 20475 , 102 | -26077 , 19841 , 103 | -26557 , 19195 , 104 | -27020 , 18537 , 105 | -27466 , 17869 , 106 | -27897 , 17189 , 107 | -28310 , 16499 , 108 | -28707 , 15800 , 109 | -29086 , 15090 , 110 | -29447 , 14372 , 111 | -29791 , 13645 , 112 | -30117 , 12910 , 113 | -30425 , 12167 , 114 | -30714 , 11416 , 115 | -30985 , 10659 , 116 | -31237 , 9896 , 117 | -31471 , 9126 , 118 | -31685 , 8351 , 119 | -31881 , 7571 , 120 | -32057 , 6786 , 121 | -32214 , 5997 , 122 | -32351 , 5205 , 123 | -32469 , 4409 , 124 | -32568 , 3611 , 125 | -32647 , 2811 , 126 | -32706 , 2009 , 127 | -32745 , 1206 , 128 | -32765, 402 129 | -------------------------------------------------------------------------------- /telecom/fft00/datasets/ctable256i.dat: -------------------------------------------------------------------------------- 1 | 32765 , 2 | 32745 , 3 | 32706 , 4 | 32647 , 5 | 32568 , 6 | 32469 , 7 | 32351 , 8 | 32214 , 9 | 32057 , 10 | 31881 , 11 | 31685 , 12 | 31471 , 13 | 31237 , 14 | 30985 , 15 | 30714 , 16 | 30425 , 17 | 30117 , 18 | 29791 , 19 | 29447 , 20 | 29086 , 21 | 28707 , 22 | 28310 , 23 | 27897 , 24 | 27466 , 25 | 27020 , 26 | 26557 , 27 | 26077 , 28 | 25583 , 29 | 25073 , 30 | 24547 , 31 | 24007 , 32 | 23453 , 33 | 22884 , 34 | 22301 , 35 | 21706 , 36 | 21097 , 37 | 20475 , 38 | 19841 , 39 | 19195 , 40 | 18537 , 41 | 17869 , 42 | 17189 , 43 | 16499 , 44 | 15800 , 45 | 15090 , 46 | 14372 , 47 | 13645 , 48 | 12910 , 49 | 12167 , 50 | 11416 , 51 | 10659 , 52 | 9896 , 53 | 9126 , 54 | 8351 , 55 | 7571 , 56 | 6786 , 57 | 5997 , 58 | 5205 , 59 | 4409 , 60 | 3611 , 61 | 2811 , 62 | 2009 , 63 | 1206 , 64 | 402 , 65 | -402 , 66 | -1206 , 67 | -2009 , 68 | -2811 , 69 | -3611 , 70 | -4409 , 71 | -5205 , 72 | -5997 , 73 | -6786 , 74 | -7571 , 75 | -8351 , 76 | -9126 , 77 | -9896 , 78 | -10659 , 79 | -11416 , 80 | -12167 , 81 | -12910 , 82 | -13645 , 83 | -14372 , 84 | -15090 , 85 | -15800 , 86 | -16499 , 87 | -17189 , 88 | -17869 , 89 | -18537 , 90 | -19195 , 91 | -19841 , 92 | -20475 , 93 | -21097 , 94 | -21706 , 95 | -22301 , 96 | -22884 , 97 | -23453 , 98 | -24007 , 99 | -24547 , 100 | -25073 , 101 | -25583 , 102 | -26077 , 103 | -26557 , 104 | -27020 , 105 | -27466 , 106 | -27897 , 107 | -28310 , 108 | -28707 , 109 | -29086 , 110 | -29447 , 111 | -29791 , 112 | -30117 , 113 | -30425 , 114 | -30714 , 115 | -30985 , 116 | -31237 , 117 | -31471 , 118 | -31685 , 119 | -31881 , 120 | -32057 , 121 | -32214 , 122 | -32351 , 123 | -32469 , 124 | -32568 , 125 | -32647 , 126 | -32706 , 127 | -32745 , 128 | -32765 129 | -------------------------------------------------------------------------------- /telecom/fft00/datasets/ctable256t.dat: -------------------------------------------------------------------------------- 1 | 32765 2 | 32745 3 | 32706 4 | 32647 5 | 32568 6 | 32469 7 | 32351 8 | 32214 9 | 32057 10 | 31881 11 | 31685 12 | 31471 13 | 31237 14 | 30985 15 | 30714 16 | 30425 17 | 30117 18 | 29791 19 | 29447 20 | 29086 21 | 28707 22 | 28310 23 | 27897 24 | 27466 25 | 27020 26 | 26557 27 | 26077 28 | 25583 29 | 25073 30 | 24547 31 | 24007 32 | 23453 33 | 22884 34 | 22301 35 | 21706 36 | 21097 37 | 20475 38 | 19841 39 | 19195 40 | 18537 41 | 17869 42 | 17189 43 | 16499 44 | 15800 45 | 15090 46 | 14372 47 | 13645 48 | 12910 49 | 12167 50 | 11416 51 | 10659 52 | 9896 53 | 9126 54 | 8351 55 | 7571 56 | 6786 57 | 5997 58 | 5205 59 | 4409 60 | 3611 61 | 2811 62 | 2009 63 | 1206 64 | 402 65 | -402 66 | -1206 67 | -2009 68 | -2811 69 | -3611 70 | -4409 71 | -5205 72 | -5997 73 | -6786 74 | -7571 75 | -8351 76 | -9126 77 | -9896 78 | -10659 79 | -11416 80 | -12167 81 | -12910 82 | -13645 83 | -14372 84 | -15090 85 | -15800 86 | -16499 87 | -17189 88 | -17869 89 | -18537 90 | -19195 91 | -19841 92 | -20475 93 | -21097 94 | -21706 95 | -22301 96 | -22884 97 | -23453 98 | -24007 99 | -24547 100 | -25073 101 | -25583 102 | -26077 103 | -26557 104 | -27020 105 | -27466 106 | -27897 107 | -28310 108 | -28707 109 | -29086 110 | -29447 111 | -29791 112 | -30117 113 | -30425 114 | -30714 115 | -30985 116 | -31237 117 | -31471 118 | -31685 119 | -31881 120 | -32057 121 | -32214 122 | -32351 123 | -32469 124 | -32568 125 | -32647 126 | -32706 127 | -32745 128 | -32765 129 | -------------------------------------------------------------------------------- /telecom/fft00/datasets/gen.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eembc/telebench/ae6fc3399e1d705b157f5926aa3c4cee5f53a52b/telecom/fft00/datasets/gen.exe -------------------------------------------------------------------------------- /telecom/fft00/datasets/golden_sine.dat: -------------------------------------------------------------------------------- 1 | -0.018788163, -0.007358697, 2 | -0.002191952, -0.003835917, 3 | -0.001487396, -0.003366213, 4 | -0.001643964, -0.000704556, 5 | -0.00039142, -0.002974793, 6 | -0.001252544, -0.001722248, 7 | -0.000469704, -0.002113668, 8 | -0.00078284, -0.001878816, 9 | -0.000156568, -0.002661656, 10 | -0.00039142, -0.002270236, 11 | 0, -0.002818225, 12 | -0.00039142, -0.002035384, 13 | 0.000234852, -0.004070769, 14 | -0.00078284, 0.002270236, 15 | -7.8284E-05, -0.002035384, 16 | -0.000156568, -0.002113668, 17 | 0.000547988, -0.003053077, 18 | 7.8284E-05, -0.002739941, 19 | 0.000469704, -0.003053077, 20 | -0.000547988, 0.000626272, 21 | 0.001095976, -0.005479881, 22 | 0.000469704, -0.004305621, 23 | 0.001095976, -0.004853609, 24 | 0.00078284, -0.004697041, 25 | 0.001409112, -0.005558165, 26 | 0.001252544, -0.005558165, 27 | 0.00156568, -0.005949585, 28 | 0.001330828, -0.005166745, 29 | 0.002270236, -0.007280413, 30 | 0.00156568, -0.006184437, 31 | 0.002583372, -0.007358697, 32 | 0.00234852, -0.007202129, 33 | 0.003366213, -0.008532958, 34 | 0.003287929, -0.008611242, 35 | 0.003757633, -0.009394082, 36 | 0.002661656, -0.006810709, 37 | 0.005636449, -0.012760294, 38 | 0.005323313, -0.012212306, 39 | 0.006341005, -0.013699703, 40 | 0.006106153, -0.014247691, 41 | 0.008219822, -0.016517927, 42 | 0.008924378, -0.017770471, 43 | 0.010411774, -0.019727572, 44 | 0.010255206, -0.01949272, 45 | 0.015343667, -0.027399405, 46 | 0.015891655, -0.028886801, 47 | 0.021606388, -0.036558635, 48 | 0.024894317, -0.043525912, 49 | 0.038594019, -0.060513543, 50 | 0.05479881, -0.087130108, 51 | 0.106153124, -0.161499922, 52 | 0.654610928, -1, 53 | -0.170111163, 0.241349616, 54 | -0.074917802, 0.106309692, 55 | -0.050962893, 0.069203069, 56 | -0.03530609, 0.049318929, 57 | -0.031861594, 0.040472835, 58 | -0.026225145, 0.033192422, 59 | -0.022937216, 0.028182245, 60 | -0.018240175, 0.021997808, 61 | -0.019336152, 0.022702364, 62 | -0.017457335, 0.020745264, 63 | -0.016517927, 0.018240175, 64 | -0.014482543, 0.016126507, 65 | -0.014560827, 0.015187099, 66 | -0.013229998, 0.013934555, 67 | -0.012603726, 0.01268201, 68 | -0.009315798, 0.009628934, 69 | -0.01268201, 0.012212306, 70 | -0.011820886, 0.011194614, 71 | -0.011429466, 0.010176922, 72 | -0.010176922, 0.009628934, 73 | -0.010411774, 0.00915923, 74 | -0.010020354, 0.008611242, 75 | -0.00955065, 0.007984969, 76 | -0.008141537, 0.006732425, 77 | -0.00837639, 0.006575857, 78 | -0.014952247, 0.01189917, 79 | -0.010176922, 0.007671833, 80 | -0.009002662, 0.007123845, 81 | -0.009315798, 0.006419289, 82 | -0.008846094, 0.006184437, 83 | -0.00837639, 0.005636449, 84 | -0.005010177, 0.003444497, 85 | -0.009628934, 0.006027869, 86 | -0.009315798, 0.005714733, 87 | -0.008689526, 0.005323313, 88 | -0.008063253, 0.005010177, 89 | -0.008454674, 0.004697041, 90 | -0.008063253, 0.004618757, 91 | -0.007984969, 0.004383905, 92 | -0.007045561, 0.003992485, 93 | -0.007828401, 0.003835917, 94 | -0.008454674, 0.004540473, 95 | -0.007906685, 0.003914201, 96 | -0.007750117, 0.003835917, 97 | -0.008141537, 0.003366213, 98 | -0.007436981, 0.003522781, 99 | -0.007671833, 0.003444497, 100 | -0.005871301, 0.002974793, 101 | -0.007906685, 0.002583372, 102 | -0.008141537, 0.004149053, 103 | -0.008141537, 0.003131361, 104 | -0.006341005, 0.002191952, 105 | -0.006027869, 0.003366213, 106 | -0.007515265, 0.002113668, 107 | -0.006497573, 0.001643964, 108 | -0.006732425, 0.001878816, 109 | -0.006810709, 0.002426804, 110 | -0.00876781, 0.002191952, 111 | -0.007202129, 0.002191952, 112 | -0.006810709, 0.001643964, 113 | -0.006732425, 0.001800532, 114 | -0.007045561, 0.001409112, 115 | -0.006106153, 0.001252544, 116 | -0.00234852, 0.00039142, 117 | -0.00837639, 0.001643964, 118 | -0.007750117, 0.001330828, 119 | -0.007436981, 0.001252544, 120 | -0.007280413, 0.001252544, 121 | -0.007123845, 0.00117426, 122 | -0.007358697, 0.00078284, 123 | -0.006888993, 0.00078284, 124 | -0.006732425, 0.000704556, 125 | -0.007123845, 0.000939408, 126 | -0.008219822, 0.000547988, 127 | -0.007280413, 0.000547988, 128 | -0.007123845, 0.000313136, 129 | -------------------------------------------------------------------------------- /telecom/fft00/datasets/stable256i.dat: -------------------------------------------------------------------------------- 1 | 402 , 2 | 1206 , 3 | 2009 , 4 | 2811 , 5 | 3611 , 6 | 4409 , 7 | 5205 , 8 | 5997 , 9 | 6786 , 10 | 7571 , 11 | 8351 , 12 | 9126 , 13 | 9896 , 14 | 10659 , 15 | 11416 , 16 | 12167 , 17 | 12910 , 18 | 13645 , 19 | 14372 , 20 | 15090 , 21 | 15800 , 22 | 16499 , 23 | 17189 , 24 | 17869 , 25 | 18537 , 26 | 19195 , 27 | 19841 , 28 | 20475 , 29 | 21097 , 30 | 21706 , 31 | 22301 , 32 | 22884 , 33 | 23453 , 34 | 24007 , 35 | 24547 , 36 | 25073 , 37 | 25583 , 38 | 26077 , 39 | 26557 , 40 | 27020 , 41 | 27466 , 42 | 27897 , 43 | 28310 , 44 | 28707 , 45 | 29086 , 46 | 29447 , 47 | 29791 , 48 | 30117 , 49 | 30425 , 50 | 30714 , 51 | 30985 , 52 | 31237 , 53 | 31471 , 54 | 31685 , 55 | 31881 , 56 | 32057 , 57 | 32214 , 58 | 32351 , 59 | 32469 , 60 | 32568 , 61 | 32647 , 62 | 32706 , 63 | 32745 , 64 | 32765 , 65 | 32765 , 66 | 32745 , 67 | 32706 , 68 | 32647 , 69 | 32568 , 70 | 32469 , 71 | 32351 , 72 | 32214 , 73 | 32057 , 74 | 31881 , 75 | 31685 , 76 | 31471 , 77 | 31237 , 78 | 30985 , 79 | 30714 , 80 | 30425 , 81 | 30117 , 82 | 29791 , 83 | 29447 , 84 | 29086 , 85 | 28707 , 86 | 28310 , 87 | 27897 , 88 | 27466 , 89 | 27020 , 90 | 26557 , 91 | 26077 , 92 | 25583 , 93 | 25073 , 94 | 24547 , 95 | 24007 , 96 | 23453 , 97 | 22884 , 98 | 22301 , 99 | 21706 , 100 | 21097 , 101 | 20475 , 102 | 19841 , 103 | 19195 , 104 | 18537 , 105 | 17869 , 106 | 17189 , 107 | 16499 , 108 | 15800 , 109 | 15090 , 110 | 14372 , 111 | 13645 , 112 | 12910 , 113 | 12167 , 114 | 11416 , 115 | 10659 , 116 | 9896 , 117 | 9126 , 118 | 8351 , 119 | 7571 , 120 | 6786 , 121 | 5997 , 122 | 5205 , 123 | 4409 , 124 | 3611 , 125 | 2811 , 126 | 2009 , 127 | 1206 , 128 | 402 129 | -------------------------------------------------------------------------------- /telecom/fft00/datasets/stable256t.dat: -------------------------------------------------------------------------------- 1 | 402 2 | 1206 3 | 2009 4 | 2811 5 | 3611 6 | 4409 7 | 5205 8 | 5997 9 | 6786 10 | 7571 11 | 8351 12 | 9126 13 | 9896 14 | 10659 15 | 11416 16 | 12167 17 | 12910 18 | 13645 19 | 14372 20 | 15090 21 | 15800 22 | 16499 23 | 17189 24 | 17869 25 | 18537 26 | 19195 27 | 19841 28 | 20475 29 | 21097 30 | 21706 31 | 22301 32 | 22884 33 | 23453 34 | 24007 35 | 24547 36 | 25073 37 | 25583 38 | 26077 39 | 26557 40 | 27020 41 | 27466 42 | 27897 43 | 28310 44 | 28707 45 | 29086 46 | 29447 47 | 29791 48 | 30117 49 | 30425 50 | 30714 51 | 30985 52 | 31237 53 | 31471 54 | 31685 55 | 31881 56 | 32057 57 | 32214 58 | 32351 59 | 32469 60 | 32568 61 | 32647 62 | 32706 63 | 32745 64 | 32765 65 | 32765 66 | 32745 67 | 32706 68 | 32647 69 | 32568 70 | 32469 71 | 32351 72 | 32214 73 | 32057 74 | 31881 75 | 31685 76 | 31471 77 | 31237 78 | 30985 79 | 30714 80 | 30425 81 | 30117 82 | 29791 83 | 29447 84 | 29086 85 | 28707 86 | 28310 87 | 27897 88 | 27466 89 | 27020 90 | 26557 91 | 26077 92 | 25583 93 | 25073 94 | 24547 95 | 24007 96 | 23453 97 | 22884 98 | 22301 99 | 21706 100 | 21097 101 | 20475 102 | 19841 103 | 19195 104 | 18537 105 | 17869 106 | 17189 107 | 16499 108 | 15800 109 | 15090 110 | 14372 111 | 13645 112 | 12910 113 | 12167 114 | 11416 115 | 10659 116 | 9896 117 | 9126 118 | 8351 119 | 7571 120 | 6786 121 | 5997 122 | 5205 123 | 4409 124 | 3611 125 | 2811 126 | 2009 127 | 1206 128 | 402 129 | -------------------------------------------------------------------------------- /telecom/fft00/datasets/xsine256i.dat: -------------------------------------------------------------------------------- 1 | 0, 0, 2 | 31164, 0, 3 | 19260, 0, 4 | -19260, 0, 5 | -31164, 0, 6 | 0, 0, 7 | 31164, 0, 8 | 19260, 0, 9 | -19260, 0, 10 | -31164, 0, 11 | 0, 0, 12 | 31164, 0, 13 | 19260, 0, 14 | -19261, 0, 15 | -31164, 0, 16 | 0, 0, 17 | 31164, 0, 18 | 19259, 0, 19 | -19261, 0, 20 | -31163, 0, 21 | 0, 0, 22 | 31164, 0, 23 | 19259, 0, 24 | -19261, 0, 25 | -31163, 0, 26 | 1, 0, 27 | 31164, 0, 28 | 19259, 0, 29 | -19261, 0, 30 | -31163, 0, 31 | 1, 0, 32 | 31164, 0, 33 | 19259, 0, 34 | -19261, 0, 35 | -31163, 0, 36 | 1, 0, 37 | 31164, 0, 38 | 19259, 0, 39 | -19261, 0, 40 | -31163, 0, 41 | 1, 0, 42 | 31164, 0, 43 | 19258, 0, 44 | -19262, 0, 45 | -31163, 0, 46 | 2, 0, 47 | 31164, 0, 48 | 19258, 0, 49 | -19262, 0, 50 | -31163, 0, 51 | 2, 0, 52 | 31164, 0, 53 | 19258, 0, 54 | -19262, 0, 55 | -31163, 0, 56 | 2, 0, 57 | 31165, 0, 58 | 19258, 0, 59 | -19262, 0, 60 | -31163, 0, 61 | 2, 0, 62 | 31165, 0, 63 | 19258, 0, 64 | -19262, 0, 65 | -31163, 0, 66 | 3, 0, 67 | 31165, 0, 68 | 19258, 0, 69 | -19263, 0, 70 | -31163, 0, 71 | 3, 0, 72 | 31165, 0, 73 | 19257, 0, 74 | -19263, 0, 75 | -31163, 0, 76 | 3, 0, 77 | 31165, 0, 78 | 19257, 0, 79 | -19263, 0, 80 | -31163, 0, 81 | 3, 0, 82 | 31165, 0, 83 | 19257, 0, 84 | -19263, 0, 85 | -31163, 0, 86 | 3, 0, 87 | 31165, 0, 88 | 19257, 0, 89 | -19263, 0, 90 | -31162, 0, 91 | 4, 0, 92 | 31165, 0, 93 | 19257, 0, 94 | -19264, 0, 95 | -31162, 0, 96 | 4, 0, 97 | 31165, 0, 98 | 19256, 0, 99 | -19264, 0, 100 | -31162, 0, 101 | 4, 0, 102 | 31165, 0, 103 | 19256, 0, 104 | -19264, 0, 105 | -31162, 0, 106 | 4, 0, 107 | 31165, 0, 108 | 19256, 0, 109 | -19264, 0, 110 | -31162, 0, 111 | 5, 0, 112 | 31165, 0, 113 | 19256, 0, 114 | -19264, 0, 115 | -31162, 0, 116 | 5, 0, 117 | 31165, 0, 118 | 19256, 0, 119 | -19264, 0, 120 | -31162, 0, 121 | 5, 0, 122 | 31165, 0, 123 | 19255, 0, 124 | -19265, 0, 125 | -31162, 0, 126 | 5, 0, 127 | 31166, 0, 128 | 19255, 0, 129 | -19265, 0, 130 | -31162, 0, 131 | 6, 0, 132 | 31166, 0, 133 | 19255, 0, 134 | -19265, 0, 135 | -31162, 0, 136 | 6, 0, 137 | 31166, 0, 138 | 19255, 0, 139 | -19265, 0, 140 | -31162, 0, 141 | 6, 0, 142 | 31166, 0, 143 | 19255, 0, 144 | -19265, 0, 145 | -31162, 0, 146 | 6, 0, 147 | 31166, 0, 148 | 19255, 0, 149 | -19266, 0, 150 | -31162, 0, 151 | 6, 0, 152 | 31166, 0, 153 | 19254, 0, 154 | -19266, 0, 155 | -31162, 0, 156 | 7, 0, 157 | 31166, 0, 158 | 19254, 0, 159 | -19266, 0, 160 | -31161, 0, 161 | 7, 0, 162 | 31166, 0, 163 | 19254, 0, 164 | -19266, 0, 165 | -31161, 0, 166 | 7, 0, 167 | 31166, 0, 168 | 19254, 0, 169 | -19266, 0, 170 | -31161, 0, 171 | 7, 0, 172 | 31166, 0, 173 | 19254, 0, 174 | -19267, 0, 175 | -31161, 0, 176 | 8, 0, 177 | 31166, 0, 178 | 19253, 0, 179 | -19267, 0, 180 | -31161, 0, 181 | 8, 0, 182 | 31166, 0, 183 | 19253, 0, 184 | -19267, 0, 185 | -31161, 0, 186 | 8, 0, 187 | 31166, 0, 188 | 19253, 0, 189 | -19267, 0, 190 | -31161, 0, 191 | 8, 0, 192 | 31166, 0, 193 | 19253, 0, 194 | -19267, 0, 195 | -31161, 0, 196 | 9, 0, 197 | 31167, 0, 198 | 19253, 0, 199 | -19267, 0, 200 | -31161, 0, 201 | 9, 0, 202 | 31167, 0, 203 | 19252, 0, 204 | -19268, 0, 205 | -31161, 0, 206 | 9, 0, 207 | 31167, 0, 208 | 19252, 0, 209 | -19268, 0, 210 | -31161, 0, 211 | 9, 0, 212 | 31167, 0, 213 | 19252, 0, 214 | -19268, 0, 215 | -31161, 0, 216 | 9, 0, 217 | 31167, 0, 218 | 19252, 0, 219 | -19268, 0, 220 | -31161, 0, 221 | 10, 0, 222 | 31167, 0, 223 | 19252, 0, 224 | -19268, 0, 225 | -31161, 0, 226 | 10, 0, 227 | 31167, 0, 228 | 19252, 0, 229 | -19269, 0, 230 | -31160, 0, 231 | 10, 0, 232 | 31167, 0, 233 | 19251, 0, 234 | -19269, 0, 235 | -31160, 0, 236 | 10, 0, 237 | 31167, 0, 238 | 19251, 0, 239 | -19269, 0, 240 | -31160, 0, 241 | 11, 0, 242 | 31167, 0, 243 | 19251, 0, 244 | -19269, 0, 245 | -31160, 0, 246 | 11, 0, 247 | 31167, 0, 248 | 19251, 0, 249 | -19269, 0, 250 | -31160, 0, 251 | 11, 0, 252 | 31167, 0, 253 | 19251, 0, 254 | -19270, 0, 255 | -31160, 0, 256 | 11, 0 257 | -------------------------------------------------------------------------------- /telecom/fft00/datasets/xsine256t.dat: -------------------------------------------------------------------------------- 1 | 0 0 2 | 31164 0 3 | 19260 0 4 | -19260 0 5 | -31164 0 6 | 0 0 7 | 31164 0 8 | 19260 0 9 | -19260 0 10 | -31164 0 11 | 0 0 12 | 31164 0 13 | 19260 0 14 | -19261 0 15 | -31164 0 16 | 0 0 17 | 31164 0 18 | 19259 0 19 | -19261 0 20 | -31163 0 21 | 0 0 22 | 31164 0 23 | 19259 0 24 | -19261 0 25 | -31163 0 26 | 1 0 27 | 31164 0 28 | 19259 0 29 | -19261 0 30 | -31163 0 31 | 1 0 32 | 31164 0 33 | 19259 0 34 | -19261 0 35 | -31163 0 36 | 1 0 37 | 31164 0 38 | 19259 0 39 | -19261 0 40 | -31163 0 41 | 1 0 42 | 31164 0 43 | 19258 0 44 | -19262 0 45 | -31163 0 46 | 2 0 47 | 31164 0 48 | 19258 0 49 | -19262 0 50 | -31163 0 51 | 2 0 52 | 31164 0 53 | 19258 0 54 | -19262 0 55 | -31163 0 56 | 2 0 57 | 31165 0 58 | 19258 0 59 | -19262 0 60 | -31163 0 61 | 2 0 62 | 31165 0 63 | 19258 0 64 | -19262 0 65 | -31163 0 66 | 3 0 67 | 31165 0 68 | 19258 0 69 | -19263 0 70 | -31163 0 71 | 3 0 72 | 31165 0 73 | 19257 0 74 | -19263 0 75 | -31163 0 76 | 3 0 77 | 31165 0 78 | 19257 0 79 | -19263 0 80 | -31163 0 81 | 3 0 82 | 31165 0 83 | 19257 0 84 | -19263 0 85 | -31163 0 86 | 3 0 87 | 31165 0 88 | 19257 0 89 | -19263 0 90 | -31162 0 91 | 4 0 92 | 31165 0 93 | 19257 0 94 | -19264 0 95 | -31162 0 96 | 4 0 97 | 31165 0 98 | 19256 0 99 | -19264 0 100 | -31162 0 101 | 4 0 102 | 31165 0 103 | 19256 0 104 | -19264 0 105 | -31162 0 106 | 4 0 107 | 31165 0 108 | 19256 0 109 | -19264 0 110 | -31162 0 111 | 5 0 112 | 31165 0 113 | 19256 0 114 | -19264 0 115 | -31162 0 116 | 5 0 117 | 31165 0 118 | 19256 0 119 | -19264 0 120 | -31162 0 121 | 5 0 122 | 31165 0 123 | 19255 0 124 | -19265 0 125 | -31162 0 126 | 5 0 127 | 31166 0 128 | 19255 0 129 | -19265 0 130 | -31162 0 131 | 6 0 132 | 31166 0 133 | 19255 0 134 | -19265 0 135 | -31162 0 136 | 6 0 137 | 31166 0 138 | 19255 0 139 | -19265 0 140 | -31162 0 141 | 6 0 142 | 31166 0 143 | 19255 0 144 | -19265 0 145 | -31162 0 146 | 6 0 147 | 31166 0 148 | 19255 0 149 | -19266 0 150 | -31162 0 151 | 6 0 152 | 31166 0 153 | 19254 0 154 | -19266 0 155 | -31162 0 156 | 7 0 157 | 31166 0 158 | 19254 0 159 | -19266 0 160 | -31161 0 161 | 7 0 162 | 31166 0 163 | 19254 0 164 | -19266 0 165 | -31161 0 166 | 7 0 167 | 31166 0 168 | 19254 0 169 | -19266 0 170 | -31161 0 171 | 7 0 172 | 31166 0 173 | 19254 0 174 | -19267 0 175 | -31161 0 176 | 8 0 177 | 31166 0 178 | 19253 0 179 | -19267 0 180 | -31161 0 181 | 8 0 182 | 31166 0 183 | 19253 0 184 | -19267 0 185 | -31161 0 186 | 8 0 187 | 31166 0 188 | 19253 0 189 | -19267 0 190 | -31161 0 191 | 8 0 192 | 31166 0 193 | 19253 0 194 | -19267 0 195 | -31161 0 196 | 9 0 197 | 31167 0 198 | 19253 0 199 | -19267 0 200 | -31161 0 201 | 9 0 202 | 31167 0 203 | 19252 0 204 | -19268 0 205 | -31161 0 206 | 9 0 207 | 31167 0 208 | 19252 0 209 | -19268 0 210 | -31161 0 211 | 9 0 212 | 31167 0 213 | 19252 0 214 | -19268 0 215 | -31161 0 216 | 9 0 217 | 31167 0 218 | 19252 0 219 | -19268 0 220 | -31161 0 221 | 10 0 222 | 31167 0 223 | 19252 0 224 | -19268 0 225 | -31161 0 226 | 10 0 227 | 31167 0 228 | 19252 0 229 | -19269 0 230 | -31160 0 231 | 10 0 232 | 31167 0 233 | 19251 0 234 | -19269 0 235 | -31160 0 236 | 10 0 237 | 31167 0 238 | 19251 0 239 | -19269 0 240 | -31160 0 241 | 11 0 242 | 31167 0 243 | 19251 0 244 | -19269 0 245 | -31160 0 246 | 11 0 247 | 31167 0 248 | 19251 0 249 | -19269 0 250 | -31160 0 251 | 11 0 252 | 31167 0 253 | 19251 0 254 | -19270 0 255 | -31160 0 256 | 11 0 -------------------------------------------------------------------------------- /telecom/fft00/datasets/xspn256i.dat: -------------------------------------------------------------------------------- 1 | 3661,0, 2 | 25080,0, 3 | -3951,0, 4 | 10492,0, 5 | -14559,0, 6 | -9391,0, 7 | -2631,0, 8 | 12008,0, 9 | -10358,0, 10 | -1356,0, 11 | 17443,0, 12 | 1774,0, 13 | 3520,0, 14 | -10804,0, 15 | -10673,0, 16 | -17905,0, 17 | 26005,0, 18 | 4570,0, 19 | 2493,0, 20 | -4153,0, 21 | 5401,0, 22 | -10269,0, 23 | 895,0, 24 | -2290,0, 25 | -16734,0, 26 | 11819,0, 27 | 17241,0, 28 | 10471,0, 29 | -16808,0, 30 | 1934,0, 31 | -19916,0, 32 | 5034,0, 33 | 7225,0, 34 | 5779,0, 35 | -10326,0, 36 | 13584,0, 37 | 9335,0, 38 | -11259,0, 39 | -4890,0, 40 | -14106,0, 41 | -1244,0, 42 | 7459,0, 43 | 27823,0, 44 | -14019,0, 45 | -1145,0, 46 | -4724,0, 47 | 799,0, 48 | -10023,0, 49 | 5255,0, 50 | -5637,0, 51 | 533,0, 52 | 24392,0, 53 | 2209,0, 54 | -11521,0, 55 | -17603,0, 56 | 4774,0, 57 | -10080,0, 58 | 20151,0, 59 | 1764,0, 60 | -1848,0, 61 | -3499,0, 62 | 14655,0, 63 | -10697,0, 64 | -15238,0, 65 | 37,0, 66 | -3282,0, 67 | 15273,0, 68 | 13268,0, 69 | 4972,0, 70 | -26694,0, 71 | 6817,0, 72 | -4978,0, 73 | 643,0, 74 | -3753,0, 75 | 9278,0, 76 | -2996,0, 77 | 13217,0, 78 | 10112,0, 79 | -21534,0, 80 | -12927,0, 81 | -1653,0, 82 | 12876,0, 83 | -624,0, 84 | 19210,0, 85 | -13311,0, 86 | -1050,0, 87 | 1221,0, 88 | 3234,0, 89 | -21074,0, 90 | 410,0, 91 | 10805,0, 92 | 5869,0, 93 | 15504,0, 94 | -4925,0, 95 | -14867,0, 96 | -16283,0, 97 | 18545,0, 98 | -7851,0, 99 | 5760,0, 100 | 1664,0, 101 | 8589,0, 102 | -2896,0, 103 | 9156,0, 104 | -13963,0, 105 | -22041,0, 106 | 8636,0, 107 | 11948,0, 108 | 10822,0, 109 | -2471,0, 110 | 6128,0, 111 | -21371,0, 112 | 8259,0, 113 | -1719,0, 114 | -5538,0, 115 | -10587,0, 116 | 19832,0, 117 | 8516,0, 118 | 1086,0, 119 | 334,0, 120 | -20602,0, 121 | -8615,0, 122 | 6192,0, 123 | 18370,0, 124 | -12953,0, 125 | 12057,0, 126 | -1176,0, 127 | 2773,0, 128 | -7181,0, 129 | -913,0, 130 | -20048,0, 131 | 3416,0, 132 | 24267,0, 133 | 4513,0, 134 | -1394,0, 135 | -8888,0, 136 | -2965,0, 137 | -14101,0, 138 | 17082,0, 139 | -9572,0, 140 | -634,0, 141 | 6666,0, 142 | 20234,0, 143 | -9561,0, 144 | -7109,0, 145 | -9824,0, 146 | -13483,0, 147 | 13504,0, 148 | 14139,0, 149 | 3776,0, 150 | -13770,0, 151 | 14438,0, 152 | -10817,0, 153 | -789,0, 154 | -8780,0, 155 | -1217,0, 156 | -5313,0, 157 | 25139,0, 158 | 11191,0, 159 | -14648,0, 160 | -7377,0, 161 | -7609,0, 162 | 450,0, 163 | -507,0, 164 | 15779,0, 165 | -14385,0, 166 | 11947,0, 167 | 8311,0, 168 | 988,0, 169 | -22774,0, 170 | -1898,0, 171 | -4204,0, 172 | 6709,0, 173 | 21745,0, 174 | -1100,0, 175 | -9742,0, 176 | -6580,0, 177 | 11153,0, 178 | -17802,0, 179 | 4647,0, 180 | -4571,0, 181 | 7848,0, 182 | 7893,0, 183 | 18642,0, 184 | -17799,0, 185 | -18007,0, 186 | 2126,0, 187 | 92,0, 188 | 7439,0, 189 | 4855,0, 190 | 6444,0, 191 | -12888,0, 192 | 18251,0, 193 | -8271,0, 194 | -12824,0, 195 | -13725,0, 196 | 14227,0, 197 | 3846,0, 198 | 15134,0, 199 | 5418,0, 200 | -19012,0, 201 | -6183,0, 202 | 3154,0, 203 | 3648,0, 204 | -14500,0, 205 | 15450,0, 206 | -1853,0, 207 | 12669,0, 208 | 2223,0, 209 | -4344,0, 210 | -28371,0, 211 | 3408,0, 212 | 12861,0, 213 | 2788,0, 214 | 7571,0, 215 | -1054,0, 216 | -2801,0, 217 | -6917,0, 218 | 12303,0, 219 | -23128,0, 220 | -2491,0, 221 | 6979,0, 222 | 20137,0, 223 | -1600,0, 224 | 5781,0, 225 | -15605,0, 226 | -15532,0, 227 | 9384,0, 228 | 4883,0, 229 | -2121,0, 230 | -2923,0, 231 | 19002,0, 232 | -7669,0, 233 | 7625,0, 234 | -13369,0, 235 | -12709,0, 236 | -9541,0, 237 | 25973,0, 238 | 6220,0, 239 | -2511,0, 240 | 1793,0, 241 | -8359,0, 242 | -3196,0, 243 | -1183,0, 244 | 2711,0, 245 | -19053,0, 246 | 20492,0, 247 | 11282,0, 248 | 6297,0, 249 | -14394,0, 250 | -3514,0, 251 | -17864,0, 252 | 6188,0, 253 | 16348,0, 254 | -3457,0, 255 | -1364,0, 256 | 5629,0, 257 | -------------------------------------------------------------------------------- /telecom/fft00/datasets/xspn256t.dat: -------------------------------------------------------------------------------- 1 | 3661 0 2 | 25080 0 3 | -3951 0 4 | 10492 0 5 | -14559 0 6 | -9391 0 7 | -2631 0 8 | 12008 0 9 | -10358 0 10 | -1356 0 11 | 17443 0 12 | 1774 0 13 | 3520 0 14 | -10804 0 15 | -10673 0 16 | -17905 0 17 | 26005 0 18 | 4570 0 19 | 2493 0 20 | -4153 0 21 | 5401 0 22 | -10269 0 23 | 895 0 24 | -2290 0 25 | -16734 0 26 | 11819 0 27 | 17241 0 28 | 10471 0 29 | -16808 0 30 | 1934 0 31 | -19916 0 32 | 5034 0 33 | 7225 0 34 | 5779 0 35 | -10326 0 36 | 13584 0 37 | 9335 0 38 | -11259 0 39 | -4890 0 40 | -14106 0 41 | -1244 0 42 | 7459 0 43 | 27823 0 44 | -14019 0 45 | -1145 0 46 | -4724 0 47 | 799 0 48 | -10023 0 49 | 5255 0 50 | -5637 0 51 | 533 0 52 | 24392 0 53 | 2209 0 54 | -11521 0 55 | -17603 0 56 | 4774 0 57 | -10080 0 58 | 20151 0 59 | 1764 0 60 | -1848 0 61 | -3499 0 62 | 14655 0 63 | -10697 0 64 | -15238 0 65 | 37 0 66 | -3282 0 67 | 15273 0 68 | 13268 0 69 | 4972 0 70 | -26694 0 71 | 6817 0 72 | -4978 0 73 | 643 0 74 | -3753 0 75 | 9278 0 76 | -2996 0 77 | 13217 0 78 | 10112 0 79 | -21534 0 80 | -12927 0 81 | -1653 0 82 | 12876 0 83 | -624 0 84 | 19210 0 85 | -13311 0 86 | -1050 0 87 | 1221 0 88 | 3234 0 89 | -21074 0 90 | 410 0 91 | 10805 0 92 | 5869 0 93 | 15504 0 94 | -4925 0 95 | -14867 0 96 | -16283 0 97 | 18545 0 98 | -7851 0 99 | 5760 0 100 | 1664 0 101 | 8589 0 102 | -2896 0 103 | 9156 0 104 | -13963 0 105 | -22041 0 106 | 8636 0 107 | 11948 0 108 | 10822 0 109 | -2471 0 110 | 6128 0 111 | -21371 0 112 | 8259 0 113 | -1719 0 114 | -5538 0 115 | -10587 0 116 | 19832 0 117 | 8516 0 118 | 1086 0 119 | 334 0 120 | -20602 0 121 | -8615 0 122 | 6192 0 123 | 18370 0 124 | -12953 0 125 | 12057 0 126 | -1176 0 127 | 2773 0 128 | -7181 0 129 | -913 0 130 | -20048 0 131 | 3416 0 132 | 24267 0 133 | 4513 0 134 | -1394 0 135 | -8888 0 136 | -2965 0 137 | -14101 0 138 | 17082 0 139 | -9572 0 140 | -634 0 141 | 6666 0 142 | 20234 0 143 | -9561 0 144 | -7109 0 145 | -9824 0 146 | -13483 0 147 | 13504 0 148 | 14139 0 149 | 3776 0 150 | -13770 0 151 | 14438 0 152 | -10817 0 153 | -789 0 154 | -8780 0 155 | -1217 0 156 | -5313 0 157 | 25139 0 158 | 11191 0 159 | -14648 0 160 | -7377 0 161 | -7609 0 162 | 450 0 163 | -507 0 164 | 15779 0 165 | -14385 0 166 | 11947 0 167 | 8311 0 168 | 988 0 169 | -22774 0 170 | -1898 0 171 | -4204 0 172 | 6709 0 173 | 21745 0 174 | -1100 0 175 | -9742 0 176 | -6580 0 177 | 11153 0 178 | -17802 0 179 | 4647 0 180 | -4571 0 181 | 7848 0 182 | 7893 0 183 | 18642 0 184 | -17799 0 185 | -18007 0 186 | 2126 0 187 | 92 0 188 | 7439 0 189 | 4855 0 190 | 6444 0 191 | -12888 0 192 | 18251 0 193 | -8271 0 194 | -12824 0 195 | -13725 0 196 | 14227 0 197 | 3846 0 198 | 15134 0 199 | 5418 0 200 | -19012 0 201 | -6183 0 202 | 3154 0 203 | 3648 0 204 | -14500 0 205 | 15450 0 206 | -1853 0 207 | 12669 0 208 | 2223 0 209 | -4344 0 210 | -28371 0 211 | 3408 0 212 | 12861 0 213 | 2788 0 214 | 7571 0 215 | -1054 0 216 | -2801 0 217 | -6917 0 218 | 12303 0 219 | -23128 0 220 | -2491 0 221 | 6979 0 222 | 20137 0 223 | -1600 0 224 | 5781 0 225 | -15605 0 226 | -15532 0 227 | 9384 0 228 | 4883 0 229 | -2121 0 230 | -2923 0 231 | 19002 0 232 | -7669 0 233 | 7625 0 234 | -13369 0 235 | -12709 0 236 | -9541 0 237 | 25973 0 238 | 6220 0 239 | -2511 0 240 | 1793 0 241 | -8359 0 242 | -3196 0 243 | -1183 0 244 | 2711 0 245 | -19053 0 246 | 20492 0 247 | 11282 0 248 | 6297 0 249 | -14394 0 250 | -3514 0 251 | -17864 0 252 | 6188 0 253 | 16348 0 254 | -3457 0 255 | -1364 0 256 | 5629 0 257 | -------------------------------------------------------------------------------- /telecom/fft00/datasets/xtpulse256i.dat: -------------------------------------------------------------------------------- 1 | 0,0, 2 | 0,0, 3 | 0,0, 4 | 0,0, 5 | 0,0, 6 | 0,0, 7 | 0,0, 8 | 0,0, 9 | 0,0, 10 | 0,0, 11 | 0,0, 12 | 0,0, 13 | 0,0, 14 | 0,0, 15 | 0,0, 16 | 0,0, 17 | 0,0, 18 | 0,0, 19 | 0,0, 20 | 0,0, 21 | 0,0, 22 | 0,0, 23 | 0,0, 24 | 0,0, 25 | 0,0, 26 | 0,0, 27 | 0,0, 28 | 0,0, 29 | 0,0, 30 | 0,0, 31 | 0,0, 32 | 0,0, 33 | 0,0, 34 | 0,0, 35 | 0,0, 36 | 0,0, 37 | 0,0, 38 | 0,0, 39 | 0,0, 40 | 0,0, 41 | 0,0, 42 | 0,0, 43 | 0,0, 44 | 0,0, 45 | 0,0, 46 | 0,0, 47 | 0,0, 48 | 0,0, 49 | 0,0, 50 | 0,0, 51 | 0,0, 52 | 0,0, 53 | 0,0, 54 | 0,0, 55 | 0,0, 56 | 0,0, 57 | 0,0, 58 | 0,0, 59 | 0,0, 60 | 0,0, 61 | 0,0, 62 | 0,0, 63 | 0,0, 64 | 0,0, 65 | 32767,0, 66 | 32767,0, 67 | 32767,0, 68 | 32767,0, 69 | 32767,0, 70 | 32767,0, 71 | 32767,0, 72 | 32767,0, 73 | 32767,0, 74 | 32767,0, 75 | 32767,0, 76 | 32767,0, 77 | 32767,0, 78 | 32767,0, 79 | 32767,0, 80 | 32767,0, 81 | 32767,0, 82 | 32767,0, 83 | 32767,0, 84 | 32767,0, 85 | 32767,0, 86 | 32767,0, 87 | 32767,0, 88 | 32767,0, 89 | 32767,0, 90 | 32767,0, 91 | 32767,0, 92 | 32767,0, 93 | 32767,0, 94 | 32767,0, 95 | 32767,0, 96 | 32767,0, 97 | 32767,0, 98 | 32767,0, 99 | 32767,0, 100 | 32767,0, 101 | 32767,0, 102 | 32767,0, 103 | 32767,0, 104 | 32767,0, 105 | 32767,0, 106 | 32767,0, 107 | 32767,0, 108 | 32767,0, 109 | 32767,0, 110 | 32767,0, 111 | 32767,0, 112 | 32767,0, 113 | 32767,0, 114 | 32767,0, 115 | 32767,0, 116 | 32767,0, 117 | 32767,0, 118 | 32767,0, 119 | 32767,0, 120 | 32767,0, 121 | 32767,0, 122 | 32767,0, 123 | 32767,0, 124 | 32767,0, 125 | 32767,0, 126 | 32767,0, 127 | 32767,0, 128 | 32767,0, 129 | 32767,0, 130 | 32767,0, 131 | 32767,0, 132 | 32767,0, 133 | 32767,0, 134 | 32767,0, 135 | 32767,0, 136 | 32767,0, 137 | 32767,0, 138 | 32767,0, 139 | 32767,0, 140 | 32767,0, 141 | 32767,0, 142 | 32767,0, 143 | 32767,0, 144 | 32767,0, 145 | 32767,0, 146 | 32767,0, 147 | 32767,0, 148 | 32767,0, 149 | 32767,0, 150 | 32767,0, 151 | 32767,0, 152 | 32767,0, 153 | 32767,0, 154 | 32767,0, 155 | 32767,0, 156 | 32767,0, 157 | 32767,0, 158 | 32767,0, 159 | 32767,0, 160 | 32767,0, 161 | 32767,0, 162 | 32767,0, 163 | 32767,0, 164 | 32767,0, 165 | 32767,0, 166 | 32767,0, 167 | 32767,0, 168 | 32767,0, 169 | 32767,0, 170 | 32767,0, 171 | 32767,0, 172 | 32767,0, 173 | 32767,0, 174 | 32767,0, 175 | 32767,0, 176 | 32767,0, 177 | 32767,0, 178 | 32767,0, 179 | 32767,0, 180 | 32767,0, 181 | 32767,0, 182 | 32767,0, 183 | 32767,0, 184 | 32767,0, 185 | 32767,0, 186 | 32767,0, 187 | 32767,0, 188 | 32767,0, 189 | 32767,0, 190 | 32767,0, 191 | 32767,0, 192 | 32767,0, 193 | 0,0, 194 | 0,0, 195 | 0,0, 196 | 0,0, 197 | 0,0, 198 | 0,0, 199 | 0,0, 200 | 0,0, 201 | 0,0, 202 | 0,0, 203 | 0,0, 204 | 0,0, 205 | 0,0, 206 | 0,0, 207 | 0,0, 208 | 0,0, 209 | 0,0, 210 | 0,0, 211 | 0,0, 212 | 0,0, 213 | 0,0, 214 | 0,0, 215 | 0,0, 216 | 0,0, 217 | 0,0, 218 | 0,0, 219 | 0,0, 220 | 0,0, 221 | 0,0, 222 | 0,0, 223 | 0,0, 224 | 0,0, 225 | 0,0, 226 | 0,0, 227 | 0,0, 228 | 0,0, 229 | 0,0, 230 | 0,0, 231 | 0,0, 232 | 0,0, 233 | 0,0, 234 | 0,0, 235 | 0,0, 236 | 0,0, 237 | 0,0, 238 | 0,0, 239 | 0,0, 240 | 0,0, 241 | 0,0, 242 | 0,0, 243 | 0,0, 244 | 0,0, 245 | 0,0, 246 | 0,0, 247 | 0,0, 248 | 0,0, 249 | 0,0, 250 | 0,0, 251 | 0,0, 252 | 0,0, 253 | 0,0, 254 | 0,0, 255 | 0,0, 256 | 0,0, 257 | -------------------------------------------------------------------------------- /telecom/fft00/datasets/xtpulse256t.dat: -------------------------------------------------------------------------------- 1 | 0 0 2 | 0 0 3 | 0 0 4 | 0 0 5 | 0 0 6 | 0 0 7 | 0 0 8 | 0 0 9 | 0 0 10 | 0 0 11 | 0 0 12 | 0 0 13 | 0 0 14 | 0 0 15 | 0 0 16 | 0 0 17 | 0 0 18 | 0 0 19 | 0 0 20 | 0 0 21 | 0 0 22 | 0 0 23 | 0 0 24 | 0 0 25 | 0 0 26 | 0 0 27 | 0 0 28 | 0 0 29 | 0 0 30 | 0 0 31 | 0 0 32 | 0 0 33 | 0 0 34 | 0 0 35 | 0 0 36 | 0 0 37 | 0 0 38 | 0 0 39 | 0 0 40 | 0 0 41 | 0 0 42 | 0 0 43 | 0 0 44 | 0 0 45 | 0 0 46 | 0 0 47 | 0 0 48 | 0 0 49 | 0 0 50 | 0 0 51 | 0 0 52 | 0 0 53 | 0 0 54 | 0 0 55 | 0 0 56 | 0 0 57 | 0 0 58 | 0 0 59 | 0 0 60 | 0 0 61 | 0 0 62 | 0 0 63 | 0 0 64 | 0 0 65 | 32767 0 66 | 32767 0 67 | 32767 0 68 | 32767 0 69 | 32767 0 70 | 32767 0 71 | 32767 0 72 | 32767 0 73 | 32767 0 74 | 32767 0 75 | 32767 0 76 | 32767 0 77 | 32767 0 78 | 32767 0 79 | 32767 0 80 | 32767 0 81 | 32767 0 82 | 32767 0 83 | 32767 0 84 | 32767 0 85 | 32767 0 86 | 32767 0 87 | 32767 0 88 | 32767 0 89 | 32767 0 90 | 32767 0 91 | 32767 0 92 | 32767 0 93 | 32767 0 94 | 32767 0 95 | 32767 0 96 | 32767 0 97 | 32767 0 98 | 32767 0 99 | 32767 0 100 | 32767 0 101 | 32767 0 102 | 32767 0 103 | 32767 0 104 | 32767 0 105 | 32767 0 106 | 32767 0 107 | 32767 0 108 | 32767 0 109 | 32767 0 110 | 32767 0 111 | 32767 0 112 | 32767 0 113 | 32767 0 114 | 32767 0 115 | 32767 0 116 | 32767 0 117 | 32767 0 118 | 32767 0 119 | 32767 0 120 | 32767 0 121 | 32767 0 122 | 32767 0 123 | 32767 0 124 | 32767 0 125 | 32767 0 126 | 32767 0 127 | 32767 0 128 | 32767 0 129 | 32767 0 130 | 32767 0 131 | 32767 0 132 | 32767 0 133 | 32767 0 134 | 32767 0 135 | 32767 0 136 | 32767 0 137 | 32767 0 138 | 32767 0 139 | 32767 0 140 | 32767 0 141 | 32767 0 142 | 32767 0 143 | 32767 0 144 | 32767 0 145 | 32767 0 146 | 32767 0 147 | 32767 0 148 | 32767 0 149 | 32767 0 150 | 32767 0 151 | 32767 0 152 | 32767 0 153 | 32767 0 154 | 32767 0 155 | 32767 0 156 | 32767 0 157 | 32767 0 158 | 32767 0 159 | 32767 0 160 | 32767 0 161 | 32767 0 162 | 32767 0 163 | 32767 0 164 | 32767 0 165 | 32767 0 166 | 32767 0 167 | 32767 0 168 | 32767 0 169 | 32767 0 170 | 32767 0 171 | 32767 0 172 | 32767 0 173 | 32767 0 174 | 32767 0 175 | 32767 0 176 | 32767 0 177 | 32767 0 178 | 32767 0 179 | 32767 0 180 | 32767 0 181 | 32767 0 182 | 32767 0 183 | 32767 0 184 | 32767 0 185 | 32767 0 186 | 32767 0 187 | 32767 0 188 | 32767 0 189 | 32767 0 190 | 32767 0 191 | 32767 0 192 | 32767 0 193 | 0 0 194 | 0 0 195 | 0 0 196 | 0 0 197 | 0 0 198 | 0 0 199 | 0 0 200 | 0 0 201 | 0 0 202 | 0 0 203 | 0 0 204 | 0 0 205 | 0 0 206 | 0 0 207 | 0 0 208 | 0 0 209 | 0 0 210 | 0 0 211 | 0 0 212 | 0 0 213 | 0 0 214 | 0 0 215 | 0 0 216 | 0 0 217 | 0 0 218 | 0 0 219 | 0 0 220 | 0 0 221 | 0 0 222 | 0 0 223 | 0 0 224 | 0 0 225 | 0 0 226 | 0 0 227 | 0 0 228 | 0 0 229 | 0 0 230 | 0 0 231 | 0 0 232 | 0 0 233 | 0 0 234 | 0 0 235 | 0 0 236 | 0 0 237 | 0 0 238 | 0 0 239 | 0 0 240 | 0 0 241 | 0 0 242 | 0 0 243 | 0 0 244 | 0 0 245 | 0 0 246 | 0 0 247 | 0 0 248 | 0 0 249 | 0 0 250 | 0 0 251 | 0 0 252 | 0 0 253 | 0 0 254 | 0 0 255 | 0 0 256 | 0 0 257 | -------------------------------------------------------------------------------- /telecom/harness.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | #if !defined(HARNESS_H) 11 | #define HARNESS_H 12 | 13 | 14 | /* Enable Floating point display for diffmeasure/verify */ 15 | 16 | #if !defined(VERIFY_INT) 17 | #define VERIFY_INT (0) 18 | #endif 19 | 20 | #if !defined(VERIFY_FLOAT) 21 | #define VERIFY_FLOAT (1) 22 | #endif 23 | 24 | #endif /* File Sentinal */ 25 | -------------------------------------------------------------------------------- /telecom/iterationsx86.mak: -------------------------------------------------------------------------------- 1 | # ============================================================================ 2 | # 3 | # Copyright (C) EEMBC(R) All Rights Reserved 4 | # 5 | # This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | # Please refer to the license file (LICENSE.md) included with this code. 7 | # 8 | # ============================================================================ 9 | 10 | empty = DEFAULT 11 | autcor00data_1 = DEFAULT 12 | autcor00data_2 = DEFAULT 13 | autcor00data_3 = DEFAULT 14 | conven00data_1 = DEFAULT 15 | conven00data_2 = DEFAULT 16 | conven00data_3 = DEFAULT 17 | fbital00data_2 = DEFAULT 18 | fbital00data_3 = DEFAULT 19 | fbital00data_6 = DEFAULT 20 | fft00data_1 = DEFAULT 21 | fft00data_2 = DEFAULT 22 | fft00data_3 = DEFAULT 23 | viterb00data_1 = DEFAULT 24 | viterb00data_2 = DEFAULT 25 | viterb00data_3 = DEFAULT 26 | viterb00data_4 = DEFAULT 27 | -------------------------------------------------------------------------------- /telecom/telecom.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "AutCor00"=.\AutCor00\win32\AutCor00.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Project: "AutCor00_Lite"=.\AutCor00\win32\AutCor00_Lite.dsp - Package Owner=<4> 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<4> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | Project: "ConvEn00"=.\ConvEn00\win32\ConvEn00.dsp - Package Owner=<4> 31 | 32 | Package=<5> 33 | {{{ 34 | }}} 35 | 36 | Package=<4> 37 | {{{ 38 | }}} 39 | 40 | ############################################################################### 41 | 42 | Project: "ConvEn00_Lite"=.\ConvEn00\win32\ConvEn00_Lite.dsp - Package Owner=<4> 43 | 44 | Package=<5> 45 | {{{ 46 | }}} 47 | 48 | Package=<4> 49 | {{{ 50 | }}} 51 | 52 | ############################################################################### 53 | 54 | Project: "FFT00"=.\FFT00\win32\FFT00.dsp - Package Owner=<4> 55 | 56 | Package=<5> 57 | {{{ 58 | }}} 59 | 60 | Package=<4> 61 | {{{ 62 | }}} 63 | 64 | ############################################################################### 65 | 66 | Project: "FFT00_Lite"=.\FFT00\win32\FFT00_Lite.dsp - Package Owner=<4> 67 | 68 | Package=<5> 69 | {{{ 70 | }}} 71 | 72 | Package=<4> 73 | {{{ 74 | }}} 75 | 76 | ############################################################################### 77 | 78 | Project: "Viterb00"=.\Viterb00\win32\Viterb00.dsp - Package Owner=<4> 79 | 80 | Package=<5> 81 | {{{ 82 | }}} 83 | 84 | Package=<4> 85 | {{{ 86 | }}} 87 | 88 | ############################################################################### 89 | 90 | Project: "Viterb00_Lite"=.\Viterb00\win32\Viterb00_Lite.dsp - Package Owner=<4> 91 | 92 | Package=<5> 93 | {{{ 94 | }}} 95 | 96 | Package=<4> 97 | {{{ 98 | }}} 99 | 100 | ############################################################################### 101 | 102 | Project: "diffmeasure"=.\diffmeasure\win32\diffmeasure.dsp - Package Owner=<4> 103 | 104 | Package=<5> 105 | {{{ 106 | }}} 107 | 108 | Package=<4> 109 | {{{ 110 | }}} 111 | 112 | ############################################################################### 113 | 114 | Project: "empty"=.\empty\win32\empty.dsp - Package Owner=<4> 115 | 116 | Package=<5> 117 | {{{ 118 | }}} 119 | 120 | Package=<4> 121 | {{{ 122 | }}} 123 | 124 | ############################################################################### 125 | 126 | Project: "empty_lite"=.\empty\win32\empty_lite.dsp - Package Owner=<4> 127 | 128 | Package=<5> 129 | {{{ 130 | }}} 131 | 132 | Package=<4> 133 | {{{ 134 | }}} 135 | 136 | ############################################################################### 137 | 138 | Project: "fBitAl00"=.\fBitAl00\win32\fBitAl00.dsp - Package Owner=<4> 139 | 140 | Package=<5> 141 | {{{ 142 | }}} 143 | 144 | Package=<4> 145 | {{{ 146 | }}} 147 | 148 | ############################################################################### 149 | 150 | Project: "fBitAl00_lite"=.\fBitAl00\win32\fBitAl00_lite.dsp - Package Owner=<4> 151 | 152 | Package=<5> 153 | {{{ 154 | }}} 155 | 156 | Package=<4> 157 | {{{ 158 | }}} 159 | 160 | ############################################################################### 161 | 162 | Global: 163 | 164 | Package=<5> 165 | {{{ 166 | }}} 167 | 168 | Package=<3> 169 | {{{ 170 | }}} 171 | 172 | ############################################################################### 173 | 174 | -------------------------------------------------------------------------------- /telecom/viterb00/algo.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | #ifndef __ALGO_H 11 | #define __ALGO_H 12 | 13 | /******************************************************************************* 14 | Includes 15 | *******************************************************************************/ 16 | 17 | #include "thlib.h" 18 | 19 | /******************************************************************************* 20 | Defines 21 | *******************************************************************************/ 22 | 23 | /* 24 | * MAX_DATA_SIZE: the number of bits in the packet which has been encoded by the 25 | * convolutional encoder. For each bit the Viterbi decoder reads in a pair of 26 | * branch values. 27 | * 28 | * Reasonable values for MAX_DATA_SIZE are in the range 200-400, multiples of 8. 29 | * The number chosen below is was chosen arbitrarily. 30 | */ 31 | 32 | #define MAX_DATA_SIZE 344 33 | 34 | 35 | /* Compile time Data set select for uuencode: 36 | * DATA_1 through DATA_4 37 | * DATA_4 is default 38 | */ 39 | #if (!defined(DATA_1) && !defined(DATA_2) && !defined(DATA_3) && !defined(DATA_4)) 40 | #define DATA_4 41 | #endif 42 | 43 | 44 | void ViterbiDecoderIS136(e_s16 *EncodedStreamPtr, e_s16 *DecodedStreamPtr); 45 | 46 | #endif /* __ALGO_H */ 47 | -------------------------------------------------------------------------------- /telecom/viterb00/datasets/gett.dat: -------------------------------------------------------------------------------- 1 | 36 2 | 0 3 | 4 4 | 32 5 | 0 6 | 4 7 | 4 8 | 0 9 | 4 10 | 32 11 | 0 12 | 36 13 | 32 14 | 0 15 | 4 16 | 36 17 | 32 18 | 0 19 | 36 20 | 4 21 | 0 22 | 36 23 | 0 24 | 36 25 | 4 26 | 4 27 | 32 28 | 32 29 | 0 30 | 0 31 | 4 32 | 36 33 | 4 34 | 0 35 | 4 36 | 32 37 | 32 38 | 0 39 | 0 40 | 4 41 | 36 42 | 0 43 | 32 44 | 36 45 | 32 46 | 0 47 | 4 48 | 4 49 | 36 50 | 36 51 | 0 52 | 32 53 | 0 54 | 4 55 | 32 56 | 36 57 | 0 58 | 32 59 | 0 60 | 32 61 | 4 62 | 0 63 | 4 64 | 36 65 | 32 66 | 0 67 | 36 68 | 4 69 | 4 70 | 0 71 | 4 72 | 36 73 | 4 74 | 36 75 | 32 76 | 36 77 | 4 78 | 32 79 | 36 80 | 0 81 | 32 82 | 36 83 | 0 84 | 0 85 | 4 86 | 0 87 | 32 88 | 0 89 | 36 90 | 0 91 | 36 92 | 0 93 | 4 94 | 4 95 | 4 96 | 36 97 | 4 98 | 4 99 | 4 100 | 4 101 | 4 102 | 0 103 | 4 104 | 0 105 | 32 106 | 4 107 | 0 108 | 36 109 | 4 110 | 32 111 | 36 112 | 4 113 | 0 114 | 32 115 | 36 116 | 4 117 | 32 118 | 0 119 | 32 120 | 0 121 | 36 122 | 0 123 | 32 124 | 36 125 | 36 126 | 0 127 | 4 128 | 0 129 | 36 130 | 32 131 | 0 132 | 32 133 | 32 134 | 0 135 | 36 136 | 32 137 | 32 138 | 4 139 | 32 140 | 32 141 | 0 142 | 36 143 | 36 144 | 32 145 | 32 146 | 36 147 | 0 148 | 4 149 | 4 150 | 32 151 | 36 152 | 32 153 | 32 154 | 0 155 | 32 156 | 4 157 | 4 158 | 0 159 | 4 160 | 0 161 | 0 162 | 32 163 | 32 164 | 32 165 | 32 166 | 0 167 | 32 168 | 0 169 | 36 170 | 0 171 | 32 172 | 36 173 | 0 174 | 32 175 | 36 176 | 4 177 | 36 178 | 32 179 | 4 180 | 4 181 | 32 182 | 32 183 | 36 184 | 32 185 | 32 186 | 0 187 | 32 188 | 4 189 | 32 190 | 4 191 | 4 192 | 36 193 | 36 194 | 4 195 | 4 196 | 32 197 | 0 198 | 0 199 | 4 200 | 36 201 | 4 202 | 36 203 | 36 204 | 0 205 | 36 206 | 0 207 | 4 208 | 0 209 | 32 210 | 4 211 | 32 212 | 36 213 | 4 214 | 0 215 | 32 216 | 0 217 | 36 218 | 32 219 | 32 220 | 32 221 | 4 222 | 4 223 | 0 224 | 36 225 | 4 226 | 0 227 | 4 228 | 4 229 | 32 230 | 32 231 | 4 232 | 0 233 | 36 234 | 36 235 | 36 236 | 32 237 | 4 238 | 0 239 | 4 240 | 36 241 | 32 242 | 36 243 | 36 244 | 36 245 | 0 246 | 0 247 | 36 248 | 0 249 | 36 250 | 0 251 | 32 252 | 0 253 | 32 254 | 0 255 | 0 256 | 36 257 | 32 258 | 0 259 | 36 260 | 4 261 | 0 262 | 36 263 | 0 264 | 36 265 | 4 266 | 0 267 | 32 268 | 32 269 | 0 270 | 0 271 | 4 272 | 36 273 | 4 274 | 0 275 | 4 276 | 32 277 | 32 278 | 0 279 | 32 280 | 0 281 | 36 282 | 0 283 | 32 284 | 0 285 | 4 286 | 32 287 | 32 288 | 36 289 | 4 290 | 32 291 | 0 292 | 36 293 | 4 294 | 4 295 | 4 296 | 36 297 | 4 298 | 4 299 | 4 300 | 32 301 | 0 302 | 36 303 | 0 304 | 0 305 | 36 306 | 4 307 | 4 308 | 0 309 | 32 310 | 36 311 | 0 312 | 36 313 | 32 314 | 36 315 | 32 316 | 0 317 | 4 318 | 32 319 | 36 320 | 32 321 | 32 322 | 0 323 | 32 324 | 32 325 | 0 326 | 0 327 | 4 328 | 36 329 | 4 330 | 36 331 | 36 332 | 4 333 | 36 334 | 0 335 | 4 336 | 0 337 | 36 338 | 4 339 | 4 340 | 4 341 | 0 342 | 36 343 | 36 344 | 36 345 | -------------------------------------------------------------------------------- /telecom/viterb00/datasets/gett_golden.dat: -------------------------------------------------------------------------------- 1 | 0x466f, 2 | 0x7572, 3 | 0x23c7, 4 | 0x636f, 5 | 0x7265, 6 | 0x2061, 7 | 0x6e64, 8 | 0x2073, 9 | 0x6576, 10 | 0x656e, 11 | 0x2079, 12 | 0x6561, 13 | 0x7273, 14 | 0x2061, 15 | 0x676f, 16 | 0x206f, 17 | 0x7572, 18 | 0x2066, 19 | 0x6174, 20 | 0x6865, 21 | 0x7273, 22 | 0x0000 23 | -------------------------------------------------------------------------------- /telecom/viterb00/datasets/getti.dat: -------------------------------------------------------------------------------- 1 | 36, 2 | 0, 3 | 4, 4 | 32, 5 | 0, 6 | 4, 7 | 4, 8 | 0, 9 | 4, 10 | 32, 11 | 0, 12 | 36, 13 | 32, 14 | 0, 15 | 4, 16 | 36, 17 | 32, 18 | 0, 19 | 36, 20 | 4, 21 | 0, 22 | 36, 23 | 0, 24 | 36, 25 | 4, 26 | 4, 27 | 32, 28 | 32, 29 | 0, 30 | 0, 31 | 4, 32 | 36, 33 | 4, 34 | 0, 35 | 4, 36 | 32, 37 | 32, 38 | 0, 39 | 0, 40 | 4, 41 | 36, 42 | 0, 43 | 32, 44 | 36, 45 | 32, 46 | 0, 47 | 4, 48 | 4, 49 | 36, 50 | 36, 51 | 0, 52 | 32, 53 | 0, 54 | 4, 55 | 32, 56 | 36, 57 | 0, 58 | 32, 59 | 0, 60 | 32, 61 | 4, 62 | 0, 63 | 4, 64 | 36, 65 | 32, 66 | 0, 67 | 36, 68 | 4, 69 | 4, 70 | 0, 71 | 4, 72 | 36, 73 | 4, 74 | 36, 75 | 32, 76 | 36, 77 | 4, 78 | 32, 79 | 36, 80 | 0, 81 | 32, 82 | 36, 83 | 0, 84 | 0, 85 | 4, 86 | 0, 87 | 32, 88 | 0, 89 | 36, 90 | 0, 91 | 36, 92 | 0, 93 | 4, 94 | 4, 95 | 4, 96 | 36, 97 | 4, 98 | 4, 99 | 4, 100 | 4, 101 | 4, 102 | 0, 103 | 4, 104 | 0, 105 | 32, 106 | 4, 107 | 0, 108 | 36, 109 | 4, 110 | 32, 111 | 36, 112 | 4, 113 | 0, 114 | 32, 115 | 36, 116 | 4, 117 | 32, 118 | 0, 119 | 32, 120 | 0, 121 | 36, 122 | 0, 123 | 32, 124 | 36, 125 | 36, 126 | 0, 127 | 4, 128 | 0, 129 | 36, 130 | 32, 131 | 0, 132 | 32, 133 | 32, 134 | 0, 135 | 36, 136 | 32, 137 | 32, 138 | 4, 139 | 32, 140 | 32, 141 | 0, 142 | 36, 143 | 36, 144 | 32, 145 | 32, 146 | 36, 147 | 0, 148 | 4, 149 | 4, 150 | 32, 151 | 36, 152 | 32, 153 | 32, 154 | 0, 155 | 32, 156 | 4, 157 | 4, 158 | 0, 159 | 4, 160 | 0, 161 | 0, 162 | 32, 163 | 32, 164 | 32, 165 | 32, 166 | 0, 167 | 32, 168 | 0, 169 | 36, 170 | 0, 171 | 32, 172 | 36, 173 | 0, 174 | 32, 175 | 36, 176 | 4, 177 | 36, 178 | 32, 179 | 4, 180 | 4, 181 | 32, 182 | 32, 183 | 36, 184 | 32, 185 | 32, 186 | 0, 187 | 32, 188 | 4, 189 | 32, 190 | 4, 191 | 4, 192 | 36, 193 | 36, 194 | 4, 195 | 4, 196 | 32, 197 | 0, 198 | 0, 199 | 4, 200 | 36, 201 | 4, 202 | 36, 203 | 36, 204 | 0, 205 | 36, 206 | 0, 207 | 4, 208 | 0, 209 | 32, 210 | 4, 211 | 32, 212 | 36, 213 | 4, 214 | 0, 215 | 32, 216 | 0, 217 | 36, 218 | 32, 219 | 32, 220 | 32, 221 | 4, 222 | 4, 223 | 0, 224 | 36, 225 | 4, 226 | 0, 227 | 4, 228 | 4, 229 | 32, 230 | 32, 231 | 4, 232 | 0, 233 | 36, 234 | 36, 235 | 36, 236 | 32, 237 | 4, 238 | 0, 239 | 4, 240 | 36, 241 | 32, 242 | 36, 243 | 36, 244 | 36, 245 | 0, 246 | 0, 247 | 36, 248 | 0, 249 | 36, 250 | 0, 251 | 32, 252 | 0, 253 | 32, 254 | 0, 255 | 0, 256 | 36, 257 | 32, 258 | 0, 259 | 36, 260 | 4, 261 | 0, 262 | 36, 263 | 0, 264 | 36, 265 | 4, 266 | 0, 267 | 32, 268 | 32, 269 | 0, 270 | 0, 271 | 4, 272 | 36, 273 | 4, 274 | 0, 275 | 4, 276 | 32, 277 | 32, 278 | 0, 279 | 32, 280 | 0, 281 | 36, 282 | 0, 283 | 32, 284 | 0, 285 | 4, 286 | 32, 287 | 32, 288 | 36, 289 | 4, 290 | 32, 291 | 0, 292 | 36, 293 | 4, 294 | 4, 295 | 4, 296 | 36, 297 | 4, 298 | 4, 299 | 4, 300 | 32, 301 | 0, 302 | 36, 303 | 0, 304 | 0, 305 | 36, 306 | 4, 307 | 4, 308 | 0, 309 | 32, 310 | 36, 311 | 0, 312 | 36, 313 | 32, 314 | 36, 315 | 32, 316 | 0, 317 | 4, 318 | 32, 319 | 36, 320 | 32, 321 | 32, 322 | 0, 323 | 32, 324 | 32, 325 | 0, 326 | 0, 327 | 4, 328 | 36, 329 | 4, 330 | 36, 331 | 36, 332 | 4, 333 | 36, 334 | 0, 335 | 4, 336 | 0, 337 | 36, 338 | 4, 339 | 4, 340 | 4, 341 | 0, 342 | 36, 343 | 36, 344 | 36 345 | -------------------------------------------------------------------------------- /telecom/viterb00/datasets/gettref.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eembc/telebench/ae6fc3399e1d705b157f5926aa3c4cee5f53a52b/telecom/viterb00/datasets/gettref.dat -------------------------------------------------------------------------------- /telecom/viterb00/datasets/ones_golden.dat: -------------------------------------------------------------------------------- 1 | -1, 2 | -1, 3 | -1, 4 | -1, 5 | -1, 6 | -1, 7 | -1, 8 | -1, 9 | -1, 10 | -1, 11 | -1, 12 | -1, 13 | -1, 14 | -1, 15 | -1, 16 | -1, 17 | -1, 18 | -1, 19 | -1, 20 | -1, 21 | -1, 22 | 57344 23 | -------------------------------------------------------------------------------- /telecom/viterb00/datasets/onesi.dat: -------------------------------------------------------------------------------- 1 | 0, 2 | 32, 3 | 36, 4 | 0, 5 | 4, 6 | 32, 7 | 32, 8 | 32, 9 | 32, 10 | 32, 11 | 32, 12 | 32, 13 | 0, 14 | 32, 15 | 0, 16 | 32, 17 | 32, 18 | 32, 19 | 32, 20 | 32, 21 | 4, 22 | 32, 23 | 32, 24 | 36, 25 | 32, 26 | 32, 27 | 32, 28 | 32, 29 | 32, 30 | 32, 31 | 32, 32 | 32, 33 | 32, 34 | 32, 35 | 32, 36 | 32, 37 | 32, 38 | 32, 39 | 0, 40 | 0, 41 | 32, 42 | 32, 43 | 32, 44 | 32, 45 | 32, 46 | 32, 47 | 36, 48 | 32, 49 | 32, 50 | 32, 51 | 32, 52 | 32, 53 | 0, 54 | 32, 55 | 32, 56 | 32, 57 | 32, 58 | 0, 59 | 32, 60 | 32, 61 | 32, 62 | 32, 63 | 32, 64 | 32, 65 | 32, 66 | 32, 67 | 32, 68 | 32, 69 | 0, 70 | 32, 71 | 4, 72 | 32, 73 | 32, 74 | 32, 75 | 32, 76 | 32, 77 | 32, 78 | 32, 79 | 36, 80 | 32, 81 | 32, 82 | 32, 83 | 32, 84 | 32, 85 | 0, 86 | 32, 87 | 32, 88 | 32, 89 | 32, 90 | 36, 91 | 32, 92 | 32, 93 | 32, 94 | 32, 95 | 36, 96 | 32, 97 | 32, 98 | 32, 99 | 32, 100 | 32, 101 | 32, 102 | 32, 103 | 32, 104 | 32, 105 | 32, 106 | 32, 107 | 32, 108 | 32, 109 | 0, 110 | 32, 111 | 32, 112 | 32, 113 | 32, 114 | 36, 115 | 32, 116 | 32, 117 | 32, 118 | 32, 119 | 32, 120 | 32, 121 | 0, 122 | 32, 123 | 32, 124 | 32, 125 | 32, 126 | 32, 127 | 32, 128 | 32, 129 | 32, 130 | 32, 131 | 32, 132 | 36, 133 | 32, 134 | 32, 135 | 32, 136 | 32, 137 | 32, 138 | 32, 139 | 0, 140 | 32, 141 | 32, 142 | 36, 143 | 32, 144 | 32, 145 | 32, 146 | 32, 147 | 32, 148 | 32, 149 | 32, 150 | 32, 151 | 36, 152 | 32, 153 | 32, 154 | 32, 155 | 32, 156 | 32, 157 | 32, 158 | 32, 159 | 32, 160 | 32, 161 | 32, 162 | 36, 163 | 32, 164 | 0, 165 | 32, 166 | 32, 167 | 36, 168 | 32, 169 | 32, 170 | 32, 171 | 32, 172 | 32, 173 | 36, 174 | 0, 175 | 32, 176 | 32, 177 | 36, 178 | 32, 179 | 32, 180 | 32, 181 | 32, 182 | 32, 183 | 32, 184 | 32, 185 | 32, 186 | 36, 187 | 32, 188 | 32, 189 | 32, 190 | 32, 191 | 32, 192 | 32, 193 | 32, 194 | 32, 195 | 32, 196 | 32, 197 | 32, 198 | 32, 199 | 32, 200 | 32, 201 | 32, 202 | 36, 203 | 32, 204 | 32, 205 | 32, 206 | 32, 207 | 32, 208 | 32, 209 | 32, 210 | 32, 211 | 32, 212 | 36, 213 | 32, 214 | 32, 215 | 36, 216 | 32, 217 | 32, 218 | 32, 219 | 32, 220 | 32, 221 | 32, 222 | 32, 223 | 32, 224 | 32, 225 | 32, 226 | 32, 227 | 32, 228 | 32, 229 | 32, 230 | 32, 231 | 32, 232 | 32, 233 | 32, 234 | 32, 235 | 32, 236 | 32, 237 | 32, 238 | 0, 239 | 32, 240 | 32, 241 | 32, 242 | 32, 243 | 32, 244 | 32, 245 | 32, 246 | 32, 247 | 32, 248 | 32, 249 | 32, 250 | 32, 251 | 32, 252 | 32, 253 | 32, 254 | 0, 255 | 36, 256 | 32, 257 | 32, 258 | 32, 259 | 32, 260 | 32, 261 | 32, 262 | 36, 263 | 32, 264 | 32, 265 | 32, 266 | 32, 267 | 32, 268 | 36, 269 | 32, 270 | 32, 271 | 32, 272 | 32, 273 | 32, 274 | 36, 275 | 32, 276 | 32, 277 | 32, 278 | 32, 279 | 32, 280 | 32, 281 | 32, 282 | 32, 283 | 32, 284 | 32, 285 | 32, 286 | 32, 287 | 0, 288 | 32, 289 | 32, 290 | 32, 291 | 32, 292 | 32, 293 | 0, 294 | 32, 295 | 32, 296 | 32, 297 | 32, 298 | 32, 299 | 32, 300 | 32, 301 | 36, 302 | 32, 303 | 32, 304 | 32, 305 | 32, 306 | 32, 307 | 32, 308 | 32, 309 | 32, 310 | 32, 311 | 32, 312 | 32, 313 | 32, 314 | 32, 315 | 32, 316 | 32, 317 | 36, 318 | 32, 319 | 32, 320 | 32, 321 | 32, 322 | 0, 323 | 0, 324 | 0, 325 | 32, 326 | 32, 327 | 32, 328 | 32, 329 | 32, 330 | 32, 331 | 32, 332 | 32, 333 | 36, 334 | 32, 335 | 32, 336 | 32, 337 | 32, 338 | 32, 339 | 0, 340 | 4, 341 | 36, 342 | 32, 343 | 4, 344 | 0 345 | -------------------------------------------------------------------------------- /telecom/viterb00/datasets/onesref.dat: -------------------------------------------------------------------------------- 1 | ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff e000 2 | <00> 3 | -------------------------------------------------------------------------------- /telecom/viterb00/datasets/onest.dat: -------------------------------------------------------------------------------- 1 | 0 2 | 32 3 | 36 4 | 0 5 | 4 6 | 32 7 | 32 8 | 32 9 | 32 10 | 32 11 | 32 12 | 32 13 | 0 14 | 32 15 | 0 16 | 32 17 | 32 18 | 32 19 | 32 20 | 32 21 | 4 22 | 32 23 | 32 24 | 36 25 | 32 26 | 32 27 | 32 28 | 32 29 | 32 30 | 32 31 | 32 32 | 32 33 | 32 34 | 32 35 | 32 36 | 32 37 | 32 38 | 32 39 | 0 40 | 0 41 | 32 42 | 32 43 | 32 44 | 32 45 | 32 46 | 32 47 | 36 48 | 32 49 | 32 50 | 32 51 | 32 52 | 32 53 | 0 54 | 32 55 | 32 56 | 32 57 | 32 58 | 0 59 | 32 60 | 32 61 | 32 62 | 32 63 | 32 64 | 32 65 | 32 66 | 32 67 | 32 68 | 32 69 | 0 70 | 32 71 | 4 72 | 32 73 | 32 74 | 32 75 | 32 76 | 32 77 | 32 78 | 32 79 | 36 80 | 32 81 | 32 82 | 32 83 | 32 84 | 32 85 | 0 86 | 32 87 | 32 88 | 32 89 | 32 90 | 36 91 | 32 92 | 32 93 | 32 94 | 32 95 | 36 96 | 32 97 | 32 98 | 32 99 | 32 100 | 32 101 | 32 102 | 32 103 | 32 104 | 32 105 | 32 106 | 32 107 | 32 108 | 32 109 | 0 110 | 32 111 | 32 112 | 32 113 | 32 114 | 36 115 | 32 116 | 32 117 | 32 118 | 32 119 | 32 120 | 32 121 | 0 122 | 32 123 | 32 124 | 32 125 | 32 126 | 32 127 | 32 128 | 32 129 | 32 130 | 32 131 | 32 132 | 36 133 | 32 134 | 32 135 | 32 136 | 32 137 | 32 138 | 32 139 | 0 140 | 32 141 | 32 142 | 36 143 | 32 144 | 32 145 | 32 146 | 32 147 | 32 148 | 32 149 | 32 150 | 32 151 | 36 152 | 32 153 | 32 154 | 32 155 | 32 156 | 32 157 | 32 158 | 32 159 | 32 160 | 32 161 | 32 162 | 36 163 | 32 164 | 0 165 | 32 166 | 32 167 | 36 168 | 32 169 | 32 170 | 32 171 | 32 172 | 32 173 | 36 174 | 0 175 | 32 176 | 32 177 | 36 178 | 32 179 | 32 180 | 32 181 | 32 182 | 32 183 | 32 184 | 32 185 | 32 186 | 36 187 | 32 188 | 32 189 | 32 190 | 32 191 | 32 192 | 32 193 | 32 194 | 32 195 | 32 196 | 32 197 | 32 198 | 32 199 | 32 200 | 32 201 | 32 202 | 36 203 | 32 204 | 32 205 | 32 206 | 32 207 | 32 208 | 32 209 | 32 210 | 32 211 | 32 212 | 36 213 | 32 214 | 32 215 | 36 216 | 32 217 | 32 218 | 32 219 | 32 220 | 32 221 | 32 222 | 32 223 | 32 224 | 32 225 | 32 226 | 32 227 | 32 228 | 32 229 | 32 230 | 32 231 | 32 232 | 32 233 | 32 234 | 32 235 | 32 236 | 32 237 | 32 238 | 0 239 | 32 240 | 32 241 | 32 242 | 32 243 | 32 244 | 32 245 | 32 246 | 32 247 | 32 248 | 32 249 | 32 250 | 32 251 | 32 252 | 32 253 | 32 254 | 0 255 | 36 256 | 32 257 | 32 258 | 32 259 | 32 260 | 32 261 | 32 262 | 36 263 | 32 264 | 32 265 | 32 266 | 32 267 | 32 268 | 36 269 | 32 270 | 32 271 | 32 272 | 32 273 | 32 274 | 36 275 | 32 276 | 32 277 | 32 278 | 32 279 | 32 280 | 32 281 | 32 282 | 32 283 | 32 284 | 32 285 | 32 286 | 32 287 | 0 288 | 32 289 | 32 290 | 32 291 | 32 292 | 32 293 | 0 294 | 32 295 | 32 296 | 32 297 | 32 298 | 32 299 | 32 300 | 32 301 | 36 302 | 32 303 | 32 304 | 32 305 | 32 306 | 32 307 | 32 308 | 32 309 | 32 310 | 32 311 | 32 312 | 32 313 | 32 314 | 32 315 | 32 316 | 32 317 | 36 318 | 32 319 | 32 320 | 32 321 | 32 322 | 0 323 | 0 324 | 0 325 | 32 326 | 32 327 | 32 328 | 32 329 | 32 330 | 32 331 | 32 332 | 32 333 | 36 334 | 32 335 | 32 336 | 32 337 | 32 338 | 32 339 | 0 340 | 4 341 | 36 342 | 32 343 | 4 344 | 0 345 | -------------------------------------------------------------------------------- /telecom/viterb00/datasets/toggle_golden.dat: -------------------------------------------------------------------------------- 1 | 0x5555, 2 | 0x5555, 3 | 0x5555, 4 | 0x5555, 5 | 0x5555, 6 | 0x5555, 7 | 0x5555, 8 | 0x5555, 9 | 0x5555, 10 | 0x5555, 11 | 0x5460, 12 | 0x5bad, 13 | 0x1855, 14 | 0x5548, 15 | 0xc604, 16 | 0x6055, 17 | 0x5555, 18 | 0x5555, 19 | 0x5555, 20 | 0x5550, 21 | 0x0000, 22 | 0x0000 23 | -------------------------------------------------------------------------------- /telecom/viterb00/datasets/togglei.dat: -------------------------------------------------------------------------------- 1 | 36 , 2 | 32 , 3 | 4 , 4 | 4 , 5 | 32 , 6 | 0 , 7 | 4 , 8 | 0 , 9 | 4 , 10 | 0 , 11 | 4 , 12 | 0 , 13 | 4 , 14 | 0 , 15 | 4 , 16 | 4 , 17 | 4 , 18 | 0 , 19 | 4 , 20 | 0 , 21 | 4 , 22 | 0 , 23 | 4 , 24 | 0 , 25 | 36 , 26 | 0 , 27 | 4 , 28 | 0 , 29 | 4 , 30 | 0 , 31 | 4 , 32 | 0 , 33 | 4 , 34 | 0 , 35 | 4 , 36 | 0 , 37 | 4 , 38 | 0 , 39 | 0 , 40 | 4 , 41 | 4 , 42 | 4 , 43 | 4 , 44 | 0 , 45 | 4 , 46 | 0 , 47 | 4 , 48 | 0 , 49 | 4 , 50 | 0 , 51 | 4 , 52 | 0 , 53 | 4 , 54 | 0 , 55 | 4 , 56 | 32 , 57 | 4 , 58 | 0 , 59 | 4 , 60 | 0 , 61 | 4 , 62 | 0 , 63 | 4 , 64 | 32 , 65 | 4 , 66 | 0 , 67 | 0 , 68 | 0 , 69 | 4 , 70 | 0 , 71 | 4 , 72 | 0 , 73 | 4 , 74 | 0 , 75 | 4 , 76 | 0 , 77 | 4 , 78 | 0 , 79 | 4 , 80 | 4 , 81 | 4 , 82 | 0 , 83 | 4 , 84 | 0 , 85 | 4 , 86 | 0 , 87 | 4 , 88 | 0 , 89 | 4 , 90 | 0 , 91 | 4 , 92 | 0 , 93 | 4 , 94 | 32 , 95 | 4 , 96 | 4 , 97 | 4 , 98 | 0 , 99 | 4 , 100 | 0 , 101 | 4 , 102 | 0 , 103 | 4 , 104 | 0 , 105 | 0 , 106 | 0 , 107 | 4 , 108 | 0 , 109 | 4 , 110 | 0 , 111 | 4 , 112 | 0 , 113 | 4 , 114 | 0 , 115 | 4 , 116 | 0 , 117 | 4 , 118 | 0 , 119 | 4 , 120 | 0 , 121 | 4 , 122 | 0 , 123 | 36 , 124 | 0 , 125 | 4 , 126 | 0 , 127 | 4 , 128 | 4 , 129 | 4 , 130 | 0 , 131 | 4 , 132 | 0 , 133 | 4 , 134 | 0 , 135 | 4 , 136 | 0 , 137 | 4 , 138 | 32 , 139 | 4 , 140 | 32 , 141 | 4 , 142 | 0 , 143 | 4 , 144 | 0 , 145 | 4 , 146 | 0 , 147 | 4 , 148 | 32 , 149 | 4 , 150 | 0 , 151 | 4 , 152 | 0 , 153 | 4 , 154 | 0 , 155 | 4 , 156 | 0 , 157 | 36 , 158 | 0 , 159 | 4 , 160 | 0 , 161 | 4 , 162 | 0 , 163 | 4 , 164 | 0 , 165 | 4 , 166 | 0 , 167 | 4 , 168 | 32 , 169 | 36 , 170 | 0 , 171 | 4 , 172 | 0 , 173 | 4 , 174 | 0 , 175 | 4 , 176 | 0 , 177 | 4 , 178 | 4 , 179 | 4 , 180 | 4 , 181 | 4 , 182 | 4 , 183 | 4 , 184 | 0 , 185 | 4 , 186 | 0 , 187 | 36 , 188 | 0 , 189 | 4 , 190 | 0 , 191 | 4 , 192 | 0 , 193 | 4 , 194 | 0 , 195 | 36 , 196 | 0 , 197 | 4 , 198 | 0 , 199 | 4 , 200 | 0 , 201 | 4 , 202 | 36 , 203 | 4 , 204 | 4 , 205 | 4 , 206 | 0 , 207 | 4 , 208 | 0 , 209 | 4 , 210 | 0 , 211 | 4 , 212 | 0 , 213 | 4 , 214 | 0 , 215 | 4 , 216 | 0 , 217 | 4 , 218 | 0 , 219 | 4 , 220 | 32 , 221 | 0 , 222 | 0 , 223 | 4 , 224 | 0 , 225 | 4 , 226 | 0 , 227 | 0 , 228 | 0 , 229 | 4 , 230 | 32 , 231 | 4 , 232 | 0 , 233 | 4 , 234 | 0 , 235 | 4 , 236 | 4 , 237 | 36 , 238 | 0 , 239 | 4 , 240 | 32 , 241 | 4 , 242 | 0 , 243 | 4 , 244 | 0 , 245 | 4 , 246 | 0 , 247 | 4 , 248 | 0 , 249 | 4 , 250 | 0 , 251 | 4 , 252 | 0 , 253 | 32 , 254 | 0 , 255 | 4 , 256 | 0 , 257 | 4 , 258 | 0 , 259 | 4 , 260 | 0 , 261 | 4 , 262 | 0 , 263 | 4 , 264 | 0 , 265 | 4 , 266 | 0 , 267 | 0 , 268 | 0 , 269 | 4 , 270 | 0 , 271 | 4 , 272 | 0 , 273 | 4 , 274 | 0 , 275 | 4 , 276 | 0 , 277 | 4 , 278 | 0 , 279 | 4 , 280 | 0 , 281 | 4 , 282 | 0 , 283 | 4 , 284 | 32 , 285 | 4 , 286 | 0 , 287 | 4 , 288 | 0 , 289 | 4 , 290 | 0 , 291 | 4 , 292 | 0 , 293 | 4 , 294 | 0 , 295 | 4 , 296 | 0 , 297 | 0 , 298 | 0 , 299 | 4 , 300 | 0 , 301 | 4 , 302 | 0 , 303 | 4 , 304 | 0 , 305 | 4 , 306 | 0 , 307 | 4 , 308 | 0 , 309 | 4 , 310 | 0 , 311 | 4 , 312 | 0 , 313 | 4 , 314 | 0 , 315 | 4 , 316 | 0 , 317 | 4 , 318 | 36 , 319 | 36 , 320 | 32 , 321 | 0 , 322 | 36 , 323 | 36 , 324 | 36 , 325 | 36 , 326 | 36 , 327 | 36 , 328 | 36 , 329 | 32 , 330 | 36 , 331 | 36 , 332 | 36 , 333 | 36 , 334 | 36 , 335 | 36 , 336 | 32 , 337 | 36 , 338 | 36 , 339 | 36 , 340 | 36 , 341 | 36 , 342 | 4 , 343 | 36 , 344 | 4 345 | -------------------------------------------------------------------------------- /telecom/viterb00/datasets/toggleref.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eembc/telebench/ae6fc3399e1d705b157f5926aa3c4cee5f53a52b/telecom/viterb00/datasets/toggleref.dat -------------------------------------------------------------------------------- /telecom/viterb00/datasets/togglet.dat: -------------------------------------------------------------------------------- 1 | 36 2 | 32 3 | 4 4 | 4 5 | 32 6 | 0 7 | 4 8 | 0 9 | 4 10 | 0 11 | 4 12 | 0 13 | 4 14 | 0 15 | 4 16 | 4 17 | 4 18 | 0 19 | 4 20 | 0 21 | 4 22 | 0 23 | 4 24 | 0 25 | 36 26 | 0 27 | 4 28 | 0 29 | 4 30 | 0 31 | 4 32 | 0 33 | 4 34 | 0 35 | 4 36 | 0 37 | 4 38 | 0 39 | 0 40 | 4 41 | 4 42 | 4 43 | 4 44 | 0 45 | 4 46 | 0 47 | 4 48 | 0 49 | 4 50 | 0 51 | 4 52 | 0 53 | 4 54 | 0 55 | 4 56 | 32 57 | 4 58 | 0 59 | 4 60 | 0 61 | 4 62 | 0 63 | 4 64 | 32 65 | 4 66 | 0 67 | 0 68 | 0 69 | 4 70 | 0 71 | 4 72 | 0 73 | 4 74 | 0 75 | 4 76 | 0 77 | 4 78 | 0 79 | 4 80 | 4 81 | 4 82 | 0 83 | 4 84 | 0 85 | 4 86 | 0 87 | 4 88 | 0 89 | 4 90 | 0 91 | 4 92 | 0 93 | 4 94 | 32 95 | 4 96 | 4 97 | 4 98 | 0 99 | 4 100 | 0 101 | 4 102 | 0 103 | 4 104 | 0 105 | 0 106 | 0 107 | 4 108 | 0 109 | 4 110 | 0 111 | 4 112 | 0 113 | 4 114 | 0 115 | 4 116 | 0 117 | 4 118 | 0 119 | 4 120 | 0 121 | 4 122 | 0 123 | 36 124 | 0 125 | 4 126 | 0 127 | 4 128 | 4 129 | 4 130 | 0 131 | 4 132 | 0 133 | 4 134 | 0 135 | 4 136 | 0 137 | 4 138 | 32 139 | 4 140 | 32 141 | 4 142 | 0 143 | 4 144 | 0 145 | 4 146 | 0 147 | 4 148 | 32 149 | 4 150 | 0 151 | 4 152 | 0 153 | 4 154 | 0 155 | 4 156 | 0 157 | 36 158 | 0 159 | 4 160 | 0 161 | 4 162 | 0 163 | 4 164 | 0 165 | 4 166 | 0 167 | 4 168 | 32 169 | 36 170 | 0 171 | 4 172 | 0 173 | 4 174 | 0 175 | 4 176 | 0 177 | 4 178 | 4 179 | 4 180 | 4 181 | 4 182 | 4 183 | 4 184 | 0 185 | 4 186 | 0 187 | 36 188 | 0 189 | 4 190 | 0 191 | 4 192 | 0 193 | 4 194 | 0 195 | 36 196 | 0 197 | 4 198 | 0 199 | 4 200 | 0 201 | 4 202 | 36 203 | 4 204 | 4 205 | 4 206 | 0 207 | 4 208 | 0 209 | 4 210 | 0 211 | 4 212 | 0 213 | 4 214 | 0 215 | 4 216 | 0 217 | 4 218 | 0 219 | 4 220 | 32 221 | 0 222 | 0 223 | 4 224 | 0 225 | 4 226 | 0 227 | 0 228 | 0 229 | 4 230 | 32 231 | 4 232 | 0 233 | 4 234 | 0 235 | 4 236 | 4 237 | 36 238 | 0 239 | 4 240 | 32 241 | 4 242 | 0 243 | 4 244 | 0 245 | 4 246 | 0 247 | 4 248 | 0 249 | 4 250 | 0 251 | 4 252 | 0 253 | 32 254 | 0 255 | 4 256 | 0 257 | 4 258 | 0 259 | 4 260 | 0 261 | 4 262 | 0 263 | 4 264 | 0 265 | 4 266 | 0 267 | 0 268 | 0 269 | 4 270 | 0 271 | 4 272 | 0 273 | 4 274 | 0 275 | 4 276 | 0 277 | 4 278 | 0 279 | 4 280 | 0 281 | 4 282 | 0 283 | 4 284 | 32 285 | 4 286 | 0 287 | 4 288 | 0 289 | 4 290 | 0 291 | 4 292 | 0 293 | 4 294 | 0 295 | 4 296 | 0 297 | 0 298 | 0 299 | 4 300 | 0 301 | 4 302 | 0 303 | 4 304 | 0 305 | 4 306 | 0 307 | 4 308 | 0 309 | 4 310 | 0 311 | 4 312 | 0 313 | 4 314 | 0 315 | 4 316 | 0 317 | 4 318 | 36 319 | 36 320 | 32 321 | 0 322 | 36 323 | 36 324 | 36 325 | 36 326 | 36 327 | 36 328 | 36 329 | 32 330 | 36 331 | 36 332 | 36 333 | 36 334 | 36 335 | 36 336 | 32 337 | 36 338 | 36 339 | 36 340 | 36 341 | 36 342 | 4 343 | 36 344 | 4 345 | -------------------------------------------------------------------------------- /telecom/viterb00/datasets/zeros_golden.dat: -------------------------------------------------------------------------------- 1 | 0, 2 | 0, 3 | 0, 4 | 0, 5 | 0, 6 | 0, 7 | 0, 8 | 0, 9 | 0, 10 | 0, 11 | 0, 12 | 0, 13 | 0, 14 | 0, 15 | 0, 16 | 0, 17 | 0, 18 | 0, 19 | 0, 20 | 0, 21 | 0, 22 | 0 23 | -------------------------------------------------------------------------------- /telecom/viterb00/datasets/zerosi.dat: -------------------------------------------------------------------------------- 1 | 36 , 2 | 36 , 3 | 36 , 4 | 36 , 5 | 36 , 6 | 36 , 7 | 36 , 8 | 36 , 9 | 36 , 10 | 36 , 11 | 36 , 12 | 36 , 13 | 36 , 14 | 36 , 15 | 36 , 16 | 36 , 17 | 36 , 18 | 36 , 19 | 36 , 20 | 36 , 21 | 36 , 22 | 36 , 23 | 32 , 24 | 4 , 25 | 36 , 26 | 36 , 27 | 36 , 28 | 36 , 29 | 36 , 30 | 36 , 31 | 36 , 32 | 36 , 33 | 36 , 34 | 36 , 35 | 36 , 36 | 36 , 37 | 36 , 38 | 36 , 39 | 36 , 40 | 36 , 41 | 36 , 42 | 36 , 43 | 36 , 44 | 36 , 45 | 36 , 46 | 36 , 47 | 36 , 48 | 36 , 49 | 36 , 50 | 36 , 51 | 36 , 52 | 36 , 53 | 36 , 54 | 36 , 55 | 36 , 56 | 36 , 57 | 36 , 58 | 36 , 59 | 36 , 60 | 36 , 61 | 36 , 62 | 36 , 63 | 36 , 64 | 36 , 65 | 36 , 66 | 36 , 67 | 36 , 68 | 36 , 69 | 36 , 70 | 36 , 71 | 36 , 72 | 36 , 73 | 36 , 74 | 36 , 75 | 36 , 76 | 36 , 77 | 36 , 78 | 36 , 79 | 36 , 80 | 36 , 81 | 36 , 82 | 36 , 83 | 36 , 84 | 36 , 85 | 36 , 86 | 36 , 87 | 36 , 88 | 4 , 89 | 36 , 90 | 36 , 91 | 36 , 92 | 36 , 93 | 36 , 94 | 36 , 95 | 36 , 96 | 36 , 97 | 36 , 98 | 36 , 99 | 36 , 100 | 36 , 101 | 36 , 102 | 36 , 103 | 36 , 104 | 36 , 105 | 36 , 106 | 36 , 107 | 36 , 108 | 36 , 109 | 36 , 110 | 36 , 111 | 36 , 112 | 36 , 113 | 36 , 114 | 36 , 115 | 36 , 116 | 36 , 117 | 32 , 118 | 36 , 119 | 36 , 120 | 36 , 121 | 36 , 122 | 36 , 123 | 36 , 124 | 36 , 125 | 36 , 126 | 36 , 127 | 36 , 128 | 32 , 129 | 4 , 130 | 36 , 131 | 36 , 132 | 36 , 133 | 36 , 134 | 36 , 135 | 36 , 136 | 36 , 137 | 36 , 138 | 36 , 139 | 36 , 140 | 36 , 141 | 36 , 142 | 36 , 143 | 36 , 144 | 36 , 145 | 36 , 146 | 36 , 147 | 36 , 148 | 36 , 149 | 36 , 150 | 36 , 151 | 36 , 152 | 36 , 153 | 36 , 154 | 36 , 155 | 36 , 156 | 36 , 157 | 36 , 158 | 36 , 159 | 36 , 160 | 4 , 161 | 36 , 162 | 36 , 163 | 36 , 164 | 36 , 165 | 4 , 166 | 36 , 167 | 36 , 168 | 36 , 169 | 36 , 170 | 36 , 171 | 36 , 172 | 36 , 173 | 36 , 174 | 36 , 175 | 36 , 176 | 36 , 177 | 36 , 178 | 36 , 179 | 36 , 180 | 36 , 181 | 36 , 182 | 4 , 183 | 36 , 184 | 36 , 185 | 36 , 186 | 36 , 187 | 36 , 188 | 36 , 189 | 36 , 190 | 36 , 191 | 36 , 192 | 36 , 193 | 4 , 194 | 36 , 195 | 36 , 196 | 36 , 197 | 36 , 198 | 36 , 199 | 36 , 200 | 36 , 201 | 32 , 202 | 36 , 203 | 36 , 204 | 36 , 205 | 36 , 206 | 36 , 207 | 36 , 208 | 36 , 209 | 36 , 210 | 36 , 211 | 36 , 212 | 36 , 213 | 36 , 214 | 36 , 215 | 36 , 216 | 36 , 217 | 36 , 218 | 36 , 219 | 32 , 220 | 36 , 221 | 36 , 222 | 36 , 223 | 36 , 224 | 36 , 225 | 36 , 226 | 36 , 227 | 36 , 228 | 36 , 229 | 36 , 230 | 36 , 231 | 36 , 232 | 36 , 233 | 36 , 234 | 36 , 235 | 36 , 236 | 36 , 237 | 36 , 238 | 36 , 239 | 36 , 240 | 36 , 241 | 36 , 242 | 36 , 243 | 36 , 244 | 36 , 245 | 32 , 246 | 36 , 247 | 36 , 248 | 36 , 249 | 36 , 250 | 36 , 251 | 36 , 252 | 36 , 253 | 36 , 254 | 36 , 255 | 36 , 256 | 36 , 257 | 36 , 258 | 36 , 259 | 36 , 260 | 36 , 261 | 36 , 262 | 36 , 263 | 36 , 264 | 36 , 265 | 36 , 266 | 36 , 267 | 36 , 268 | 36 , 269 | 36 , 270 | 36 , 271 | 36 , 272 | 36 , 273 | 36 , 274 | 36 , 275 | 36 , 276 | 36 , 277 | 32 , 278 | 4 , 279 | 36 , 280 | 36 , 281 | 36 , 282 | 36 , 283 | 36 , 284 | 32 , 285 | 36 , 286 | 36 , 287 | 36 , 288 | 36 , 289 | 36 , 290 | 36 , 291 | 36 , 292 | 36 , 293 | 36 , 294 | 36 , 295 | 36 , 296 | 4 , 297 | 36 , 298 | 36 , 299 | 36 , 300 | 36 , 301 | 36 , 302 | 36 , 303 | 36 , 304 | 36 , 305 | 36 , 306 | 36 , 307 | 36 , 308 | 36 , 309 | 36 , 310 | 36 , 311 | 36 , 312 | 36 , 313 | 36 , 314 | 36 , 315 | 36 , 316 | 36 , 317 | 36 , 318 | 36 , 319 | 36 , 320 | 36 , 321 | 36 , 322 | 36 , 323 | 36 , 324 | 36 , 325 | 36 , 326 | 36 , 327 | 36 , 328 | 36 , 329 | 32 , 330 | 36 , 331 | 36 , 332 | 36 , 333 | 36 , 334 | 36 , 335 | 36 , 336 | 4 , 337 | 36 , 338 | 36 , 339 | 36 , 340 | 4 , 341 | 36 , 342 | 36 , 343 | 36 , 344 | 36 345 | -------------------------------------------------------------------------------- /telecom/viterb00/datasets/zerosref.dat: -------------------------------------------------------------------------------- 1 | 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 2 | <00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00> 3 | -------------------------------------------------------------------------------- /telecom/viterb00/datasets/zerost.dat: -------------------------------------------------------------------------------- 1 | 36 2 | 36 3 | 36 4 | 36 5 | 36 6 | 36 7 | 36 8 | 36 9 | 36 10 | 36 11 | 36 12 | 36 13 | 36 14 | 36 15 | 36 16 | 36 17 | 36 18 | 36 19 | 36 20 | 36 21 | 36 22 | 36 23 | 32 24 | 4 25 | 36 26 | 36 27 | 36 28 | 36 29 | 36 30 | 36 31 | 36 32 | 36 33 | 36 34 | 36 35 | 36 36 | 36 37 | 36 38 | 36 39 | 36 40 | 36 41 | 36 42 | 36 43 | 36 44 | 36 45 | 36 46 | 36 47 | 36 48 | 36 49 | 36 50 | 36 51 | 36 52 | 36 53 | 36 54 | 36 55 | 36 56 | 36 57 | 36 58 | 36 59 | 36 60 | 36 61 | 36 62 | 36 63 | 36 64 | 36 65 | 36 66 | 36 67 | 36 68 | 36 69 | 36 70 | 36 71 | 36 72 | 36 73 | 36 74 | 36 75 | 36 76 | 36 77 | 36 78 | 36 79 | 36 80 | 36 81 | 36 82 | 36 83 | 36 84 | 36 85 | 36 86 | 36 87 | 36 88 | 4 89 | 36 90 | 36 91 | 36 92 | 36 93 | 36 94 | 36 95 | 36 96 | 36 97 | 36 98 | 36 99 | 36 100 | 36 101 | 36 102 | 36 103 | 36 104 | 36 105 | 36 106 | 36 107 | 36 108 | 36 109 | 36 110 | 36 111 | 36 112 | 36 113 | 36 114 | 36 115 | 36 116 | 36 117 | 32 118 | 36 119 | 36 120 | 36 121 | 36 122 | 36 123 | 36 124 | 36 125 | 36 126 | 36 127 | 36 128 | 32 129 | 4 130 | 36 131 | 36 132 | 36 133 | 36 134 | 36 135 | 36 136 | 36 137 | 36 138 | 36 139 | 36 140 | 36 141 | 36 142 | 36 143 | 36 144 | 36 145 | 36 146 | 36 147 | 36 148 | 36 149 | 36 150 | 36 151 | 36 152 | 36 153 | 36 154 | 36 155 | 36 156 | 36 157 | 36 158 | 36 159 | 36 160 | 4 161 | 36 162 | 36 163 | 36 164 | 36 165 | 4 166 | 36 167 | 36 168 | 36 169 | 36 170 | 36 171 | 36 172 | 36 173 | 36 174 | 36 175 | 36 176 | 36 177 | 36 178 | 36 179 | 36 180 | 36 181 | 36 182 | 4 183 | 36 184 | 36 185 | 36 186 | 36 187 | 36 188 | 36 189 | 36 190 | 36 191 | 36 192 | 36 193 | 4 194 | 36 195 | 36 196 | 36 197 | 36 198 | 36 199 | 36 200 | 36 201 | 32 202 | 36 203 | 36 204 | 36 205 | 36 206 | 36 207 | 36 208 | 36 209 | 36 210 | 36 211 | 36 212 | 36 213 | 36 214 | 36 215 | 36 216 | 36 217 | 36 218 | 36 219 | 32 220 | 36 221 | 36 222 | 36 223 | 36 224 | 36 225 | 36 226 | 36 227 | 36 228 | 36 229 | 36 230 | 36 231 | 36 232 | 36 233 | 36 234 | 36 235 | 36 236 | 36 237 | 36 238 | 36 239 | 36 240 | 36 241 | 36 242 | 36 243 | 36 244 | 36 245 | 32 246 | 36 247 | 36 248 | 36 249 | 36 250 | 36 251 | 36 252 | 36 253 | 36 254 | 36 255 | 36 256 | 36 257 | 36 258 | 36 259 | 36 260 | 36 261 | 36 262 | 36 263 | 36 264 | 36 265 | 36 266 | 36 267 | 36 268 | 36 269 | 36 270 | 36 271 | 36 272 | 36 273 | 36 274 | 36 275 | 36 276 | 36 277 | 32 278 | 4 279 | 36 280 | 36 281 | 36 282 | 36 283 | 36 284 | 32 285 | 36 286 | 36 287 | 36 288 | 36 289 | 36 290 | 36 291 | 36 292 | 36 293 | 36 294 | 36 295 | 36 296 | 4 297 | 36 298 | 36 299 | 36 300 | 36 301 | 36 302 | 36 303 | 36 304 | 36 305 | 36 306 | 36 307 | 36 308 | 36 309 | 36 310 | 36 311 | 36 312 | 36 313 | 36 314 | 36 315 | 36 316 | 36 317 | 36 318 | 36 319 | 36 320 | 36 321 | 36 322 | 36 323 | 36 324 | 36 325 | 36 326 | 36 327 | 36 328 | 36 329 | 32 330 | 36 331 | 36 332 | 36 333 | 36 334 | 36 335 | 36 336 | 4 337 | 36 338 | 36 339 | 36 340 | 4 341 | 36 342 | 36 343 | 36 344 | 36 345 | -------------------------------------------------------------------------------- /th/gcc/depgen.cml: -------------------------------------------------------------------------------- 1 | # ============================================================================ 2 | # 3 | # Copyright (C) EEMBC(R) All Rights Reserved 4 | # 5 | # This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | # Please refer to the license file (LICENSE.md) included with this code. 7 | # 8 | # ============================================================================ 9 | 10 | ## Built from Application Root (th/src,th/$(TOOLCHAIN)/al) 11 | # Harness Library Build 12 | 13 | 14 | # Applies to harness 15 | # Executed from Makefile, paths must be adjusted 16 | -tf ../th/gcc/harness.mak 17 | -b $(OBJ) 18 | -o $(OBJBUILD) 19 | -r "$(COM)" 20 | -co $(OBJOUT) 21 | -to $(OBJBUILD) 22 | -tb $(LITE)$(LIBTYPE) 23 | -tr "$(LIBRARY)" 24 | -ce $(LIBOUT) 25 | 26 | # The Regular Harness 27 | -t thobjs 28 | -I../th/x86/al 29 | -I../th/src 30 | -I. 31 | 32 | ../th/x86/al/*.c 33 | ../th/src/*.c 34 | 35 | -td # dump the th regular thobjs, 36 | 37 | -------------------------------------------------------------------------------- /th/src/anytoi.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | #ifndef ANYTOI_H 11 | #define ANYTOI_H 12 | 13 | #include "eembc_dt.h" 14 | 15 | /*------------------------------------------------------------------------------ 16 | * Values returned by find_num_type() 17 | */ 18 | 19 | #define T_DEC 1 20 | #define T_INT 2 21 | #define T_OCT 3 22 | #define T_HEX 4 23 | 24 | /*----------------------------------------------------------------------------*/ 25 | 26 | #ifdef __cplusplus 27 | extern "C" { 28 | #endif 29 | 30 | int find_num_type( const char *sp ); 31 | 32 | /* All these (word and dword) conversions are unsigned. */ 33 | /* Note that if the string holds a negative decimal value, the conversion */ 34 | /* will be signed, but the aanytoi() and anytol() functions will return */ 35 | /* the value as unsgined. In this case, merely cast the return */ 36 | /* value to an int or long. */ 37 | 38 | Word hextoi( const char *sp ); 39 | Word octtoi( const char *sp ); 40 | Word dectoi( const char *sp ); 41 | Word anytoi( const char *sp ); 42 | 43 | Dword hextol( const char *sp ); 44 | Dword octtol( const char *sp ); 45 | Dword dectol( const char *sp ); 46 | Dword anytol( const char *sp ); 47 | 48 | #ifdef __cplusplus 49 | } 50 | #endif 51 | #endif 52 | /*============================================================================== 53 | * ENDOF : ANYTOI.H 54 | * ===========================================================================*/ 55 | -------------------------------------------------------------------------------- /th/src/ascii.h: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | * NAME : $Workfile $ 3 | * $Revision $ 4 | * $Date $ 5 | * $Logfile $ 6 | * 7 | * DESCRIPTION : Defines names for all the ASCII control charactrs. 8 | * 9 | * TARGET : 16bit DOS 1.2 or better 10 | * TOOLS : Borland C++ 3.0 or 3.1 11 | * 12 | * MODIFICATION/REV HISTORY : 13 | * 14 | * 02/04/93 rgr Initial Version 15 | * 16 | ******************************************************************************/ 17 | 18 | #ifndef ASCII_H 19 | #define ASCII_H 20 | 21 | /*--------------------------------------------------------------------------*/ 22 | 23 | #define A_NUL '\000' /* 0 */ 24 | #define A_SOH '\001' /* 1 */ 25 | #define A_STX '\002' /* 2 */ 26 | #define A_ETX '\003' /* 3 */ 27 | #define A_EOT '\004' /* 4 */ 28 | #define A_ENQ '\005' /* 5 */ 29 | #define A_ACK '\006' /* 6 */ 30 | #define A_BEL '\007' /* 7 */ 31 | #define A_BS '\010' /* 8 */ 32 | #define A_TAB '\011' /* 9 */ 33 | #define A_HT '\011' /* 9 */ 34 | #define A_LF '\012' /* 10 */ 35 | #define A_VT '\013' /* 11 */ 36 | #define A_FF '\014' /* 12 */ 37 | #define A_CR '\015' /* 13 */ 38 | #define A_SO '\016' /* 14 */ 39 | #define A_SI '\017' /* 15 */ 40 | #define A_DLE '\020' /* 16 */ 41 | #define A_DC1 '\021' /* 17 */ 42 | #define A_XON '\021' /* 17 same as A_DC1 */ 43 | #define A_DC2 '\022' /* 18 */ 44 | #define A_DC3 '\023' /* 19 */ 45 | #define A_XOFF '\023' /* 19 same as A_DC3 */ 46 | #define A_DC4 '\024' /* 20 */ 47 | #define A_NAK '\025' /* 21 */ 48 | #define A_SYN '\026' /* 22 */ 49 | #define A_ETB '\027' /* 23 */ 50 | #define A_CAN '\030' /* 24 */ 51 | #define A_EM '\031' /* 25 */ 52 | #define A_SUB '\032' /* 26 */ 53 | #define A_ESC '\033' /* 27 */ 54 | #define A_FS '\034' /* 28 */ 55 | #define A_GS '\035' /* 29 */ 56 | #define A_RS '\036' /* 30 */ 57 | #define A_US '\037' /* 31 */ 58 | #define A_SP '\040' /* 32 SPACE */ 59 | #define A_DEL '\177' /* 0x7F DELETE */ 60 | 61 | #endif 62 | -------------------------------------------------------------------------------- /th/src/crc.c: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | 11 | #include "thlib.h" /* pick up prototypes from api */ 12 | 13 | 14 | /******************************************************************** 15 | Function: calc_crc 16 | Purpose: Compute crc16 a byte at a time 17 | Type: PUBLIC 18 | ********************************************************************/ 19 | 20 | #if CRC_CHECK || NON_INTRUSIVE_CRC_CHECK 21 | 22 | e_u16 Calc_crc8(e_u8 data, e_u16 crc ) 23 | { 24 | e_u8 i,x16,carry; 25 | 26 | for (i = 0; i < 8; i++) 27 | { 28 | x16 = (e_u8)((data & 1) ^ ((e_u8)crc & 1)); 29 | data >>= 1; 30 | if (x16 == 1) 31 | { 32 | crc ^= 0x4002; 33 | carry = 1; 34 | } 35 | else carry = 0; 36 | crc >>= 1; 37 | if (carry) 38 | crc |= 0x8000; 39 | else 40 | crc &= 0x7fff; 41 | } 42 | return crc; 43 | } 44 | /*********************************************************************/ 45 | e_u16 Calc_crc16( e_u16 data, e_u16 crc ) 46 | { 47 | 48 | crc = Calc_crc8( (e_u8)(data & 0x00FF ), crc ); 49 | crc = Calc_crc8( (e_u8)((data & 0xFF00)>>8), crc ); 50 | return crc; 51 | } 52 | 53 | 54 | /*********************************************************************/ 55 | e_u16 Calc_crc32( e_u32 data, e_u16 crc ) 56 | { 57 | 58 | crc = Calc_crc8( (e_u8)(data & 0x000000FF), crc ); 59 | crc = Calc_crc8( (e_u8)((data & 0x0000FF00)>>8), crc ); 60 | crc = Calc_crc8( (e_u8)((data & 0x00FF0000)>>16), crc ); 61 | crc = Calc_crc8( (e_u8)((data & 0xFF000000)>>24), crc ); 62 | 63 | return crc; 64 | } 65 | #endif 66 | -------------------------------------------------------------------------------- /th/src/heap.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | #ifndef HEAP_H 11 | #define HEAP_H 12 | 13 | #include "heapport.h" 14 | 15 | #ifdef __cplusplus 16 | extern "C" { 17 | #endif 18 | 19 | /*----------------------------------------------------------------------------*/ 20 | 21 | typedef struct 22 | { 23 | BlockSize size; /* total size of the heap */ 24 | BlockSize free; /* free (useable) space in the heap */ 25 | BlockSize num_free; /* number of free blocks */ 26 | BlockSize num_alloced; /* number of allocated blocks */ 27 | } 28 | HeapStats; 29 | 30 | /*----------------------------------------------------------------------------*/ 31 | 32 | void *heap_initialize( char *start, BlockSize size ); 33 | 34 | void *heap_alloc( void *heap, BlockSize size ); 35 | void heap_free( void *heap, void *buf ); 36 | void heap_reset( void *heap ); 37 | 38 | BlockSize heap_free_space( void *heap ); 39 | BlockSize heap_biggest_free_block( void *heap ); 40 | 41 | long heap_check( void *heap ); 42 | void heap_dump( void *heap ); 43 | 44 | void heap_stats( void *heap, HeapStats * stats ); 45 | 46 | /* Error values returned by heap_check() */ 47 | #define HEAP_OK (0x00000000) 48 | #define HERR_BAD_HEAP_STRUCT (0x00000001) 49 | #define HERR_FIRST_BLOCK_BAD (0x00000002) 50 | #define HERR_BLOCK_BAD (0x00000004) 51 | #define HERR_TOTAL_SIZE_BAD (0x00000008) 52 | #define HERR_FREE_SIZE_BAD (0x00000010) 53 | #define HERR_NUM_FREE_BAD (0x00000020) 54 | #define HERR_NUM_ALLOCED_BAD (0x00000040) 55 | #define HERR_PSIZE_BAD (0x00000080) 56 | #define HERR_BLOCK_TOO_SMALL (0x00000100) 57 | #define HERR_BLOCK_SIZE_MOD (0x00000200) 58 | #define HERR_FREE_ADJACENT (0x00000400) 59 | #define HERR_BAD_FREELPTR (0x00000800) 60 | #define HERR_FREELPTR_NN (0x00001000) /* free list pointe not null */ 61 | #define HERR_BAD_FL_PREV (0x00002000) /* bad free list previous ptr */ 62 | #define HERR_BAD_FL_NEXT (0x00004000) /* bad free list previous ptr */ 63 | #define HERR_BAD_FL_TOO_MANY (0x00008000) /* too many items in the free list */ 64 | #define HERR_BAD_FL_NOT_NUFF (0x00010000) /* not enough items in the free list */ 65 | #define HERR_BAD_PREV_LINK (0x00020000) /* bad previous link */ 66 | #define HERR_FL_BLOCK_BAD (0x00040000) /* a block in the free list is bad */ 67 | 68 | /*----------------------------------------------------------------------------*/ 69 | 70 | #ifdef __cplusplus 71 | } 72 | #endif 73 | 74 | #endif /* HEAP_H */ 75 | -------------------------------------------------------------------------------- /th/src/memmgr.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | #ifndef MEMMGR_H /* File Sentinal */ 11 | #define MEMMGR_H 12 | 13 | #include "thcfg.h" 14 | #include "thfli.h" 15 | #include "heap.h" 16 | 17 | /*----------------------------------------------------------------------------*/ 18 | 19 | #define MIN_MEMORY (4096) /* always keep 4k for the heap */ 20 | 21 | extern void *th_heap; /* the TH heap */ 22 | 23 | 24 | void mem_mgr_init( void ); 25 | void mem_heap_initialize( void ); 26 | FileDef *mem_alloc_file_space( const char *name, BlockSize size ); 27 | void mem_report_files( void ); 28 | void mem_report_info( void ); 29 | 30 | int mem_delete_newest_file( void ); 31 | void mem_delete_all_files( void ); 32 | FileDef *mem_get_file_def( const char *fn ); 33 | FileDef *mem_get_file_num( int n ); 34 | 35 | /*----------------------------------------------------------------------------*/ 36 | 37 | #endif /* File Sentinal */ 38 | 39 | -------------------------------------------------------------------------------- /th/src/printfe.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | #ifndef PRINTFE_H 11 | #define PRINTFE_H 12 | 13 | #ifndef THCFG_H 14 | #include "thcfg.h" 15 | #endif 16 | 17 | #if USE_TH_PRINTF 18 | 19 | #include 20 | 21 | #ifdef __cplusplus 22 | extern "C" { 23 | #endif 24 | 25 | /*----------------------------------------------------------------------------*/ 26 | 27 | typedef int (*sender) ( char c, void *ptr ); 28 | 29 | int printfe( sender sf, void *ptr, const char *fmt, va_list args ); 30 | 31 | int sprintf( char *s, const char *fmt, ... ); 32 | int vsprintf( char *s, const char *fmt, va_list args ); 33 | 34 | /*----------------------------------------------------------------------------*/ 35 | 36 | #ifdef __cplusplus 37 | } 38 | #endif 39 | 40 | #endif /* #if USE_TH_PRINTF */ 41 | 42 | 43 | #endif /* file sentinal */ 44 | 45 | -------------------------------------------------------------------------------- /th/src/ssubs.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | #ifndef SSUBS_H 11 | #define SSUBS_H 12 | 13 | #include "eembc_dt.h" 14 | 15 | 16 | /*- Function Prototypes ------------------------------------------------------*/ 17 | 18 | char last_char( char *s ); 19 | 20 | void char_remove( char *s, int i ); 21 | void char_remove_n( char *s, int i, int n ); 22 | 23 | void strip_l_spaces( char *s ); /* Leading */ 24 | void strip_lt_spaces( char *s ); /* Trailing */ 25 | void strip_t_spaces( char *s ); /* Leading & Trailing */ 26 | void strip_all_spaces( char *s ); /* All */ 27 | 28 | void make_simple_nl( char *str ); 29 | 30 | int is_all_white_space( const char *s ); 31 | 32 | int cpystr( char *dest, const char *src, int len ); 33 | int cpypaddstr( char *dest, const char *src, int len ); 34 | 35 | void paddstr( char *s, int len ); 36 | 37 | int tabs_to_spaces( char *line, int tab ); 38 | 39 | unsigned int conv_to_ui( const char *str ); 40 | unsigned long conv_to_ul( const char *str ); 41 | 42 | int str_cmp( const char *s1, const char *s2 ); 43 | int str_icmp( const char *s1, const char *s2 ); 44 | 45 | int xlate_nl_inplace( char *str ); 46 | int xlate_nl( const char *str, char *dest_buf ); 47 | 48 | #endif 49 | -------------------------------------------------------------------------------- /th/src/thal.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | #ifndef THAL_H /* File Sentinal */ 11 | #define THAL_H 12 | 13 | #include "thcfg.h" 14 | #include "heapport.h" 15 | 16 | #include 17 | 18 | #ifdef __cplusplus 19 | extern "C" { 20 | #endif 21 | 22 | /*------------------------------------------------------------------------------ 23 | * Global Defines 24 | */ 25 | 26 | #define FATAL_EXIT (-32766) 27 | 28 | /*------------------------------------------------------------------------------ 29 | * Global data 30 | */ 31 | 32 | #define PF_BUF_SIZE (1024) 33 | extern char pf_buf[ PF_BUF_SIZE ]; 34 | 35 | /*----------------------------------------------------------------------------*/ 36 | 37 | int al_lc_open( void ); 38 | void al_lc_close( void ); 39 | int al_write_con( const char *buf, size_t buf_size ); 40 | size_t al_read_con( char *buf, size_t buf_size ); 41 | size_t al_con_chars_avail( void ); 42 | 43 | size_t al_ticks( void ); 44 | size_t al_ticks_per_sec( void ); 45 | size_t al_tick_granularity( void ); 46 | 47 | void al_signal_start( void ); 48 | size_t al_signal_finished( void ); 49 | void al_exit( int exit_code, const char *fmt, va_list args ); 50 | void al_report_results( void ); 51 | 52 | extern char *mem_base; 53 | extern BlockSize mem_size; 54 | 55 | /*----------------------------------------------------------------------------*/ 56 | 57 | #ifdef __cplusplus /* Take this out if you don't need it */ 58 | } 59 | #endif 60 | 61 | #endif /* File Sentinal */ 62 | -------------------------------------------------------------------------------- /th/src/thassert.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | #if HAVE_ASSERT_H 11 | 12 | #include 13 | 14 | #elif !defined(ASSERT_H) 15 | 16 | #define ASSERT_H 17 | 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 24 | * assert functions coded to harness 25 | */ 26 | 27 | #ifndef NDEBUG 28 | extern void __assertfail( const char *msg, const char *cond, const char *file, int line ); 29 | 30 | #define assert(p) ((p) ? ((void)0) : \ 31 | __assertfail( "\n** ASSERT : %s, file %s, line %d\n", \ 32 | #p, __FILE__, __LINE__ )) 33 | #else 34 | #define assert() ((void)0) 35 | #endif 36 | 37 | /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 38 | * fatal error (just like assert, but always triggers) 39 | */ 40 | 41 | #ifndef NDEBUG 42 | extern void __fatal( const char* msg, const char* file, int line ); 43 | 44 | #define fatal() (__fatal( "\n** FATAL : file %s, line %d\n", \ 45 | __FILE__, __LINE__ ) ) 46 | #else 47 | #define fatal() ((void)0) 48 | #endif 49 | 50 | 51 | #ifdef __cplusplus 52 | } 53 | #endif 54 | 55 | #endif /* File sentinal */ 56 | 57 | -------------------------------------------------------------------------------- /th/src/therror.c: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | #include "eembc_dt.h" 11 | #include "therror.h" 12 | 13 | typedef struct error_desc 14 | { 15 | int error; 16 | const char *desc; 17 | } 18 | error_desc; 19 | 20 | 21 | static error_desc errors[] = 22 | { 23 | { THE_SUCCESS, "Success" }, 24 | { THE_FAILURE, "Failure" }, 25 | 26 | { THE_BAD_PTR, "pointer parameter is NULL" }, 27 | { THE_BAD_THDEF_VERSION, "THDef pointer did not point to a valid structure", }, 28 | { THE_BAD_TCDEF_VERSION, "TCDef pointer did not point to a valid structure" }, 29 | { THE_TC_INIT_FAILED, "Test component intialization failed" }, 30 | { THE_BAD_BASE_PTR, "Bad base pointer for Malloc init" }, 31 | { THE_BAD_SIZE, "The size parameter is bad" }, 32 | 33 | { -1, NULL } 34 | }; 35 | 36 | /*----------------------------------------------------------------------------- 37 | * FUNC : th_error_str 38 | * 39 | * DESC : Gets a textual description of an error 40 | * 41 | * PARAMS : the error value 42 | * 43 | * RETURNS: A pointer to a string describing the error. 44 | * --------------------------------------------------------------------------*/ 45 | 46 | const char *th_error_str( int error ) 47 | 48 | { 49 | int i; 50 | static const char *unknown = "Undefined Error"; 51 | 52 | /*YES! This is a straight forward linear search! Please keep it this way. 53 | * This avoids having to keep the list sorted (YUCH!) This is 54 | * does not need to be a high peroformance function. 55 | */ 56 | for (i = 0; errors[ i ] . desc != NULL; i++) 57 | { 58 | if (errors[ i ] . error == error) 59 | return errors[ i ] . desc; 60 | } 61 | 62 | return unknown; 63 | } 64 | -------------------------------------------------------------------------------- /th/src/therror.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | #ifndef TH_ERROR_H /* File Sentinal */ 11 | #define TH_ERROR_H 12 | 13 | #ifdef __cplusplus 14 | extern "C" { 15 | #endif 16 | 17 | /*------------------------------------------------------------------------------ 18 | * Error return values 19 | */ 20 | enum TH_ERRORS 21 | { 22 | THE_SUCCESS, /* Success! */ 23 | THE_FAILURE, /* Generic Falure... :( */ 24 | 25 | THE_BAD_PTR, /* a pointer parameter was NULL */ 26 | THE_BAD_THDEF_VERSION, /* the THDef pointer did not point to a valid structure */ 27 | THE_BAD_TCDEF_VERSION, /* the THDef pointer did not point to a valid structure */ 28 | THE_TC_INIT_FAILED, /* The test component intialization failed */ 29 | THE_BAD_BASE_PTR, /* Bad base pointer for Malloc init */ 30 | THE_BAD_SIZE, /* The size parameter is bad */ 31 | THE_OUT_OF_MEMORY /* The test ran out of memory */ 32 | }; 33 | 34 | const char *th_error_str( int error ); 35 | 36 | /*----------------------------------------------------------------------------*/ 37 | 38 | #ifdef __cplusplus 39 | } 40 | #endif 41 | 42 | #endif /* File Sentinal */ 43 | 44 | -------------------------------------------------------------------------------- /th/src/thvinfo.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | #ifndef THVINFO_H 11 | #define THVINFO_H 12 | 13 | /*----------------------------------------------------------------------------*/ 14 | 15 | #define EEMBC_TH_ID "EEMBC Portable Test Harness V4.000" 16 | 17 | #define EEMBC_TH_MAJOR 4 18 | #define EEMBC_TH_MINOR 0 19 | #define EEMBC_TH_STEP '0' 20 | #define EEMBC_TH_REVISION 0 21 | 22 | /*----------------------------------------------------------------------------*/ 23 | 24 | #endif /* THVINFO_H */ 25 | 26 | -------------------------------------------------------------------------------- /th/src/uuencode.c: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | /* 11 | * Simplified interface using UUENCODING 12 | * (as specified in GNU) 13 | * Writes it's output to stdout 14 | * Adopted by Sergei Larin 15 | */ 16 | 17 | #include "uuencode.h" 18 | 19 | #include 20 | 21 | /* 22 | * commented out 2/15/00 because sys/stat.h is not ANSI std. If you DO have this 23 | * file then uncomment this out and comment out the following two defines. arw 24 | */ 25 | #ifdef HAVE_SYS_STAT 26 | #include 27 | #else 28 | #define _S_IREAD 0000400 /* read permission, owner */ 29 | #define _S_IWRITE 0000200 /* write permission, owner */ 30 | #endif 31 | 32 | 33 | /* Standard encoding table. Base64 is not used*/ 34 | const Char uu_std[64] = 35 | { 36 | '`', '!', '"', '#', '$', '%', '&', '\'', 37 | '(', ')', '*', '+', ',', '-', '.', '/', 38 | '0', '1', '2', '3', '4', '5', '6', '7', 39 | '8', '9', ':', ';', '<', '=', '>', '?', 40 | '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 41 | 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 42 | 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 43 | 'X', 'Y', 'Z', '[', '\\', ']', '^', '_' 44 | }; 45 | 46 | /* Pointer to the translation table we currently use. */ 47 | const Char *trans_ptr = uu_std; 48 | 49 | /* ENC is the basic 1 character encoding function to make a char printing. */ 50 | #define ENC(Char) (trans_ptr[(Char) & 077]) 51 | 52 | /* 53 | * Gnu style uuencoding routine 54 | * encodes buffer raw_buffer of size raw_buf_len 55 | * 56 | */ 57 | 58 | n_void encode (const char *raw_buffer, n_int raw_buf_len) 59 | { 60 | register n_int ch, n = 0; 61 | n_int buf_cnt = 0; 62 | Char buf[80]; 63 | register Char *p = buf; 64 | 65 | 66 | if(!raw_buf_len || raw_buf_len <0 || !raw_buffer){ 67 | t_printf("Uuencode buffer parameters error.\n"); /* changed to t_printf() arw 2-14-00 */ 68 | return; 69 | } 70 | 71 | trans_ptr = uu_std; /* used by ENC macro */ 72 | 73 | while (1){ 74 | for(n = 0; n<45;n++){ 75 | if(n+buf_cnt >= raw_buf_len) break; 76 | buf[n] = raw_buffer[n+buf_cnt]; 77 | } 78 | buf_cnt += 45; 79 | 80 | if (n == 0) break; 81 | if (th_putchar (ENC (n)) == EOF) break; 82 | 83 | for (p = buf; n > 2; n -= 3, p += 3) 84 | { 85 | ch = *p >> 2; 86 | ch = ENC (ch); 87 | if (th_putchar ((Char) ch) == EOF) break; 88 | ch = ((*p << 4) & 060) | ((p[1] >> 4) & 017); 89 | ch = ENC (ch); 90 | if (th_putchar ((Char) ch) == EOF) break; 91 | ch = ((p[1] << 2) & 074) | ((p[2] >> 6) & 03); 92 | ch = ENC (ch); 93 | if (th_putchar ((Char) ch) == EOF) break; 94 | ch = p[2] & 077; 95 | ch = ENC (ch); 96 | if (th_putchar ((Char) ch) == EOF) break; 97 | } 98 | 99 | if (n != 0) break; 100 | if (th_putchar ('\n') == EOF) break; 101 | } 102 | 103 | while (n != 0){ 104 | Char c1 = *p; 105 | Char c2 = (Char) (n == 1 ? 0 : p[1]); 106 | 107 | ch = c1 >> 2; 108 | ch = ENC (ch); 109 | if (th_putchar ((Char) ch) == EOF) break; 110 | 111 | ch = ((c1 << 4) & 060) | ((c2 >> 4) & 017); 112 | ch = ENC (ch); 113 | if (th_putchar ((Char) ch) == EOF) break; 114 | 115 | if (n == 1) 116 | ch = ENC ('\0'); 117 | else{ 118 | ch = (c2 << 2) & 074; 119 | ch = ENC (ch); 120 | } 121 | if (th_putchar ((Char) ch) == EOF) break; 122 | ch = ENC ('\0'); 123 | if (th_putchar ((Char) ch) == EOF) break; 124 | th_putchar ('\n'); 125 | break; 126 | } 127 | 128 | th_putchar (ENC ('\0')); 129 | th_putchar ('\n'); 130 | } 131 | 132 | /* Larin 133 | * Code for uu pipe to upload file 134 | */ 135 | 136 | n_int uu_send_buf( const char* buf, n_int length, const char* fn ) 137 | { 138 | Dword mode; 139 | 140 | /* Force the stream to be with r/w permition */ 141 | mode = _S_IREAD | _S_IWRITE; 142 | /* write to the stdout */ 143 | t_printf ("begin %lo %s\n",mode,fn); 144 | encode(buf,length); 145 | t_printf ("end\n\n"); 146 | 147 | return 0; /* Success; */ 148 | } 149 | 150 | -------------------------------------------------------------------------------- /th/src/uuencode.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | 11 | #ifndef UUENCODE_H 12 | #define UUENCODE_H 13 | 14 | #include "thlib.h" 15 | 16 | int uu_send_buf( const char*, int, const char* ); 17 | int t_printf( const char *, ... ); 18 | n_void encode (const char *raw_buffer, n_int raw_buf_len); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /th/vc/depgen.cml: -------------------------------------------------------------------------------- 1 | # ============================================================================ 2 | # 3 | # Copyright (C) EEMBC(R) All Rights Reserved 4 | # 5 | # This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | # Please refer to the license file (LICENSE.md) included with this code. 7 | # 8 | # ============================================================================ 9 | 10 | ## Built from Application Root (th/src,th/$(TOOLCHAIN)/al) 11 | # Harness Library Build 12 | 13 | 14 | # Applies to harness 15 | -cq 16 | -tf ../th/vc/harness.mak 17 | -b $(OBJ) 18 | -o $(OBJBUILD) 19 | -r "$(COM)" 20 | -co $(OBJOUT) 21 | -to $(OBJBUILD) 22 | -tb $(LITE)$(LIBTYPE) 23 | -tr "$(LIBRARY)" 24 | -ce $(LIBOUT) 25 | 26 | # The Regular Harness 27 | -t thobjs 28 | -I../th/x86/al 29 | -I../th/src 30 | -I. 31 | 32 | ../th/x86/al/*.c 33 | ../th/src/*.c 34 | 35 | -td # dump the th regular thobjs, 36 | 37 | -------------------------------------------------------------------------------- /th/x86/al/heapport.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | #if !defined(HEAPPORT_H) 11 | #define HEAPPORT_H 12 | 13 | #include "thlib.h" 14 | 15 | /*------------------------------------------------------------------------------ 16 | * Note, we use the !defined() test here so that a value defined in 17 | * a make file or from an IDE will take precedence 18 | *----------------------------------------------------------------------------*/ 19 | 20 | #if !defined( TURN_ON_VERIFY_HEAP ) 21 | #define TURN_ON_VERIFY_HEAP 0 22 | #endif 23 | 24 | #if !defined( TURN_ON_DEBUG_HEAP ) 25 | #define TURN_ON_DEBUG_HEAP 0 26 | #endif 27 | 28 | /*------------------------------------------------------------------------------ 29 | * Heap Porting Interface for 32bit x86 30 | *----------------------------------------------------------------------------*/ 31 | 32 | /* Both of these macros must resolve to the void pointer (void*) type */ 33 | 34 | #define PTR_ADD( ptr, offset ) ((void*)((char*)(ptr) + (offset))) 35 | #define PTR_SUB( ptr, offset ) ((void*)((char*)(ptr) - (offset))) 36 | 37 | #if !defined(HEAP_ALIGN_V) 38 | #error HEAP_ALIGN_V not defined! (must be an even power of 2) 39 | #endif 40 | 41 | /* 42 | * This macro rounds up a number to an even power of HEAP_ALIGN_V 43 | */ 44 | #define HEAP_ALIGN(x) (((x) + ((HEAP_ALIGN_V)-1)) & ~((HEAP_ALIGN_V)-1)) 45 | 46 | #endif 47 | 48 | -------------------------------------------------------------------------------- /th_lite/gcc/depgen.cml: -------------------------------------------------------------------------------- 1 | # ============================================================================ 2 | # 3 | # Copyright (C) EEMBC(R) All Rights Reserved 4 | # 5 | # This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | # Please refer to the license file (LICENSE.md) included with this code. 7 | # 8 | # ============================================================================ 9 | 10 | ## Built from Application Root (../th_lite/src,../th_lite/$(TOOLCHAIN)/al) 11 | # Harness Library Build 12 | 13 | 14 | # Applies to harness 15 | -tf ../th_lite/gcc/harness.mak 16 | -b $(OBJ) 17 | -o $(OBJBUILD) 18 | -r "$(COM)" 19 | -co $(OBJOUT) 20 | -to $(OBJBUILD) 21 | -tb $(LITE)$(LIBTYPE) 22 | -tr "$(LIBRARY)" 23 | -ce $(LIBOUT) 24 | 25 | # The Lite Harness 26 | -t thobjs 27 | -I../th_lite/x86/al 28 | -I../th_lite/src 29 | -I. 30 | 31 | ../th_lite/x86/al/*.c 32 | ../th_lite/src/*.c 33 | 34 | -td # dump the th Lite thobjs, 35 | 36 | -------------------------------------------------------------------------------- /th_lite/gcc/harness.mak: -------------------------------------------------------------------------------- 1 | # File generated by Makerule.pl - DO NOT EDIT 2 | # Edit ../th_lite/gcc/depgen.cml to change 3 | # $Revision: 1.22 $ $Date: 2002/07/18 19:00:12 $ 4 | $(OBJBUILD)/thal$(OBJ) : \ 5 | ../th_lite/src/thlib.h ../th_lite/src/thal.h \ 6 | ../th_lite/src/therror.h \ 7 | ../th_lite/x86/al/eembc_dt.h \ 8 | ../th_lite/x86/al/thcfg.h \ 9 | ../th_lite/src/thvinfo.h ./harness.h 10 | $(OBJBUILD)/thal$(OBJ) : ../th_lite/x86/al/thal.c 11 | $(COM) $(OBJOUT)$(OBJBUILD)/thal$(OBJ) ../th_lite/x86/al/thal.c 12 | 13 | $(OBJBUILD)/crc$(OBJ) : \ 14 | ../th_lite/src/thlib.h \ 15 | ../th_lite/src/therror.h \ 16 | ../th_lite/x86/al/eembc_dt.h \ 17 | ../th_lite/x86/al/thcfg.h \ 18 | ../th_lite/src/thvinfo.h ../th_lite/src/thal.h \ 19 | ./harness.h 20 | $(OBJBUILD)/crc$(OBJ) : ../th_lite/src/crc.c 21 | $(COM) $(OBJOUT)$(OBJBUILD)/crc$(OBJ) ../th_lite/src/crc.c 22 | 23 | $(OBJBUILD)/heap$(OBJ) : \ 24 | ../th_lite/x86/al/eembc_dt.h \ 25 | ../th_lite/src/heap.h \ 26 | ../th_lite/src/thassert.h \ 27 | ../th_lite/x86/al/thcfg.h ./harness.h \ 28 | ../th_lite/src/thvinfo.h \ 29 | ../th_lite/x86/al/heapport.h \ 30 | ../th_lite/src/thlib.h \ 31 | ../th_lite/src/therror.h \ 32 | ../th_lite/src/thal.h 33 | $(OBJBUILD)/heap$(OBJ) : ../th_lite/src/heap.c 34 | $(COM) $(OBJOUT)$(OBJBUILD)/heap$(OBJ) ../th_lite/src/heap.c 35 | 36 | $(OBJBUILD)/thlib$(OBJ) : \ 37 | ../th_lite/src/thlib.h ../th_lite/src/thal.h \ 38 | ../th_lite/src/therror.h \ 39 | ../th_lite/x86/al/eembc_dt.h \ 40 | ../th_lite/x86/al/thcfg.h \ 41 | ../th_lite/src/thvinfo.h ./harness.h 42 | $(OBJBUILD)/thlib$(OBJ) : ../th_lite/src/thlib.c 43 | $(COM) $(OBJOUT)$(OBJBUILD)/thlib$(OBJ) ../th_lite/src/thlib.c 44 | 45 | THOBJS = \ 46 | $(OBJBUILD)/thal$(OBJ) \ 47 | $(OBJBUILD)/crc$(OBJ) \ 48 | $(OBJBUILD)/heap$(OBJ) \ 49 | $(OBJBUILD)/thlib$(OBJ) 50 | 51 | $(OBJBUILD)/thobjs$(LITE)$(LIBTYPE): $(THOBJS) 52 | $(LIBRARY) $(LIBOUT) $(OBJBUILD)/thobjs$(LITE)$(LIBTYPE) $(THOBJS) 53 | 54 | 55 | targets:: \ 56 | $(OBJBUILD)/thobjs$(LITE)$(LIBTYPE) 57 | 58 | 59 | -------------------------------------------------------------------------------- /th_lite/src/crc.c: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | 11 | #include "thlib.h" /* pick up prototypes from api */ 12 | 13 | 14 | /******************************************************************** 15 | Function: calc_crc 16 | Purpose: Compute crc16 a byte at a time 17 | Type: PUBLIC 18 | ********************************************************************/ 19 | 20 | #if CRC_CHECK || NON_INTRUSIVE_CRC_CHECK 21 | 22 | e_u16 Calc_crc8(e_u8 data, e_u16 crc ) 23 | { 24 | e_u8 i,x16,carry; 25 | 26 | for (i = 0; i < 8; i++) 27 | { 28 | x16 = (e_u8)((data & 1) ^ ((e_u8)crc & 1)); 29 | data >>= 1; 30 | if (x16 == 1) 31 | { 32 | crc ^= 0x4002; 33 | carry = 1; 34 | } 35 | else carry = 0; 36 | crc >>= 1; 37 | if (carry) 38 | crc |= 0x8000; 39 | else 40 | crc &= 0x7fff; 41 | } 42 | return crc; 43 | } 44 | /*********************************************************************/ 45 | e_u16 Calc_crc16( e_u16 data, e_u16 crc ) 46 | { 47 | 48 | crc = Calc_crc8( (e_u8)(data & 0x00FF ), crc ); 49 | crc = Calc_crc8( (e_u8)((data & 0xFF00)>>8), crc ); 50 | return crc; 51 | } 52 | 53 | 54 | /*********************************************************************/ 55 | e_u16 Calc_crc32( e_u32 data, e_u16 crc ) 56 | { 57 | 58 | crc = Calc_crc8( (e_u8)(data & 0x000000FF), crc ); 59 | crc = Calc_crc8( (e_u8)((data & 0x0000FF00)>>8), crc ); 60 | crc = Calc_crc8( (e_u8)((data & 0x00FF0000)>>16), crc ); 61 | crc = Calc_crc8( (e_u8)((data & 0xFF000000)>>24), crc ); 62 | 63 | return crc; 64 | } 65 | #endif 66 | -------------------------------------------------------------------------------- /th_lite/src/heap.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | #ifndef HEAP_H 11 | #define HEAP_H 12 | 13 | 14 | 15 | #ifndef HEAPPORT_H 16 | #include "heapport.h" 17 | #endif 18 | 19 | 20 | 21 | /*----------------------------------------------------------------------------*/ 22 | 23 | typedef struct 24 | { 25 | BlockSize size; /* total size of the heap */ 26 | BlockSize free; /* free (useable) space in the heap */ 27 | BlockSize num_free; /* number of free blocks */ 28 | BlockSize num_alloced; /* number of allocated blocks */ 29 | } 30 | HeapStats; 31 | 32 | /*----------------------------------------------------------------------------*/ 33 | 34 | void *heap_initialize( char *start, BlockSize size ); 35 | 36 | void *heap_alloc( void *heap, BlockSize size ); 37 | void heap_free( void *heap, void *buf ); 38 | 39 | /* Error values returned by heap_check() */ 40 | #define HEAP_OK (0x00000000) 41 | #define HERR_BAD_HEAP_STRUCT (0x00000001) 42 | #define HERR_FIRST_BLOCK_BAD (0x00000002) 43 | #define HERR_BLOCK_BAD (0x00000004) 44 | #define HERR_TOTAL_SIZE_BAD (0x00000008) 45 | #define HERR_FREE_SIZE_BAD (0x00000010) 46 | #define HERR_NUM_FREE_BAD (0x00000020) 47 | #define HERR_NUM_ALLOCED_BAD (0x00000040) 48 | #define HERR_PSIZE_BAD (0x00000080) 49 | #define HERR_BLOCK_TOO_SMALL (0x00000100) 50 | #define HERR_BLOCK_SIZE_MOD (0x00000200) 51 | #define HERR_FREE_ADJACENT (0x00000400) 52 | #define HERR_BAD_FREELPTR (0x00000800) 53 | #define HERR_FREELPTR_NN (0x00001000) /* free list pointe not null */ 54 | #define HERR_BAD_FL_PREV (0x00002000) /* bad free list previous ptr */ 55 | #define HERR_BAD_FL_NEXT (0x00004000) /* bad free list previous ptr */ 56 | #define HERR_BAD_FL_TOO_MANY (0x00008000) /* too many items in the free list */ 57 | #define HERR_BAD_FL_NOT_NUFF (0x00010000) /* not enough items in the free list */ 58 | #define HERR_BAD_PREV_LINK (0x00020000) /* bad previous link */ 59 | #define HERR_FL_BLOCK_BAD (0x00040000) /* a block in the free list is bad */ 60 | 61 | /*----------------------------------------------------------------------------*/ 62 | 63 | 64 | extern char mem_base[]; 65 | extern size_t mem_size; 66 | 67 | 68 | #ifdef __cplusplus 69 | } 70 | #endif 71 | 72 | #endif /* HEAP_H */ 73 | 74 | -------------------------------------------------------------------------------- /th_lite/src/thal.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | #ifndef THAL_H /* File Sentinal */ 11 | #define THAL_H 12 | 13 | #include "thcfg.h" 14 | 15 | #include 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | /*------------------------------------------------------------------------------ 22 | * Global Defines 23 | */ 24 | 25 | #define FATAL_EXIT (-32766) 26 | 27 | /*------------------------------------------------------------------------------ 28 | * Global data 29 | */ 30 | 31 | 32 | /*------------------------------------------------------------------------------ 33 | * The Test Harness Lite Application Layer API 34 | */ 35 | 36 | size_t al_ticks( void ); 37 | size_t al_ticks_per_sec( void ); 38 | size_t al_tick_granularity( void ); 39 | 40 | void al_signal_start( void ); 41 | size_t al_signal_finished( void ); 42 | void al_exit( int exit_code); 43 | int al_printf(const char *fmt, va_list args); 44 | int al_sprintf(char *str, const char *fmt, va_list args); 45 | void al_report_results( void ); 46 | void al_main(int argc, const char* argv[]); 47 | 48 | /*----------------------------------------------------------------------------*/ 49 | 50 | #ifdef __cplusplus /* Take this out if you don't need it */ 51 | } 52 | #endif 53 | 54 | #endif /* File Sentinal */ 55 | 56 | -------------------------------------------------------------------------------- /th_lite/src/thassert.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | #if HAVE_ASSERT_H 11 | 12 | #include 13 | 14 | #elif !defined(ASSERT_H) 15 | 16 | #define ASSERT_H 17 | 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 24 | * assert functions coded to harness 25 | */ 26 | 27 | #ifndef NDEBUG 28 | extern void __assertfail( const char *msg, const char *cond, const char *file, int line ); 29 | 30 | #define assert(p) ((p) ? ((void)0) : \ 31 | __assertfail( "\n** ASSERT : %s, file %s, line %d\n", \ 32 | #p, __FILE__, __LINE__ )) 33 | #else 34 | #define assert() ((void)0) 35 | #endif 36 | 37 | /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 38 | * fatal error (just like assert, but always triggers) 39 | */ 40 | 41 | #ifndef NDEBUG 42 | extern void __fatal( const char* msg, const char* file, int line ); 43 | 44 | #define fatal() (__fatal( "\n** FATAL : file %s, line %d\n", \ 45 | __FILE__, __LINE__ ) ) 46 | #else 47 | #define fatal() ((void)0) 48 | #endif 49 | 50 | 51 | #ifdef __cplusplus 52 | } 53 | #endif 54 | 55 | #endif /* File sentinal */ 56 | 57 | -------------------------------------------------------------------------------- /th_lite/src/therror.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | #ifndef TH_ERROR_H /* File Sentinal */ 11 | #define TH_ERROR_H 12 | 13 | #ifdef __cplusplus 14 | extern "C" { 15 | #endif 16 | 17 | /*------------------------------------------------------------------------------ 18 | * Error return values 19 | */ 20 | enum TH_ERRORS 21 | { 22 | THE_SUCCESS, /* Success! */ 23 | THE_FAILURE, /* Generic Failure... :( */ 24 | 25 | THE_BAD_PTR, /* a pointer parameter was NULL */ 26 | THE_BAD_THDEF_VERSION, /* the THDef pointer did not point to a valid structure */ 27 | THE_BAD_TCDEF_VERSION, /* the THDef pointer did not point to a valid structure */ 28 | THE_TC_INIT_FAILED, /* The test component intialization failed */ 29 | THE_BAD_BASE_PTR, /* Bad base pointer for Malloc init */ 30 | THE_BAD_SIZE, /* The size parameter is bad */ 31 | THE_OUT_OF_MEMORY /* The test ran out of memory */ 32 | }; 33 | 34 | const char *th_error_str( int error ); 35 | 36 | /*----------------------------------------------------------------------------*/ 37 | 38 | #ifdef __cplusplus 39 | } 40 | #endif 41 | 42 | #endif /* File Sentinal */ 43 | 44 | -------------------------------------------------------------------------------- /th_lite/src/thvinfo.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | #ifndef THVINFO_H 11 | #define THVINFO_H 12 | 13 | /*----------------------------------------------------------------------------*/ 14 | 15 | #define EEMBC_TH_ID "EEMBC Portable Test Harness V4.000" 16 | 17 | #define EEMBC_TH_MAJOR 4 18 | #define EEMBC_TH_MINOR 0 19 | #define EEMBC_TH_STEP '0' 20 | #define EEMBC_TH_REVISION 0 21 | 22 | /*----------------------------------------------------------------------------*/ 23 | 24 | #endif /* THVINFO_H */ 25 | 26 | -------------------------------------------------------------------------------- /th_lite/vc/depgen.cml: -------------------------------------------------------------------------------- 1 | # ============================================================================ 2 | # 3 | # Copyright (C) EEMBC(R) All Rights Reserved 4 | # 5 | # This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | # Please refer to the license file (LICENSE.md) included with this code. 7 | # 8 | # ============================================================================ 9 | 10 | ## Built from Application Root (../th_lite/src,../th_lite/$(TOOLCHAIN)/al) 11 | # Harness Library Build 12 | 13 | 14 | # Applies to harness 15 | -cq 16 | -tf ../th_lite/vc/harness.mak 17 | -b $(OBJ) 18 | -o $(OBJBUILD) 19 | -r "$(COM)" 20 | -co $(OBJOUT) 21 | -to $(OBJBUILD) 22 | -tb $(LITE)$(LIBTYPE) 23 | -tr "$(LIBRARY)" 24 | -ce $(LIBOUT) 25 | 26 | # The Lite Harness 27 | -t thobjs 28 | -I../th_lite/x86/al 29 | -I../th_lite/src 30 | -I. 31 | 32 | ../th_lite/x86/al/*.c 33 | ../th_lite/src/*.c 34 | 35 | -td # dump the th Lite thobjs, 36 | 37 | -------------------------------------------------------------------------------- /th_lite/vc/harness.mak: -------------------------------------------------------------------------------- 1 | # File generated by Makerule.pl - DO NOT EDIT 2 | # Edit ../th_lite/vc/depgen.cml to change 3 | # $Revision: 1.22 $ $Date: 2002/07/18 19:00:12 $ 4 | $(OBJBUILD)/thal$(OBJ) : \ 5 | ../th_lite/src/thlib.h ../th_lite/src/thal.h \ 6 | ../th_lite/src/therror.h \ 7 | ../th_lite/x86/al/eembc_dt.h \ 8 | ../th_lite/x86/al/thcfg.h \ 9 | ../th_lite/src/thvinfo.h ./harness.h 10 | $(OBJBUILD)/thal$(OBJ) : ../th_lite/x86/al/thal.c 11 | $(COM) $(OBJOUT)"$(OBJBUILD)/thal$(OBJ)" ../th_lite/x86/al/thal.c 12 | 13 | $(OBJBUILD)/crc$(OBJ) : \ 14 | ../th_lite/src/thlib.h \ 15 | ../th_lite/src/therror.h \ 16 | ../th_lite/x86/al/eembc_dt.h \ 17 | ../th_lite/x86/al/thcfg.h \ 18 | ../th_lite/src/thvinfo.h ../th_lite/src/thal.h \ 19 | ./harness.h 20 | $(OBJBUILD)/crc$(OBJ) : ../th_lite/src/crc.c 21 | $(COM) $(OBJOUT)"$(OBJBUILD)/crc$(OBJ)" ../th_lite/src/crc.c 22 | 23 | $(OBJBUILD)/heap$(OBJ) : \ 24 | ../th_lite/x86/al/eembc_dt.h \ 25 | ../th_lite/src/heap.h \ 26 | ../th_lite/src/thassert.h \ 27 | ../th_lite/x86/al/thcfg.h ./harness.h \ 28 | ../th_lite/src/thvinfo.h \ 29 | ../th_lite/x86/al/heapport.h \ 30 | ../th_lite/src/thlib.h \ 31 | ../th_lite/src/therror.h \ 32 | ../th_lite/src/thal.h 33 | $(OBJBUILD)/heap$(OBJ) : ../th_lite/src/heap.c 34 | $(COM) $(OBJOUT)"$(OBJBUILD)/heap$(OBJ)" ../th_lite/src/heap.c 35 | 36 | $(OBJBUILD)/thlib$(OBJ) : \ 37 | ../th_lite/src/thlib.h ../th_lite/src/thal.h \ 38 | ../th_lite/src/therror.h \ 39 | ../th_lite/x86/al/eembc_dt.h \ 40 | ../th_lite/x86/al/thcfg.h \ 41 | ../th_lite/src/thvinfo.h ./harness.h 42 | $(OBJBUILD)/thlib$(OBJ) : ../th_lite/src/thlib.c 43 | $(COM) $(OBJOUT)"$(OBJBUILD)/thlib$(OBJ)" ../th_lite/src/thlib.c 44 | 45 | THOBJS = \ 46 | $(OBJBUILD)/thal$(OBJ) \ 47 | $(OBJBUILD)/crc$(OBJ) \ 48 | $(OBJBUILD)/heap$(OBJ) \ 49 | $(OBJBUILD)/thlib$(OBJ) 50 | 51 | $(OBJBUILD)/thobjs$(LITE)$(LIBTYPE): $(THOBJS) 52 | $(LIBRARY) $(LIBOUT)"$(OBJBUILD)/thobjs$(LITE)$(LIBTYPE)" $(THOBJS) 53 | 54 | 55 | targets:: \ 56 | $(OBJBUILD)/thobjs$(LITE)$(LIBTYPE) 57 | 58 | 59 | -------------------------------------------------------------------------------- /th_lite/x86/al/heapport.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Copyright (C) EEMBC(R) All Rights Reserved 4 | * 5 | * This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | * Please refer to the license file (LICENSE.md) included with this code. 7 | * 8 | */ 9 | 10 | #if !defined(HEAPPORT_H) 11 | #define HEAPPORT_H 12 | 13 | #include "thlib.h" 14 | 15 | /*------------------------------------------------------------------------------ 16 | * Note, we use the !defined() test here so that a value defined in 17 | * a make file or from an IDE will take precedence 18 | *----------------------------------------------------------------------------*/ 19 | 20 | #if !defined( TURN_ON_VERIFY_HEAP ) 21 | #define TURN_ON_VERIFY_HEAP 0 22 | #endif 23 | 24 | #if !defined( TURN_ON_DEBUG_HEAP ) 25 | #define TURN_ON_DEBUG_HEAP 0 26 | #endif 27 | 28 | /*------------------------------------------------------------------------------ 29 | * Heap Porting Interface for 32bit x86 30 | *----------------------------------------------------------------------------*/ 31 | 32 | /* Both of these macros must resolve to the void pointer (void*) type */ 33 | 34 | #define PTR_ADD( ptr, offset ) ((void*)((char*)(ptr) + (offset))) 35 | #define PTR_SUB( ptr, offset ) ((void*)((char*)(ptr) - (offset))) 36 | 37 | #if !defined(HEAP_ALIGN_V) 38 | #error HEAP_ALIGN_V not defined! (must be an even power of 2) 39 | #endif 40 | 41 | /* 42 | * This macro rounds up a number to an even power of HEAP_ALIGN_V 43 | */ 44 | #define HEAP_ALIGN(x) (((x) + ((HEAP_ALIGN_V)-1)) & ~((HEAP_ALIGN_V)-1)) 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /util/awk/extracttime.awk: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/gawk -f 2 | 3 | # NF -1 strips th regular ^Z or ^M character after algorithm. 4 | 5 | BEGIN{error=0;CRC="";ECRC="";} 6 | (1==1) { 7 | 8 | if (($2=="Bench") && ($3=="Mark") && ($4==":")) { 9 | BM = ""; 10 | for (i=5; i<=NF; i++) BM = BM $i " "; 11 | # Have to strip NL off the last field. 12 | BM=substr(BM,1,length(BM)-1); 13 | # TH Regular put's a carriage return in here. 14 | THCR=match(BM,/\r/); 15 | if (THCR != 0 ) {BM=substr(BM,1,THCR-1);} 16 | } 17 | 18 | if ($2=="BM:") { 19 | BM = ""; 20 | for (i=3; i<=NF; i++) BM = BM $i " "; 21 | BM=substr(BM,1,length(BM)-1); 22 | # TH Regular put's a carriage return in here. 23 | THCR=match(BM,/\r/); 24 | if (THCR != 0 ) {BM=substr(BM,1,THCR-1);} 25 | } 26 | 27 | if ($2=="ID:") { 28 | IDSUB = substr($3,1,16); 29 | IDBM = $4; 30 | if (IDSUB=="!!!!EEMBC-BM!!!!") { 31 | IDSUB = "EEMBC"; 32 | IDBM = "EEMBC"; 33 | } 34 | } 35 | if (($2=="Iterations") && ($3=="=")) { IT = $4; } 36 | if (($2=="Target") && ($3=="Duration")) { DU = $5; } 37 | if (($3=="CRC") && ($4=="=")) { CRC = substr($5,1,length($5)-1); } 38 | if (($2=="Time") && ($3=="/") && ($4=="Iter")) { SECIT = $6; } 39 | 40 | if (($2=="Iterations/Sec") && ($3=="=")) { ITSEC = $4; } 41 | if (($2=="Total") && ($3=="Run") && ($4=="Time")) { RUNTIME = $6; } 42 | if (($2=="Failure:") && ($3=="CRC") && ($4=="is")) { ECRC = $8 } 43 | # DONE replaced by Failure 44 | if (($2=="Failure:") && ($3!="CRC")) { error++; } 45 | if (($1=="ERROR")) { error++; } 46 | } 47 | 48 | END { 49 | # Print out the benchmark 50 | if ( error != 0 || BM=="") {TERROR = "ERROR"} 51 | if (CRC != "") 52 | { 53 | CRC = "0x" CRC; 54 | if (ECRC == ""){ECRC=CRC;} 55 | else {ECRC = "0x" ECRC;} 56 | } 57 | 58 | DU=DU+0; 59 | printf ("%s\t%-12s\t%-11s\t%s\t%-30s\t%-6s\t%-6s\t%d\t%d\t%f\t%f\t%f", 60 | IDSUB, IDBM, DATASET, TERROR, BM, ECRC, CRC, IT, DU, ITSEC, RUNTIME, SECIT); 61 | fflush(); 62 | } 63 | 64 | 65 | -------------------------------------------------------------------------------- /util/awk/sizegcc.awk: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/gawk -f 2 | 3 | # NF -1 strips th regular ^Z or ^M character after algorithm. 4 | 5 | BEGIN{error=0;} 6 | (1==1) { 7 | 8 | if (($1=="text") && ($2=="data") && ($3=="bss")) { 9 | getline;#getline; 10 | TEXT=$1; 11 | DATA=$2; 12 | BSS=$3; 13 | TOTAL=$4; 14 | } 15 | fflush(); 16 | } 17 | 18 | END { 19 | # Print out the benchmark 20 | if ( error != 0 ) {TERROR = "ERROR"} 21 | if ( BMARK == "" ) {BMARK = "Benchmark"} 22 | 23 | printf ("%-12s\t%d\t%d\t%d\t%d", 24 | BMARK, TEXT, DATA, BSS, TOTAL); 25 | fflush(); 26 | } 27 | 28 | 29 | -------------------------------------------------------------------------------- /util/awk/sizevc.awk: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/gawk -f 2 | 3 | # NF -1 strips th regular ^Z or ^M character after algorithm. 4 | 5 | BEGIN{error=0;} 6 | (1==1) { 7 | 8 | if ($2==".data") { 9 | DATA=$1; 10 | } 11 | if ($2==".text") { 12 | TEXT=$1; 13 | } 14 | if ($2==".rdata") { 15 | BSS=$1; 16 | } 17 | } 18 | 19 | END { 20 | # Print out the benchmark 21 | if ( error != 0 ) {TERROR = "ERROR"} 22 | if ( BMARK == "" ) {BMARK = "Benchmark"} 23 | TOTAL=DATA+BSS+TEXT; 24 | 25 | printf ("%-12s\t%d\t%d\t%d\t%d", 26 | BMARK, TEXT, DATA, BSS, TOTAL); 27 | fflush(); 28 | } 29 | 30 | 31 | -------------------------------------------------------------------------------- /util/awk/titlesize.txt: -------------------------------------------------------------------------------- 1 | Benchmark Text Data BSS Total 2 | -------------------------------------------------------------------------------- /util/awk/titletime.txt: -------------------------------------------------------------------------------- 1 | Subcommittee Benchmark Dataset Error? Description Expected CRC Actual CRC Iterations Duration Iterations/Sec Run Time Time/Iter 2 | -------------------------------------------------------------------------------- /util/make/gcc.mak: -------------------------------------------------------------------------------- 1 | # ============================================================================ 2 | # 3 | # Copyright (C) EEMBC(R) All Rights Reserved 4 | # 5 | # This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | # Please refer to the license file (LICENSE.md) included with this code. 7 | # 8 | # ============================================================================ 9 | 10 | # ARCHITECTURE SECTION 11 | # Any specific options 12 | 13 | # SYSTEM ENVIRONMENT SECTION 14 | 15 | # Tools Root Directory 16 | TOOLS = /usr 17 | # For Solaris 18 | #TOOLS = /usr/local 19 | 20 | # Tools Executables, Output File Flag and Output File Types 21 | 22 | # NOTE: Spacing between option and values can be compiler dependant. 23 | # The following is a trick to ensure that a space follows the -o flag. 24 | # Do not remove the line continuation backslash or the following blank 25 | # line. 26 | # OBJOUT = -o \ 27 | 28 | CC = $(TOOLS)/bin/gcc 29 | OBJOUT = -o 30 | OBJ = .o 31 | 32 | AS = $(TOOLS)/bin/as 33 | 34 | LD = $(TOOLS)/bin/gcc 35 | EXEOUT = -o 36 | EXE = .exe 37 | 38 | AR = $(TOOLS)/bin/ar 39 | LIBTYPE = .a 40 | LIBOUT = 41 | 42 | # COMPILER SECTION 43 | 44 | # You may need to override the Environment variable INCLUDE. 45 | # INCLUDE is used by most compilers, and should not 46 | # be passed to the compiler in the makefile. 47 | INCLUDE = $(TOOLS)/include 48 | 49 | # -c compile but do not link 50 | # -o specify the output file name 51 | # -march=i486 generate code for the intel 486 52 | # -O0 Do not optimize 53 | # -O2 Optimize for speed 54 | 55 | COMPILER_FLAGS = -O2 -D NDEBUG 56 | COMPILER_DEBUG = -O2 -g 57 | 58 | # -ansi Support all ANSI standard C programs. 59 | # Turns off most of the GNU extensions 60 | # -pedantic Issue all the warnings demanded by strict ANSI standard C; 61 | # reject all programs that use forbidden extensions. 62 | # -fno-asm do not allow the 'asm' keyword. Eg. no inline asembly 63 | # -fsigned-char use signed characters 64 | WARNING_OPTIONS = \ 65 | -ansi -pedantic -Wcomment -fno-asm -fsigned-char \ 66 | -W -Wparentheses \ 67 | -Wreturn-type -Wswitch -Wunused \ 68 | -Wsign-compare -Wimplicit -Wreturn-type \ 69 | -Wshadow -Wpointer-arith -Wwrite-strings \ 70 | -Wsign-compare -Wstrict-prototypes -Wmissing-prototypes \ 71 | -Wmissing-declarations 72 | 73 | # Additional include files not in dependancies or system include. 74 | COMPILER_INCLUDES = 75 | 76 | # Optional: Passed to compiler, here or in makefile to override THCFG defines. 77 | #COMPILER_DEFINES = 78 | 79 | # ASSEMBLER SECTION 80 | 81 | ASSEMBLER_FLAGS = 82 | ASSEMBLER_INCLUDES = 83 | 84 | # LINKER SECTION 85 | # -lm is optional. Some linkers do not include math library by default. 86 | LINKER_FLAGS = -lm 87 | LINKER_INCLUDES = 88 | 89 | # LIBRARIAN SECTION 90 | LIBRARY_FLAGS = scr 91 | 92 | # SIZE SECTION 93 | SIZE = $(TOOLS)/bin/size 94 | SIZE_FLAGS = 95 | AWKSZ = $(TOOLCHAIN) 96 | AWKDIR = awk 97 | 98 | # IMAGE SECTION 99 | IMAGE = 100 | IM_FLAGS = 101 | IMG = 102 | 103 | # CONTROL SECTION 104 | RUN_FLAGS = 105 | RUN = 106 | ALL_TARGETS = mkdir targets run results 107 | 108 | # Optional specific files for specialized run and results 109 | PLATFORM = x86 110 | 111 | # Optional re-use of dependancy files generated by makerule.pl 112 | TARGETS = $(TOOLCHAIN) 113 | -------------------------------------------------------------------------------- /util/make/vc.mak: -------------------------------------------------------------------------------- 1 | # ============================================================================ 2 | # 3 | # Copyright (C) EEMBC(R) All Rights Reserved 4 | # 5 | # This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | # Please refer to the license file (LICENSE.md) included with this code. 7 | # 8 | # ============================================================================ 9 | 10 | # ARCHITECTURE SECTION 11 | # Any specific options 12 | 13 | # SYSTEM ENVIRONMENT SECTION 14 | 15 | # Tools Root Directory 16 | # Assumes vcvars32.bat has been executed. Paths not OS neutral 17 | # $(MSVCDIR) will not work because of backslashes in directories 18 | TOOLS = C:/PROGRA~1/MICROS~3/VC98 19 | TOOLPATH = /cygdrive/c/PROGRA~1/MICROS~3 20 | 21 | # From VCVARS32.BAT, MODIFIED FOR GCC MAKE ENVIRONMENT 22 | # Root of Visual Developer Studio Common files. 23 | VSCommonDir=$(TOOLPATH)/Common 24 | 25 | # Root of Visual Developer Studio installed files. 26 | MSDevDir=$(TOOLPATH)/Common/msdev98 27 | 28 | # Root of Visual C++ installed files. 29 | MSVCDir=$(TOOLPATH)/VC98 30 | 31 | # VcOsDir is used to help create either a Windows 95 or Windows NT specific path. 32 | 33 | ifeq ($(OS),Windows_NT) 34 | VcOsDir=WINNT 35 | else 36 | VcOsDir=WIN95 37 | endif 38 | 39 | ifeq ($(OS),Windows_NT) 40 | # Windows NT 41 | PATH +=:$(MSDevDir)/BIN:$(MSVCDir)/BIN:$(VSCommonDir)/TOOLS/$(VcOsDir):$(VSCommonDir)/TOOLS 42 | else 43 | # Windows ME/9x 44 | PATH +=:"$(MSDevDir)/BIN":"$(MSVCDir)/BIN":"$(VSCommonDir)/TOOLS/$(VcOsDir)":"$(VSCommonDir)/TOOLS":"$(windir)/SYSTEM" 45 | endif 46 | 47 | # Differs from Path processing on Windows 48 | #INCLUDE +=:$(MSVCDir)/ATL/INCLUDE:$(MSVCDir)/INCLUDE:$(MSVCDir)/MFC/INCLUDE 49 | #LIB +=:$(MSVCDir)/LIB:$(MSVCDir)/MFC/LIB 50 | 51 | #set VcOsDir= 52 | #set VSCommonDir= 53 | 54 | # Tools Executables, Output File Flag and Output File Types 55 | 56 | CC = $(TOOLS)/bin/cl 57 | OBJOUT = -Fo 58 | OBJ =.obj 59 | 60 | AS = $(TOOLS)/bin/cl 61 | 62 | LD = $(TOOLS)/bin/cl 63 | EXEOUT = -o 64 | EXE = .exe 65 | 66 | AR = $(TOOLS)/bin/lib 67 | LIBTYPE = .lib 68 | LIBOUT = -OUT: 69 | 70 | # COMPILER SECTION 71 | 72 | # You may need to override the Environment variable INCLUDE. 73 | # INCLUDE is used by most compilers, and should not 74 | # be passed to the compiler in the makefile. 75 | #INCLUDE=$(TOOLS)/include 76 | 77 | # -c compile but do not link 78 | # -o specify the output file name 79 | # -ML Link with LIBC.LIB 80 | # -GX Enable C++ EH, extern C defaults to nothrow 81 | # -Od Disable Optimization 82 | # -O2 Optimize for Speed 83 | 84 | COMPILER_FLAGS = -nologo -ML -GX -O2 -D "WIN32" -D "NDEBUG" -D "_CONSOLE" -D "_MBCS" 85 | COMPILER_DEBUG = -nologo -MLd -Gm -GX -Zi -D "WIN32" -D "_DEBUG" -D "_CONSOLE" 86 | 87 | WARNING_OPTIONS= -W3 88 | 89 | # Additional include files not in dependancies or system include. 90 | COMPILER_INCLUDES = 91 | 92 | # Optional: Passed to compiler, here or in makefile to override THCFG defines. 93 | #COMPILER_DEFINES = 94 | 95 | # ASSEMBLER SECTION 96 | 97 | ASSEMBLER_FLAGS = 98 | ASSEMBLER_INCLUDES = 99 | 100 | # LINKER SECTION 101 | 102 | LINKER_FLAGS = 103 | LINKER_INCLUDES = 104 | 105 | # LIBRARIAN SECTION 106 | LIBRARY_FLAGS = 107 | 108 | # SIZE SECTION 109 | SIZE = $(TOOLS)/bin/dumpbin 110 | SIZE_FLAGS = -summary 111 | AWKSZ = $(TOOLCHAIN) 112 | AWKDIR = awk 113 | 114 | # IMAGE SECTION 115 | IMAGE = 116 | IM_FLAGS = 117 | IMG = 118 | 119 | # CONTROL SECTION 120 | RUN_FLAGS = 121 | RUN = 122 | ALL_TARGETS = mkdir targets run results 123 | 124 | # Optional specific files for specialized run and results 125 | PLATFORM = x86 126 | 127 | # Optional re-use of dependancy files generated by makerule.pl 128 | TARGETS = $(TOOLCHAIN) 129 | -------------------------------------------------------------------------------- /util/make/vcvars32.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | ::$RCSfile: vcvars32.bat,v $ 3 | :: 4 | :: DESC : Load Microsoft Visual Studio path definitions 5 | :: 6 | :: CVS : $Revision: 1.5 $ 7 | :: $Name: V1_1_1 $ 8 | :: $Date: 2002/08/13 15:32:04 $ 9 | :: $Author: rick $ 10 | :: 11 | :: Root of Visual Developer Studio Common files. 12 | :: Edit this for your environment 13 | :: 14 | @if NOT EXIST "C:\Program Files\Microsoft Visual Studio\VC98\Bin\vcvars32.bat" goto port 15 | @call "C:\Program Files\Microsoft Visual Studio\VC98\Bin\vcvars32.bat" 16 | @goto end 17 | :port 18 | @echo "*** Porting" 19 | @echo "Visual C++ build cannot continue, Microsoft vcvars32.bat not found." 20 | @echo "Correct the path in util\make\vcvars32.bat, to point to your install" 21 | @echo " OR" 22 | @echo "Delete util/make/vc.mak to ignore this toolchain" 23 | :end 24 | -------------------------------------------------------------------------------- /util/perl/makerule.mak: -------------------------------------------------------------------------------- 1 | # ============================================================================ 2 | # 3 | # Copyright (C) EEMBC(R) All Rights Reserved 4 | # 5 | # This software is licensed with an Acceptable Use Agreement under Apache 2.0. 6 | # Please refer to the license file (LICENSE.md) included with this code. 7 | # 8 | # ============================================================================ 9 | 10 | cleanrule: 11 | -rm -f targets_*.mak 12 | -find $(ROOT)/th -name harness.mak -exec rm -f {} \; 13 | -find $(ROOT)/th_lite -name harness.mak -exec rm -f {} \; 14 | 15 | harness: targets$(VER)_$(TARGETS).mak $(TH)/$(TARGETS)/harness.mak 16 | 17 | targets$(VER)_$(TARGETS).mak: depgen$(VER)_$(TARGETS).cml $(ROOT)/util/perl/makerule.pl 18 | perl $(ROOT)/util/perl/makerule.pl -cmd depgen$(VER)_$(TARGETS).cml 19 | 20 | 21 | $(TH)/$(TARGETS)/harness.mak: $(TH)/$(TARGETS)/depgen.cml $(ROOT)/util/perl/makerule.pl 22 | perl $(ROOT)/util/perl/makerule.pl -cmd $(TH)/$(TARGETS)/depgen.cml 23 | 24 | 25 | --------------------------------------------------------------------------------