⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 经典的维特比译码程序
💻
字号:
KA9Q Viterbi decoder V1.0Copyright 1995 Phil Karn, KA9QThis package implements an encoder and a Viterbi decoder for the NASAstandard rate 1/2 constraint length 7 convolutional code.Also included are support routines to generate metric tables that areoptimized for gaussian noise with a specified Eb/N0 ratio, and a testdriver that exercises the encoder/decoder routines and keeps statistics.The following files are included:Makefile	for BSDI 1.1README		this filegenbut.c	utility program for generating inline macro callsmetrics.c	generate soft-decision metrics for AWGN channelsim.c		transmitter/channel simulator (including gaussian noise gen)tab.c		lookup table for parity generationviterbi.c	the encoder and Viterbi decoder routinesvittest.c	driver program for testingThe test program in vittest.c creates a test frame, encodes it, addsgaussian noise and decodes it. It then repeats a specified number oftimes, keeping count of bit errors and errored frames (frames with atleast one error).The files sim.c and metrics.c are also in my Fano decoder package. Seethe readme for that package for further comments on these two files,including math library performance issues for the gaussian randomnumber generator in sim.c.Unlike a sequential decoder, a Viterbi decoder runs at a constantspeed regardless of Eb/N0 ratio. It is also more tolerant of metrictable inaccuracies.This decoder runs at about 45.5 kilobits/sec in 32-bit (protected)mode on a 66 MHz 486DX2 using gcc 1.42 and -O under BSDI1.1. Interestingly, it runs more slowly (about 40.8 kb/s) under GCC2.5.8, even with full optimization (-O4). Although the code should beportable, it is very heavily optimized for 32-bit machines and willprobably perform poorly on machines with smaller words.It's possible to adapt this code for other rates, polynomials andconstraint lengths. It would be somewhat tedious, though, since theparameters are hardwired in many places.Phil KarnMarch 18, 1995

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -