2012年9月20日 星期四

modelsim EX and_gate



// Ch02 and_gate.v
// 二輸入及閘 (閘層描述)

module and_gate (A, B, O);
input  A, B;      // A, B 一位元輸入
output O;    // O    一位元輸出

and (O, A, B);

endmodule

//===================================================

// Ch02 T.tfw
// 二輸入及閘 (測試平台程式)

// 時間單位 1ns, 時間精確度1 ps
`timescale 1ns/1ps

module T;
reg A = 1'b0;           // A 暫存器資料初值為‘0’
reg B = 1'b0;           // B 暫存器資料初值為‘0’
wire O;

// 建立and_gate 的模組例證
and_gate UUT (.A(A),.B(B),.O(O));

// initial程序結構區塊, 產生A、B輸入信號波形
initial
begin
  #100;                   // 100ns
    B = 1'b1;           // “01”
  #100;             // 200ns
    A = 1'b1;           // “10”
    B = 1'b0;
  #100;             // 300ns
    B = 1'b1;           // “11”
  end

initial
begin
  #400;                   // 模擬終止時間  400 ns
   $stop;
end

endmodule

Modelsim SE軟體介紹


Modelsim SE軟體介紹

2012年9月19日 星期三

FPGA 相關網站

一些FPGA 相關網站




http://www.fpga4fun.com/



陳鍾誠的網站

金門大學:免費電子書、教材、程式、動畫



http://ccckmit.wikidot.com/aq:de270-swled



Quartus II 教學
http://home.educities.edu.tw/oldfriend/page53.htm




硬體模擬 程式 Altera Quartus II 使用說明
http://homepage.ttu.edu.tw/u9106240/page_main/quartus.html

Altera DE2 Board Resources for Students (版權為原網站所有)


Altera DE2 Board Resources for Students

http://users.ece.gatech.edu/~hamblen/DE2/







How to purchase a DE2 board
New DE1 info is here
New Camera and LCD info is here

DE2 Design Examples

DE2 Clock is a clock/timer that uses the DE2's LCD to display the current time. A VHDL-based state machine is used to communicate with the LCD display controller. The Key2 pushbutton resets the time. All VHDL source code is included.Rapid Prototyping of Digital Systems SOPC Edition  now available from Springer Publishing ISBN 978-0-387-72670-0. Source code and documentation can be found in the book and design files are on the DVD.
NOTE: Right click and use Save Target As for the *.sof programming files below:
PS/2 keyboard demo – displays keyboard make and break scan codes in hex on the LCD
PS/2 mouse demo – displays mouse data on the LCD
Moving Ball video display – displays a moving ball on a VGA monitor
MIPS Processor core – runs a short MIPS program on the MIPS processor core from Patterson and Hennessey, Computer Organization and Design on a VGA monitor and the LCD. Pushbuttons reset and single step the processor.
Available in Rapid Prototyping of Digital Systems: A complete NIOS II DE2 hardware and software tutorial – develops a Nios II hardware design and runs a short C program on a NIOS II processor that blinks the LEDs and tests the DE2's  memory and I/O. Uses SOPC Builder and the NIOS II IDE tool to download and run. A uClinux port for the DE2 is also included.

DE2 Hardware Datasheets & Resources
DE2 Hardware Reference Manual
DE2 Schematic
DE2 Chip Datasheets         Additional Data on DE2 I/O Devices
LCD Module - GDM1602A   and LCD controller timing here
3V to 5V conversion   Bus switch IDTQS3384
Bus and Interfacing Resources
I2C Bus Summary
Serial, Parallel, and USB books & links
Software to monitor Serial, USB ports, and Ethernet Traffic on a PC
Interfacing external hardware
DE2 Software Resources
Altera DE2 demos
Altera DE2 labs
Altera DE2 tutorials
Introduction to Quartus
Quartus Reference Manual Vol. 1
Quartus Reference Manual Vol. 2
Quartus Reference Manual Vol. 3
NIOS II Processor Manuals
Ram Megafunction User Guide
Quartus Web Version Software

  

2012年9月17日 星期一

FPGA系統設計實務


課程名稱 : FPGA系統設計實務

教科書 ( 考試 及 作業 及平時練習 均使用課本 ----請務必購買)

Verilog FPGA晶片設計 (修訂版/附光碟)

林灶生著  全華圖書股份有限公司  出版日期:2008/11/11

本書將IC設計實務經驗深入於範例探討,且每一範例均經過模擬驗證。除了基本的設計技巧外,亦說明多模組整合設計之技術。希望藉由此書帶領讀者進入以Verilog為主的各種相關設計領域中,熟悉Verilog語言全貌,更希望藉由它,幫助讀者完成各種晶片之設計。內容包含有:數位邏輯設計與Verilog發展沿革、Verilog設計風格與觀念、Verilog設計結構、閘層(Gate Level)描述、資料流描述設 
參考書籍:
黃英叡, 黃稚存, Verilog硬體描述語言(Verilog HDL: A guide to Digital Design and Synthesis 2/E), 第二版, 全華圖書, 2009.
鄭光欽,周靜娟, Verilog硬體描述語言實務,全華圖書, 2011.

大綱:
本課程以實作為主、理論為輔,使用Verilog HDL語言及Altera FPGA電路合成,教導學生如何用FPGA設計電路,熟悉FPGA數位設計流程,並以LAB方式大量講解FPGA設計常見的各種介面IO電路,藉以培養學生利用數位設計技術能力。

1.平時實驗考核40% 2.作業20% 3.期中考20% 4.期末考20%

使用Verilog硬體描述語言及Altera Quartus II EDA軟體工具。
實驗設備採用Altera DE2-70,由基礎組合邏輯序向邏輯實驗到常用週邊I/O介面。
2: FPGA 設計流程與設計平台工具
3: 組合邏輯電路設計
4: 序向電路設計
5: 設計與驗證與合成
6: FPGA Design Examples

8. Altera DE2 實驗 ( Altera DE2 Board, featuring an an Altera Cyclone II® FPGA)
   a. switches, LEDs, and seven-segment displays
   b. LCD Display
   c. Audio CODEC
   d. PS2 Keyboard and Mouse
   e. VGA Controller
   f. Memory
   g. RS232 UART

第1週 數位邏輯設計與Verilog發展沿革  及實驗工具介紹

第2週Verilog設計風格與觀念及 實驗

第3週 Verilog設計結構 閘層(Gate Level)描述  及 實驗

第4週 資料流描述設計(Dataflow Modeling) 及 實驗

第5週 行為描述及 實驗

第6週 函數及任務  及 實驗

第7週 自定邏輯電路與狀態機 及 實驗

第8週 Verilog程式設計技巧 及 實驗

第9週 期中考週

第10週 電路的延遲時序設定及 實驗

第11週 專題實務設計 0~9999 十進制計數器~16位元布斯(Booth)乘法器  實驗

第12週 專題實務設計 16位元移位式除法器 鍵盤控制電路  實驗

第13週 專題實務設計 循環餘數核對CRC電路 浮點數運算器電路  實驗

第14週 DE2 專題實務設計 七段顯示器與按鍵 實驗

第15週 DE2  Audio CODEC及PS2 Keyboard  實驗

第16週 DE2 VGA Controller 及 Memory 實驗

第17週 DE2 RS232 UART實驗

第18週 期末考週


FPGA 相關資料

FPGA 公佈欄

http://www.4shared.com/file/E-118yKY/DE2_pin_assignments.html?

DE2_pin_assignments.csv


http://www.4shared.com/office/CYqzUtnF/VHDL-200-02-Modelsim_SE2.html?

VHDL-200-02-Modelsim SE軟體介紹2.ppt


http://www.4shared.com/photo/T21hf540/EEPROM.html?
燒錄至EEPROM.jpg


http://www.4shared.com/rar/Y_xrJEBm/light2.html?

verilog 程式   light.v   light2.rar




http://www.4shared.com/office/vkb2MtjD/_online.html?

參考資料.pdf




http://www.4shared.com/office/nR6nywVj/1-1.html?
參考資料 實驗1-1.pdf


http://www.4shared.com/office/LfeSU8hV/1-3.html?

參考資料實驗1-3.pdf




http://www.4shared.com/office/w5JSXe4V/_online.html?

電子系安全衛生守則.doc


http://www.4shared.com/office/_eBgWIUp/1-2.html?

參考資料實驗1-2.pdf






MIFARE Classic Command Flow Diagram

MIFARE Classic Command Flow Diagram   這個程式將圖片中的 MIFARE Classic Command Flow Diagram 完整繪製在畫布上(包含中英文對照、虛線錯誤返回路徑、實線流程箭頭以及右側的「典型交易時間」資訊),並提供「上一...