【正文】
ystem. It has no DC ponents and a few of LF ponents. Moreover, it has continuous zeros no more than three. The features of HDB3 code help the signal to be rebuilt and be checked for error easily, so HDB3 code is the monly used code in the transmission system. Low cost, dependability, short design cycle and repeated programmability are the features of FPGA. You can design hardware of digital circuits by using software as a result of using FPGA with EDA. It will construct the digital system quickly and reduce the cost of design. This paper first introduces the development and background of HDB3, FPGA and EDA, and then expands VHDL, which is monly used as a designentry language for EDA. A summary of digital circuits? design by using VHDL is provided. Moreover, the principle and features of HDB3 code is introduced. According to principle of HDB3 codes, the encoder and decoder is designed by using VHDL. Finally, the plan of design, the flow of software design and the simulated waveform of HDB3 encoder and decoder is presented, showing correctness of the design. Keywords: HDB3 code; FPGA; EDA; VHDL; Encoder and Decoder iii 目 錄 摘 要 ....................................................................................................................................................................I ABSTRACT ............................................................................................................................................................ II 第一章 前言 .............................................................................................................................................................1 HDB3碼的簡(jiǎn)述 ...................................................................................................... 1 FPGA 的簡(jiǎn)介 ......................................................................................................... 2 概述 ..................................................................................................................................2 FPGA基本 結(jié)構(gòu)及特點(diǎn) ..................................................................................................2 EDA技術(shù) ............................................................................................................... 4 VHDL 硬件描述語(yǔ)言 ............................................................................................... 4 VHDL 簡(jiǎn)介 ......................................................................................................................4 VHDL 的優(yōu)點(diǎn) ..................................................................................................................5 VHDL 設(shè)計(jì)硬件電路的方法 .........................................................................................6 第二章 HDB3 碼的編譯規(guī)則 ................................................................................................................................9 ............................................................................................. 9 HDB3碼的編碼規(guī)則 ............................................................................................... 9 HDB3碼的譯碼規(guī)則 ..............................................................................................10 HDB3碼的檢錯(cuò)能力 ..............................................................................................10 第三章 HDB3 編碼器的 FPGA實(shí)現(xiàn) ................................................................................................................11 編碼器實(shí)現(xiàn)分析 ................................................................................................... 11 HDB3編碼器的設(shè)計(jì)思 路 ....................................................................................... 11 4 連‘ 0’的檢出加 V 及判 ?1?極性 ...........................................................................11 取代節(jié)選取 ....................................................................................................................11 設(shè)計(jì)建模 .............................................................................................................12 4 連 0 的檢出, AMI 編碼及插 V.............................................................................. 13 補(bǔ) B................................................................................................................................ 14 軟件仿真 .............................................................................................................15 第四章 HDB3譯碼器的 FPGA 實(shí)現(xiàn) ..................................................................................................................... 16 譯碼器的實(shí)現(xiàn)分析 ...............................................................................................16 HDB3編碼器的設(shè)計(jì)思路 .......................................................................................16 V 的檢測(cè) ........................................................................................................................ 16 扣 V 扣 B ........................................................................................................................ 16 iv 設(shè)計(jì)建模 .............................................................................................................17 V 碼、誤碼 檢測(cè) ............................................................................................................ 17 扣 V 扣 B 的實(shí)現(xiàn) .......................................................................................................... 18 軟件仿真 ........