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

📄 vdsim.h

📁 卷积码的Viterbi解码器
💻 H
字号:
#define K 3              /* constraint length */
#define PI 3.141592654   /* circumference of circle divided by diameter */

#define MSG_LEN 5000  /* how many bits in each test message */
#define DOENC            /* test with convolutional encoding/Viterbi decoding */
#undef  DONOENC          /* test with no coding */
//#define  DONOENC          /* test with no coding */
#define LOESN0 0.0  //0908       /* minimum Es/No at which to test */
#define HIESN0 8.0       /* maximum Es/No at which to test */
#define ESN0STEP 0.5     /* Es/No increment for test driver */

#if K == 3
#define TWOTOTHEM 4      /* 2^(K - 1) -- change as required */
#endif

#if K == 5
#define TWOTOTHEM 16      /* 2^(K - 1) -- change as required */
#endif

#if K == 7
#define TWOTOTHEM 64      /* 2^(K - 1) -- change as required */
#endif

#if K == 9
#define TWOTOTHEM 256      /* 2^(K - 1) -- change as required */
#endif

⌨️ 快捷键说明

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