1 / 24

數位系統實驗 實驗01

數位系統實驗 實驗01. 四位元加減法器. 功能模擬 (1/6). 產生 Waveform File F ile → N ew… → Vector Waveform File. 功能模擬 (2/6). 匯入 N ode or B us… E dit → Ins e rt → Insert Node or B u s. 功能模擬 (3/6). Node Finder… → List → OK → OK. 功能模擬 (4/6). 調整模擬時間總長 E dit → End ti m e → 500.0 ns → OK 調整模擬時間間隔

Download Presentation

數位系統實驗 實驗01

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 數位系統實驗實驗01

  2. 四位元加減法器

  3. 功能模擬 (1/6) • 產生 Waveform File File → New… → Vector Waveform File

  4. 功能模擬 (2/6) • 匯入 Node or Bus… Edit → Insert → Insert Node or Bus...

  5. 功能模擬 (3/6) • Node Finder… → List → OK → OK

  6. 功能模擬 (4/6) • 調整模擬時間總長 Edit → End time → 500.0 ns → OK • 調整模擬時間間隔 Edit → Grid Size → 50.0 ns → OK • 調成視窗大小View → Fit in Window • 輸入號給值Select → 後半段用選取方式 設定 (設定成 1 做減法)X → → Every half grid interval Y → → At random intervals • 輸入值設定完成 存檔

  7. 功能模擬 (5/6) • 開啟模擬工具Processing → Simulator tool按照 右圖,依序選取或按下1. 選取剛剛儲存好的 <.vwf> 檔2. 選擇 <Functional>3. 執行 <Genernal Functional Simulation Netlist>4. 執行 <Start> 開始模擬5. 執行 <Report> 觀看結果 2 3 1 5 4

  8. 功能模擬 (6/6) 1 2 • 1. 15+11=26 > 16, 26-16=10 顯示 Sum = 10, carryOut = 1 • 2. 6-10= -4 < 0, 借位 carryOut = 1, 16-4=12 顯示 Sum = 12, carryOut = 1

  9. 製成 模組 • 回到 最後完成之 <.bdf> 圖檔File → Create / Update → Create Symbol Files for Current File

  10. 七段顯示器 • 七段顯示器的 輸入/輸出 端(以下以七段簡稱七段顯示器) 需要一個4 bit的輸入端以及一個7 bit的輸出端 七段的命名與 Bus 的命名相仿

  11. 專案目錄 • 如下圖所示,專案目錄之路徑為 D:/quartus_prj/ie497516161/ex1/ • 自課程網頁上下載 seg7.v、seg7.bsf、DE2_pin_assignments 儲存在專案所在目錄底下。(注意: seg7.v、seg7.bsf 須解壓縮方可使用) 專案所在目錄路徑

  12. 七段顯示器使用 • 重新產生一個新的圖檔 並 儲存File → New… → Block Diagram / Schematic File File → Save As… 檔名可用 ex1pin.bdf • 畫出下列圖檔

  13. 輸入/輸出 端的命名 • 上述命名諸如: SW[0]、SW[1]、HEX0、HEX1,皆根據 DE2_pin_assignments(此份檔案可在教學網頁上下載) Cyclone II EP2C35F672C6 HEX3 HEX2 HEX1 HEX0 SW3 SW2 SW1 SW0

  14. HEX3 HEX2 HEX1 HEX0 SW3 SW2 SW1 SW0

  15. 畫完之後存檔,存檔完成之後,將 ex1pin.bdf 設成 Top-Level Entity 2.滑鼠 右鍵 1. Files

  16. Import Assignment (1/4) • 本次工作在於準備匯入 DE2_pin_assignments • 首先,Assignments → Import Assignments..

  17. Import Assignment (2/4) • 經由 Assignments → Import Assignments..會出現以下視窗 再由紅色箭頭所指位置選擇 DE2_pin_assignments 的存放路徑即可匯入檔案

  18. Import Assignment (3/4) • 建議將 DE2_pin_assignments 儲存在專案所在目錄 即 D:\quartus_prj\ie497516161\ex1\

  19. Import Assignment (4/4) • 選定 DE2_pin_assignments 的路徑之後,回到下圖所列之視窗,按 OK即可。

  20. Programmer (1/4) • 本次工作在於準備進行Download 到 DE 2 • 首先,Tools → Programmer

  21. Programmer (2/4) • 由紅色箭頭所指 Hardware Setup.. No Hardware:表示目前尚未偵測到板子

  22. Programmer (3/4) • 檢查 DE 2 是否以正確地被電腦所偵測

  23. Programmer (4/4) • 若皆以完成上述三個步驟,則可點選紅色箭頭所指 Start,進行 Download 到板子 若有出現紅色框框的內容,表示板子有被正確地偵測

  24. Top-Level 電路圖 LEDR17 LEDR16 …. LEDR1 LEDR0

More Related