(1). CPU: Andes RISC CPU core_N12.
(2). 平台: ADP-XC5FF676 V1.1.
(3). Linux OS: Ubuntu9.04.
(4). Toolchains: AndeSight v1.3.3 for Linux.
(5). Embedded Linux2.6.18
(6). Verilog IDE: Xilinx ISE 11.1.
2. 目的:
(1). 使用Xilinx ISE設計數位電路,點亮ADP-XC5實驗板上的7段顯示器.
(2). 使用Xilinx ISE定義腳位.
(3). 使用Xilinx ISE的iMPACT燒錄FPGA.
3. 實驗步驟:
使用Xilinx ISE設計數位電路:
(1). 開啟Xilinx ISE,使用滑鼠選擇〝File->New Project...〞開啟新的計畫,在〝Name〞欄填入計畫名稱後按〝Next>〞,其他如SoC數位電路設計-使用Andes Core(5-4)所述相同.

這個程式非常簡單只是點亮ADP-XC5上的位置LED7的7段顯示器.
下載完整程式:
http://cid-b01cb9ac20175eaa.skydrive.live.com/self.aspx/EX%5E_2/EX%5E_2.zip

使用Xilinx ISE定義腳位:
定義腳位的方式有兩種;一為使用〝PlanAhead〞tools圖形介面擺放腳位,另一為直接使用〝文字編輯〞.
(1). 使用〝PlanAhead〞tools圖形介面擺放腳位:
A. 使用滑鼠點選〝I/O Pin Planning(PlanAhead)-Pre-Synthesis〞選項.






(2). 使用〝文字編輯〞方式:
A. 使用滑鼠點選〝I/O Pin Planning(PlanAhead)-Pre-Synthesis〞選項,之後會在Top-level module下產生〝.ucf〞腳位設定檔,將〝PlanAhead〞tools關閉不使用這個工具做編輯,點選〝Edit Constraints(Text)〞開啟〝.ucf〞檔.




使用Xilinx ISE的iMPACT燒錄FPGA:
FPGA燒錄檔有兩種:
A. 〝.bit〞燒錄時間較快,檔案燒錄後只會暫存,電源關閉後程式會消失,適合開發中的程式測試使用.
B. 〝.mcs〞燒錄至PROM,燒錄時間較久,但電源關閉後程式依然存在,適合已開發完成的程式.
(1). 〝.bit〞檔燒錄方式:
A. 〝.bit〞檔,在每次按〝Implement Top Module〞編譯成功後就會產生,因此按〝Manage Configuration Project(iMPACT)〞直接進入燒錄程序.







注意: 燒錄前USB Cable需與ADP-XC5實驗板連接,請看附錄一.



注意: 如果燒錄完後發現〝Program Failed〞可能是之前有燒錄〝.mcs〞與〝.nky〞檔,需將PROM做〝Erase〞,如附錄二所示.

(2). 〝.mcs〞檔燒錄方式:
A. 要燒錄〝.mcs〞檔前,需先產生〝.mcs〞檔, 〝Manage Configuration Project(iMPACT)〞直接進入燒錄程序.








I. 按〝OK〞.





(1). 拿到ADP-XC5實驗板可以看到為一個上下相同的疊板,〝下板〞FPGA內為〝Andes core N12〞,〝上板〞是要燒錄自己所撰寫的IP,中間是使用AHB bus(AMBA)連結.





附錄二:
(1). 如果燒錄完後發現〝Program Failed〞可能是之前有燒錄〝.mcs〞與〝.nky〞檔,需將PROM做〝Erase〞.




沒有留言:
張貼留言