32
1 1 Verilog-HDL講習会 追加資料(2) AND回路の実装 7, June, 2012

Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

Embed Size (px)

Citation preview

Page 1: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

11

Verilog-HDL講習会追加資料(2)AND回路の実装7, June, 2012

Page 2: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

22

プロジェクトを作成します

Page 3: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

33

プロジェクト名を入力

今回は"first_project_and_2"

入力方法は"HDL"を選択

Page 4: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

44

デバイス・開発環境の設定追加資料(1)を参考にボードのFPGAを選択

合成ツールは"XST",シミュレータは"ISim",言語は"Verilog"を選択

Page 5: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

55

ファイルの作成・追加は行いません

Page 6: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

66

設定を確認

Page 7: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

77

Verilog-HDLソースを追加

右クリック

Verilogモジュールを選択

今回はファイル名を"and2_topmodule"に設定

Page 8: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

88

入出力を設定

x, y は input,z は output に設定

Page 9: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

99

追加するソースの確認

Page 10: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

1010

ISEのメインウインドウを確認

プロジェクトのファイル管理

合成プロセス実行

Verilog-HDL入力エディタ

合成結果表示

メッセージ表示

Page 11: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

1111

2入力AND回路の記述

2入力AND回路を記述します

記述後、保存

Page 12: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

1212

論理合成の実行

右クリック

Page 13: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

1313

ピン配置用ツール(PlanAhead)の起動

右クリック

Page 14: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

1414

UCFファイルの追加を承認

Page 15: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

1515

更新や初期ウインドウはそのまま閉じます

Page 16: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

1616

I/Oピンの選択

"x"を選択

Page 17: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

1717

ピン配置の指定

追加資料(1)を参考にピン位置を入力

ピン位置が正しければ"Apply"が表示されるのでクリック

Page 18: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

1818

全てのピン配置を行います

Page 19: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

1919

配置配線の実行

右クリック

Page 20: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

2020

FPGAエディタを起動します(今回だけ)

右クリック

Page 21: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

2121

FPGAの中身を見てみましょう

Page 22: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

2222

コンフィギュレーション生成

右クリック

Page 23: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

2323

FPGAをPCに接続し、電源を入れます1. ACアダプタ(5V) を接続

2. USBケーブルをPCに接続

3. 電源スイッチをオン

Page 24: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

2424

書込みツール(iMPACT)の起動

右クリック

Page 25: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

2525

FPGAと通信します

JTAG チェーンを選択

Page 26: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

2626

コンフィギュレーションファイルの割り当てを行います

FPGA

ROM CPLD

Page 27: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

2727

FPGAへの割り当て

Verilog-HDL ファイルと同じ名前の .bit ファイルを指定

Page 28: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

2828

FPGA内臓のFLASHには書き込みしません

Page 29: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

2929

ROMには割り当てません

Page 30: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

3030

CPLDも同様に割り当てません

Page 31: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

3131

設定の確認

Page 32: Verilog-HDL講習会 追加資料(2) AND回路の実装 · PDF fileVien Text Report Force Process Up-to-Date Qpen Without Updating Design Goals & Strategiesm Process Propertiesm Synthesize

3232

プログラミングを行いますAND回路が動いたか確認

右クリック

と表示されればFPGAにAND回路が作成されているはずです!