Download presentation
Presentation is loading. Please wait.
1
Programmable Logic System Design
Lab03- Simulation Preliminary SOC LAB. Chang-Ting Chen
2
Lab Description 認識實驗版 Spartan-3 Starter Kit Board
撰寫 VHDL,利用 Switch 模組控制 LED 模組 定義I/O腳位(I/O Pins),產生燒錄檔(*.bit),燒錄並觀察在 FPGA 板子上的結果
3
Spartan-3 Starter Kit Board
4
Create Xilinx Project 若忘記 Xilinx 開新 Project 的設定請參考 Lab1 的講義
Device Family 選 Spartan3 系列 Device 型號詳見盒上便條紙 (xc3s200/xc3s400) Package 選 ft256 其它用 Xilinx 預設即可
5
Use Switches to Light LEDs
library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_ARITH.ALL; use IEEE.STD_LOGIC_UNSIGNED.ALL; entity demo is Port ( swt : in std_logic_vector(7 downto 0); led : out std_logic_vector(7 downto 0)); end demo; architecture Behavioral of demo is begin led(7 downto 0) <= swt(7 downto 0); end Behavioral;
6
Pin Assignment Add the Implementation Constraints File
7
Pin Assignment (Cont’d)
腳位在FPGA板上都有寫 只需要填寫 Loc 欄即可
8
Pin Assignment (Cont’d)
Properties of Generate Programming File 右鍵→Properties
9
Pin Assignment (Cont’d)
Check Create Bit File (若已勾選則不用動) FPGA Start-Up Clock => JTAG Clock
10
Programming Process
11
Programming Process (Cont’d)
Select Boundary-Scan Mode (預設) Select Automatically connect and identify (預設)
12
Detecting Boundary-scan Chain
13
Assign Configuration File to FPGA
14
Bypass Platform Flash PROM
15
Program Process 在左邊的圖示上按右鍵→Program
16
Programming succeeded
取消 Verify 選項 → 按 OK 進行燒錄 → 成功後出現以下畫面
17
Assignment 以VHDL 撰寫描述此一真值表並完成波形模擬圖、腳位設定以及Download。並輸入訊號觀察與模擬設計是否相符。
Similar presentations