基于VHDL的QPSK調(diào)制解調(diào)系統(tǒng)設(shè)計(jì)與仿真
2 QPSK數(shù)字調(diào)制器仿真
QPSK信號(hào)產(chǎn)生的兩種方法有相位選擇法和正交調(diào)制法,在該設(shè)計(jì)中我們采用相位選擇法,具體關(guān)系如表1所示。本文引用地址:http://www.ex-cimer.com/article/189500.htm
輸入時(shí)鐘信號(hào)clk及使能信號(hào)start,當(dāng)start為高電平時(shí)才進(jìn)行QPSK調(diào)制,輸入基帶信號(hào)進(jìn)行串/并變換?;鶐盘?hào)x由一路信號(hào)變?yōu)閮陕凡⑿行盘?hào),變換后分別為a信號(hào)和b信號(hào),則ab信號(hào)構(gòu)成兩位并行信號(hào)yy,變換后的yy值如表1所示。時(shí)鐘信號(hào)進(jìn)入八分頻計(jì)數(shù)器q進(jìn)行分頻得到4種不同相位的載波。載波相位為45°、135°、225°、315°的4種載波。四選一開關(guān)根據(jù)信號(hào)yy值,選擇載波對(duì)應(yīng)相位進(jìn)行輸出,可得到已調(diào)信號(hào)Y。如表1所示,當(dāng)yy值為“0”,選擇輸出對(duì)應(yīng)的載波f3;當(dāng)yy值為“01”,選擇輸出對(duì)應(yīng)的載波f2;當(dāng)yy值為“10”,選擇輸出3對(duì)應(yīng)的載波f1;當(dāng)yy值為“11”,選擇輸出對(duì)應(yīng)的載波fo,即最終選擇輸出的載波波形就構(gòu)成調(diào)制信號(hào)Y。當(dāng)start為高電平時(shí),進(jìn)行調(diào)制,當(dāng)輸入的基帶信號(hào)為1011 00 01 10 11 10 00 00 00,仿真結(jié)果如圖2所示,選擇相位分別為315°,45°,225°,135°,315°,45°,315°,225°,225°,225°。QPSK調(diào)制結(jié)構(gòu)體的VHDL程序如下:
評(píng)論