摘 要:圖像DC(離散余弦變換)是圖像壓縮的一項重要技術,如何準確、快速地進行圖像壓縮一直是國內外研究的熱點。首先闡述DC算法原理以及適合硬件設計的快速算法,介紹DP Builder信號處理平臺,重點研究基于DP Builder 平臺的2D-DC硬件實現(xiàn)。在二維DC時,采用一種存取數(shù)據(jù)時直接對數(shù)據(jù)轉置的方法,以提高設計速度。然后在Modelsim 62平臺下進行功能仿真。最后將DP Builder 模塊轉換成VDL語言,并在QuartusRⅡ下進行編譯和時序仿真,達到了理想的效果。
關鍵詞:DP Builder;DC變換;圖像壓縮;FPGA
Implementation on 2D-DC Based on DP Builder
WANG Xiaowei
(Chengdu University of echnology,Chengdu,61009,China)
Abstract:he image Discrete Cosine ransform(DC) is an important technique in the field of image compressionow to compress the image accurately and fast has been a research focus both at home and abroad all the timehis paper introduces the theory of DC and fast algorithm for DC,accomplishes its hardware design based on DP BuilderIn 2D-DC,it uses a fast way for data revolution when reading and writing datahen perform function simulation on Modelsim62At last,it translates the model into VDL and compiles it in QuartusRⅡ,a good result is obtained
Keywords:DP Builder;DC transformation;image compression;FPGA
DC變換由于其良好的去相關性,被廣泛運用在數(shù)字圖像壓縮與編碼中。與DF相比,DC有許多優(yōu)點,其中最突出的是:DF是復數(shù)域的運算,而DC是實數(shù)運算。同DF一樣,DC也有快速變換方法。在以JPEG,MPEG,26x為代表的圖像/視頻壓縮領域,對圖像進行8×8的二維DC變換,只需少量的數(shù)據(jù)點表示圖像,并且它所產生的系數(shù)很容易被量化,在軟件和硬件上都很容易實現(xiàn)。
1 DP Builder介紹
DP Builder開發(fā)工具是Altera公司提供的數(shù)字信號處理平臺,可以在MathWorks imulink環(huán)境下仿真導入的DL設計,結合已有的imulink和DP Builder模型以及自己基于DL的設計,進行FPGA設計。設計人員能夠同時進行多個DL模型或者QuartusRⅡ軟件設計工程,為每一個模塊生成一個獨立的仿真模型。并且能夠在同一設計環(huán)境中,以標準imulink/DP Builder模型來仿真DL模塊。此外,該工具可充分利用和重復使用現(xiàn)有設計,這樣可以大大提高產品開發(fā)速度。在仿真軟件方面,除了可以利用imulink的仿真環(huán)境,DP Builder還提供了與Modelsim的接口,充分利用Modelsim仿真的優(yōu)勢。