【正文】
集成開發(fā)工具( MAX+plus II)相關操作。編碼涉及到的內容也比較廣泛,前身糾錯編碼( FEC)、線性分組碼(漢明碼、循環(huán)碼)、理德 所羅門碼( RS 碼)、 FIRE 碼、交織碼、卷積碼、TCM 編碼、 Turbo 碼等都是差錯控制編碼的研究范疇。但信道編碼會使有用的信息數據傳輸減少,信道編碼的過程是在源數據碼流中加插一些碼元,從而達到在接收端進行判錯和糾錯的目的,這就是我們常常說的開銷。于是促進了信道編碼技術的發(fā)展。 關鍵詞 : 編碼 譯碼 MAX+plusII 山東輕工業(yè)學院 2021 屆本科生畢業(yè)設計(論文) 2 ABSTRACT In the munications system, to enhance the effectiveness of information transmission, we will source the output after source coding with fewer symbols to express the source of the news letter, the redundancy of these symbols is very small, very efficient, but the noise weak resistance to interference. In order to improve the accuracy of information transmission, we introduce error control techniques. The technology uses a reliable and effective method of channel coding to achieve. Errorcorrecting code is an error control techniques have been widely used in various munications systems and puter systems, mainly used for errorcorrecting coding errors in digital control systems, to ensure munication, storage, media players and digital transmission of information transfer the quality of the process of great significance, is the munications, informationtype knowledge structure of subjects an indispensable part. This article introduces a systematic errorcorrecting codes in digital systems in the use and development, as well as the basic principles of errorcorrecting codes and meaning of monly used errorcorrecting codes and classified briefings, as well as Vc + +, introduced the basic knowledge, and how Vc + + to achieve the application of hamming code encoder and decoder. This article mainly study the design of the (7, 4) Hamming Code based on the VeryHighSpeed Integrated Circuit HardwareDescription Language . The design of hamming code consists of four modules: the 16 Sequence generation and grouping module, the encoding module, the adding one bit error module, and the decoding module. the design of the adding one bit error module is to simulate channels interference , affer testing and simulation ,thus proving that the (7, 4)Hanmming code has the ability to correct a wrong code. Key words: encode。 糾錯碼是一種差錯控制技術,目前已廣泛應用于各種通信系統(tǒng)和計算機系統(tǒng)中,糾錯編碼主要用于數字系統(tǒng)的差錯控制,對于保證通信、存儲、媒體播放和信息轉移等數字傳遞過程的質量有著重要意義,是通信、信息類科知識結構中不可缺少的一部分。 基于 VHDL 漢明碼編譯碼器的設計與實現 目 錄 摘 要 ............................................. 1 第一章 緒論 ................................... 3 ................................... 3 ................................... 3 ....................................... 4 第二章 漢明碼及漢明碼編譯原理 ................. 4 2. 1 糾錯編碼的基本原理 .................................. 4 分組碼基本原理 ..................................... 4 分組碼的碼重和碼距 ................................. 5 漢明碼編譯原理 ....................................... 8 第三章 VHDL語言與集成環(huán)境 .................... 10 3. 1 EDA概念 ........................................... 10 MAX+PLUXII簡介 ....................................... 11 VHDL 語言 ........................................... 12 基本介紹 .......................................... 12 VHDL 語言設計的特點 ............................... 12 VHDL 語言優(yōu)勢 ..................................... 13 第四章 漢明碼編譯系統(tǒng)模塊設計與實現 ........... 14 4. 1 漢明碼編譯原理設計 ................................ 14 4. 2 系統(tǒng)模塊設計 ...................................... 14 16 位比特序列產生與分組模塊 ....................... 14 編碼模塊 ......................................... 16 加錯模塊 ......................................... 16 譯碼與分組模塊 .................................... 17 第五章 系統(tǒng)仿真、調試和結果分析 .............. 18 16 位序列產生與分組模塊仿真 .......................... 18 仿真圖 ............................................ 18 結果分析 ......................................... 19 編碼模塊仿真 ....................................... 19 仿真圖 ............................................ 19 結果分析 ......................................... 19 加錯模塊 ............................................ 19 仿真圖 ............................................ 19 結果分析 ......................................... 20 譯碼與分組串行模塊仿真 .............................. 20 結果分析 ......................................... 20 系統(tǒng)仿真 ............................................ 20 頂層圖 ........................................... 20 結果分析 ......................................... 25 第六章 總結 .................................. 25 參考文獻 .......................................... 26 附錄程序: ........................................ 28山東輕工業(yè)學院 2021 屆本科生畢業(yè)設計(論文) 1 摘 要 在通信系統(tǒng)中,要提高信息傳輸的有效性,我們將信源的輸出 經過信源編碼用較少的符號來表達信源消息,這些符號的冗余度很小,效率很高,但對噪聲干擾的抵抗能力很弱。 本文章主要研究了基于 VHDL語言的( 7, 4)漢明碼的設計。 decode。目前信道編碼已經成功地應用于各種通信系統(tǒng)中,并且在計算機、磁記錄與各種存儲器中了得到日益廣泛的應用。這就好象我們運送一批玻璃杯一樣,為了保證運送途中不出現打爛玻璃杯的情況,我們通常都用一些泡沫或海棉等物將玻璃杯包裝起來,這種包裝使玻璃杯所占的容積變大,原來一部車能裝 5000 各玻璃杯的,包裝后就只能裝 4000 個了,顯然包裝的代價使運送玻璃杯的有效個數減少了。 漢明碼是由漢明于 1950 年提出的,具有糾正一位錯誤能力的線性分組碼,它的突出特點是:編譯碼電路簡單,易于硬件實現;用軟件實現編譯碼算法時,軟件效率高;而且性能比較好。包括學習 VHDL 編程語言、方法和仿真結果的查看、處理等。對系統(tǒng)進行設計,完成程序的編寫。 論文的內容安排 第二章將介紹 漢明碼及漢明碼編譯原理。 第六章對整個系統(tǒng)的設計進行總 結與展望。 其中任一碼組在傳輸中若發(fā)生一個或多個錯碼,則將變成另一個信息碼組。這 3種碼組都是不準使用的,稱為禁用碼組。 上面這種編碼只能檢測錯碼,不能糾正錯碼。例如,當收到禁用碼組“ 100”時,若當作僅有一個錯碼,則可以判斷此錯碼發(fā)生在“ 1”位,從而糾正為“ 000”(晴)。 在分組碼中,監(jiān)督碼元僅監(jiān)督本碼組中的信息碼元。 分組碼的碼重和碼距 碼重:把碼組中“ 1”的個數目稱為碼組的重量,簡稱碼重。 最小碼距:把某種編碼中各個碼組之間距離的最小值稱為最小 碼距 (d0)。而上述碼距概念在此圖中就對應于各頂點之間沿立方體各邊行走的幾何距離。若碼組 A中發(fā)生一個錯碼,則我們可以認為 A 的位置將移動至以 O點為圓心,以 1 為半徑的圓上某點,但其位置不會超出此圓。反之,若要求檢測 e個錯碼,則最小碼距 d0至少應不小于 ( e + 1)。這兩個圓是不重疊的。這樣,每種碼組如果發(fā)生不超過兩位錯碼都將能被糾正。 在解釋此式之前,先來分析圖 所示的例子。例如,碼組 A若錯了 3位,就會被誤認為碼組 B錯了 2 位造成的結果,從而被錯“糾”為 B。 這種工作方式 是自動在糾錯和檢錯之間轉換的。 在偶數監(jiān)督碼中,由于使用了一位監(jiān)督位 a0,它和信息位 an1 ? a1一起構成一個代數式 : 在接收端解碼時,實際上就是在計算 若 S = 0,就認為無錯碼;若 S = 1,就認為有錯碼。由于兩個校正子的可能值有 4 中組合: 00, 01, 10, 11,故能表示 4 種不同