SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 1 Hello World 軟 / 硬體實作 硬體實作 軟體實作.

Slides:



Advertisements
Similar presentations
DIR-636L Support 10/100/1000Mbps 1WAN and 4LAN N 300Mbps Wireless Easy wizard setup Support mydlink cloud service mydlink apps (iOS/android) Support.
Advertisements

FCU, Department of ECE, IC Design Research Lab. TEL: # 4945 Pre-SIm , Post-Sim.
3Com Switch 4500 切VLAN教學.
PowerPoint2010 李燕秋 版面配置 版面配置指的是每一個頁面的內容配置 方式,不同的版面配置會有對應的母片。
Mobile IP Lab TA: 洪敏書
Technical Information Services of NCCU 政 大 資 訊 設 備 ( Powered by NCCU Student Ambassadors ) 劉 謙 Harrison 游逸凡 Rudy 黃予涵 Shahad.
T HE APPLICATION OF WII REMOTE - I NFRARED FINGER MOUSE 組員名單: 張哲維、 鄭明昌 陳文泰、 高培修 指導老師 : 蕭旭峰.
SIP Mobiity TA: 洪敏書
在 Ad-hoc 網路中實現點對 點發送訊息與廣播訊息. 檔案下載  範例程式可在下列網址取得  DEMO 程式可在下列網址取得
1 第一章 Word 的基本觀念 內容概要: Word 的特色 啟動與離開 Word 的方法 滑鼠游標與外型的介紹 基本操作 Word 視窗法則 使用 Word 遭遇問題時, 應如何利用軟體特 性而獲得輔助解說.
1 Web of Science 利用指引 單元二 瀏覽與處理查詢結果. 2 瀏覽檢索結果 查出的結果,預設以時間排列, 使用者可改變結果的排列方式: 還可以依被引用次數、相關度、 第一作者、刊名、出版年等排序 回到前先查的結果畫面 點選想看資料的完整書目 本館訂購範圍的期刊 全文,便可直接連結.
五小專案 黃詩晴 章乃云. 目錄 計算機 智慧盤 拼圖 記憶大挑戰 數學題庫 心得 參考文獻.
邏輯設計 題目:3_8解碼器 姓名:李國豪 學號:B09322001.
嵌入式系統概論 - 以 S3C2440 核心為架構 CH16 、第一個 Linux 程式設計. 嵌入式系統概論 - 以 S3C2440 核心為架構 許永和 大綱  16.1 撰寫第一個 Linux 程式  16.2 利用 minicom 與開發平台做溝通  16.3 利用.
Agenda 目標與概述 (purpose) 架構 (structure) 流程 (procedure) 成果 (result)
國立聯合大學 資訊管理學系 陳士杰老師 MySQL5 視覺化資料庫管理工具 - MySQL Adminstrator.
專案設計步驟圖示 輸入 下拉 下一個 5 設定輸入變數 Inc_Exp 6.
MS-DOS 作業系統 張基昇 (Microsoft-Disk Operating System).
Web Meeting 使用教學 ─ 學生版.  如何即時線上與老師互動? 一. 瀏覽太御科技首頁 二. 安裝 JoinNet 在首頁的左手邊 1. 下載 JoinNet 進行安裝 JoinNet.
1 網路同步學習 如何使用中山大學管理學院知識管理平台 愷中 製作. 2 如何登入中山大學網路學習平台 1. 首先, 請輸入 2. 點選申請帳號, 依照螢幕所示, 輸入個人資訊.
VHDL 邏輯設計 題目:一對十六解多工器 題目:一對十六解多工器 姓名:李國豪 姓名:李國豪 學號:B09322001 學號:B09322001.
電腦攻擊與防禦 使用電腦教室 vmware 軟體說 明. 開機說明  選擇第二項 :Xp+VM 開機 Account: SNMG Pass:pc208.
JAVA 程式設計與資料結構 第十章 GUI Introdution III. File Chooser  File Chooser 是一個選擇檔案的圖形介面, 無論我們是要存檔還是要開啟檔案,使 用這個物件都會讓我們覺得容易且舒適。
南投縣社區大學 Excel 實務應用入門 講師 : 林泉成
國立中山大學財產管理系統 線上報廢、盤點系統 總務處保管組 策劃 計算機與網路中心 分析設計 2008/03.
1 Lab 6 D2E Design Platform Introduction FPGA Design Platform.
24-6 設定開始與結束場景中的 程式 最後我們要替這個遊戲收個尾, 幫它把開始 的等待畫面跟結束畫面處理一下。
影像處理學習營 練習(四)製作影片 【下】 影像處理學習營 教師 吳清月. 製作影片 學習重點 一. 設定影片秒數。  加入音樂,與影片做結合。 三. 影片存檔方式之選擇  上傳到網路.
最新計算機概論 第 5 章 系統程式. 5-1 系統程式的類型 作業系統 (OS) : 介於電腦硬體與 應用軟體之間的 程式,除了提供 執行應用軟體的 環境,還負責分 配系統資源。
影像處理學習營 練習(三)製作影片 【上】 影像處理學習營 教師 吳清月. 製作影片 學習重點 一. 利用 movie maker 軟體,編輯相片。  加上文字幕,與圖片結合。
資料庫程式設計與系統管理 SQL Server 2005 Express 第六章 進階資料庫設計.
下載 Dev C++ Compiler. 網址 ding.php?groupnamehttp://sourceforge.net/project/downloa ding.php?groupname=dev-cpp & filename=devcpp _setup.exe.
1-6 動畫的文件屬性 舞台是動畫實際播放的畫面, 所以舞台的大 小與長寬比例對將來動畫的呈現有很大的 影響。 Flash 預設的舞台尺寸是 550 Pixels × 400 Pixels, 背景為白色, 如果要更改舞台大小與 背景色, 請執行『修改 / 文件』命令, 開啟文 件屬性 (Document.
Chapter 17 Windows API 程式入門 VC++ 與 WindowsVC++ 與 Windows 建構遊戲設計的舞台 建構遊戲設計的舞台.
資料庫實作教學.
第二章第二章 Statistica 的工具欄. 本章目標:工具欄之使用 介紹 STATISTICA 是一個非常好用的統計軟體,只 要你對微軟的 Office 套裝軟體有較熟悉的瞭解, 那對 STATISTICA 的工具欄就非常容易掌握。 STATISTICA 的文件組織有四種類型,即 Workbook.
企二 A 管理程式設計 Visual Basic 6.0 Visual Basic 6.0 Visual Basic 6.0 企二 A 管理程式設計 Visual Basic 6.0 Visual Basic 6.0 Visual Basic 6.0許翠婷
Hung-Hsiang WuWindows Processing Design1 Chapter 4 簡單視窗程式 表單與標籤的屬性 按鈕與編輯的屬性 設計簡單的應用程式 表單常用事件 一般鍵盤及滑鼠常見的事件 表單視窗間的呼叫 表單間資料傳送應用 專案選擇設定.
1 Introduction to Java Programming Lecture 2: Basics of Java Programming Spring 2008.
無線隨意及感測網路技術與 應用課程 實驗 1. 2 實驗目的 建立課程所使用平台 FT-6200 無線傳輸設備的相 容軟體環境 Jennic Evaluation System ,並學習相 關設定以及使用方法。 所有資源皆可從光碟片或網站上下載。 安裝並執行範例程式並且分析程式碼。
組合語言與系統程式 軟體使用教學(中文詳細版).
Introduction to Holtek HT-ICE/HT-IDE3000
概念性產品企劃書 呂學儒 李政翰.
組合語言與系統程式 軟體使用教學. 軟體下載及安裝 下載 到課程網頁下載 tw/~jiun/ 安裝 解壓縮後將 System Software 資料夾放在 D 槽 (C 槽版本放在 C 之下 )
1 Introduction to Java Programming Lecture 2: Basics of Java Programming Spring 2009.
Speaker: Shih-Chieh Lin An Integrated Tool of Bioinformatics-Vector NTI 成功大學生物資訊中心.
Use Quartus II Design Procedure 建立項目文件 建立設計文件 軟體模擬 編譯除錯 修改錯誤 源始碼輸入原理圖輸入 選擇晶片,指定接腳 驗證成功 編譯後下載 有錯 無錯 有錯.
程式設計 Visual Basic 6.0 Visual Basic 6.0 Visual Basic 6.0 程式設計 Visual Basic 6.0 Visual Basic 6.0 Visual Basic 6.0許翠婷
如何使用 Yahoo Messenger Yahoo Messenger 雅虎即時通 讓你在第一時間內和上線的朋 友溝通!
ECE Department: University of Massachusetts, Amherst Lab 1: Introduction to NIOS II Hardware Development.
Outlook 教學與研習 (1) - 設定及收發郵件 - 設定郵件規則 陽明大學資訊與通信中心 陳坤元 2006/03/27.
09610CS_ 校園授權軟體下載與安裝 講師 : 張智宏. 登入校務資訊系統 校園軟體下載.
-Artificial Neural Network- Matlab操作介紹 -以類神經網路BPN Model為例
Android 遊戲設計模組 1 Android 開發環境建構 郭育政 東吳大學資訊管理系 涂昆源 萬能科技大學資訊工程系 余執彰 萬能科技大學資訊工程系 周建興 淡江大學電機工程系 林旭陽 東吳大學資訊管理系 教育部網路通訊人才培育先導型計畫 ─ 課程發展計畫.
1 Introduction to Java Programming Lecture 2: Basics of Java Programming Spring 2010.
MS office2003 於護理應用 (V) Excel 授課教師:郝德慧 講師. Excel 基本功能 Outline 1 Excel 的巨集錄製 2 Excel 的巨集執行 3 Excel 的繪製圖表 4 Excel 的專題範例操作 5.
著作權所有 © 旗標出版股份有限公司 第 14 章 製作信封、標籤. 本章提要 製作單一信封 製作單一郵寄標籤.
嵌入式系統概論 - 以 S3C2440 核心為架構 第 6 章 S3C2440 開發平台基本操作.
By: Nadav Haklai & Noam Rabinovici Supervisors: Mike Sumszyk & Roni Lavi Semester:Spring 2010.
Digital Integrated Circuit Design Laboratory Department of Computer Science and Information EngineeringNational Cheng Kung University Experiment on Digital.
ECE Department: University of Massachusetts, Amherst Using Altera CAD tools for NIOS Development.
ASP.NET 應用程式開發與設計 : version control: Git/SVN 講 師: Taoyu Wu ( 吳燾佑 ) 日 期: 2015/3/20 1.
RPL: IPv6 Routing Protocol for Low power and Lossy Networks
數位系統實驗 Experiment on Digital System Lab06: Verilog HDL and FPGA (2) 負責助教:葉俊顯 stanley.
NIOS II Ethernet Communication Final Presentation
Trusted Video Management Lenel Onguard on Crystal.
Internet Technology Laboratory Department of Computer and Communication Kun Shan University  官方網站:
Teaching Digital Logic courses with Altera Technology
Ajax 模組 timer 用法. 安裝 ASPAJAXExtSetup 編輯 ASP.NET 工具用.
Lab 1: Using NIOS II processor for code execution on FPGA
Presentation transcript:

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 1 Hello World 軟 / 硬體實作 硬體實作 軟體實作

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 2 System Block Diagram DE2_70 50MHZ SOPC(FPGA) On-Chip Memory LCD Controller NIOS II Processor JTAG UART System Interconnect Fabric LCD RESET_N(1) USB Blaster PC NIOS II Program POWER 功能 : 於 LCD 顯示 “Hello World”

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 3 Hello World “ 硬 ” 體實作 1. 建立 Quartus Project 2. 建立 SOPC 3. 完成 Quartus Top 4.Compile/Download

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 4 1. 建立 Quartus Project 建立 QUARTUS Project

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 5 Start Quartus Windows Menu “ 開始  所有程式  Altera  Quartus II 7.2 (32-btis)” 建立 QUARTUS Project

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 6 Start“New Project Wizard…” Qaurtus Menu “File  New Project Wizard…” 建立 QUARTUS Project

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 7 Specify Project Info. 建立 QUARTUS Project

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 8 Add Project Files 建立 QUARTUS Project

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 9 Select FPGA 建立 QUARTUS Project

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 10 Select EDA Tool 建立 QUARTUS Project

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 11 Confirm/Finish 建立 QUARTUS Project

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 建立 SOPC 建立 SOPC

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 13 於 Qaurtus 下啟動 SOPC Builder – 選單 “Tools  SOPC Builder…”, 或 – 按下 SOPC Builder ICON 啟動 SOPC Builder 建立 SOPC

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 14 輸入 SYSTEM 資訊 建立 SOPC

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 15 Add “On-Chip Memory” 建立 SOPC

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 16 Add “NIOS II Processor” 建立 SOPC

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 17 Add “JTAG UART” 建立 SOPC

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 18 Add “LCD” 建立 SOPC

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 19 完成 SOPC 設計 建立 SOPC

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 20 Generate Code - DE2_70_SOPC.V (top) - DE2_70_SOPC.PTF 建立 SOPC

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 21 SOPC_DE2_70_SOPC.v ( 內容 ) 建立 SOPC

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 22 SOPC_DE2_70_SOPC.v(SYMB LE) 建立 SOPC

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 完成Q uartus Top 完成 Quartus Top

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 24 目的 : 連接 SOPC 與週邊 完成 Quartus Top

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 25 New Verilog File 完成 Quartus Top

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 26 Rename Verilog File 完成 Quartus Top

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 27 Coding MY_FIRST_SOPC.v module MY_FIRST_SOPC ( ////////////////////Clock Input //////////////////// iCLK_50,// 50 MHz ////////////////////LCD Module 16X2//////////////// oLCD_ON,// LCD Power ON/OFF oLCD_BLON,// LCD Back Light ON/OFF oLCD_RW,// LCD Read/Write Select, 0 = Write, 1 = Read oLCD_EN,// LCD Enable oLCD_RS,// LCD Command/Data Select, 0 = Command, 1 = Data LCD_D,// LCD Data bus 8 bits ); 完成 Quartus Top

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 28 Port Declaration // PORT declarations //================================================== ////////////////////////Clock Input //////////////////////// inputiCLK_50;// 50 MHz ////////////////////LCD Module 16X2//////////////////////////// inout[7:0]LCD_D; // LCD Data bus 8 bits outputoLCD_ON; // LCD Power ON/OFF outputoLCD_BLON; // LCD Back Light ON/OFF outputoLCD_RW; // LCD Read/Write Select, 0 = Write, 1 = Read outputoLCD_EN; // LCD Enable outputoLCD_RS; // LCD Command/Data Select, // 0 = Command, 1 = Data 完成 Quartus Top

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 29 Power On LCD //==========16*2 LCD Module assign oLCD_ON = 1'b1;// LCD ON assign oLCD_BLON= 1'b1;// LCD Back Light 完成 Quartus Top

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 30 Connect SYSTEM // Structural coding //================================================== DE2_70_SOPC u1 ( // 1) global signals:.clk(iCLK_50),.reset_n(1), // the_lcd.LCD_E_from_the_lcd(oLCD_EN),.LCD_RS_from_the_lcd(oLCD_RS),.LCD_RW_from_the_lcd(oLCD_RW),.LCD_data_to_and_from_the_lcd(LCD_D) ); endmodule 完成 Quartus Top

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 31 Pin Assignment - Analysis 選單 “File  Save” save “MY_FIRST_SOPC.V” 選單 “Processing  Start  Start Analysis & Elaboration” 完成 Quartus Top

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 32 開啟 Pin Planner 完成 Quartus Top

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 33 輸入 PIN 角位置 完成 Quartus Top 滑鼠雙擊 後, 打 B2

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation Compile/Download Compile/Download

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 35 Compile Compile/Download

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 36 Download DE2_70 左邊 SWITCH 須切至 “RUN” Compile/Download

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 37 No USB-Blaster? Compile/Download

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 38 Hello World “ 軟 ” 體實作

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 39 Start NIOS II IDE 7.2 Windows 選單 “ 開始  所有程式  Altera  NIOS II EDS 7.2  NIOS II IDE 7.2” New Project

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 40 Setup Workspace 選單 “File  Switch Workspace…” C:\DE2_70\MY_FIRST_SOPC\ software\project_hello New Project

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 41 New Nios Project 選單 “File  New  Nios II C/C++ Application” C:\DE2_70\MY_FIRST_SOPC\ DE2_70_SOPC.ptf New Project

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 42 NIOS II IDE 介面 Coding Editor Project Management

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 43 Coding – hello_world.c #include #include "system.h" void hello_lcd(void); int main() { printf("Hello from Nios II!\n"); hello_lcd(); return 0; } void hello_lcd(void){ FILE *pLCD; char szHello[] = "DE2_70\nHello\n"; pLCD = fopen(LCD_NAME, "w"); if (pLCD){ fwrite(szHello, strlen(szHello), 1, pLCD); //fclose(pLCD); }else{ printf("failed to open LCD\n"); } Coding

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 44 Menu “Project  Build All” Sytem.h Compile

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 45 Download Hardware.SOF Menu “Tools  Quartus II Progammer” Download HW C:\DE2_70\MY_FIRST_SOPC\ MY_FIRST_SOPC.sof

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 46 Run 1 2

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 47 Run Configuration 1. 滑鼠 左鍵雙擊 Run NIOS II Hardware Target Connection 只有第一次未指定硬體時 才會出現此畫面

SOPC/NIOSII 設計與實作課程 © 2007 Terasic Corporation 48 LCD 上出現 NIO2 IDE Console 出現 結果 DE2_70 Hello Run