From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.



如何將我的 FPGA 程式移至新的 Target ?



主要軟體:
主要軟體版本: 8.0
主要軟體修正版本:
次要軟體: N/A

問題:
我針對特定的 Target 寫好了一個 FPGA 程式,能夠不改變我的程式碼的情況下,在不同的FPGA target 執行嗎?

解答:
可以,若您新的 target 擁有和原本 target 相同的性能和I/O資源就可以。如果兩個 target 的I/O資源性能不同,像是取樣頻率或解析度,就可能需要改變程式碼。

如果原本的 target 是 R 系列的 DAQ 裝置,新的 target 是 CompactRIO 裝置,由於兩者的I/O有不同的校正設定、解析度和輸入範圍,則 Host VIs 需要有重大的修改。無論如何您都需要重新編譯 FPGA 程式, 除非兩者是型態ㄧ模ㄧ樣的 target。

依照下列步驟移動或複製 I/O 和 VIs 到 新的 target:

  1. 打開已存在的專案檔。
  2. 在專案建立一個新的 FPGA Target。
  3. CompactRIO only: 如果新的和舊的 target 都是 CompactRIO, 點選並拖曳定義在原本 target 端的 C 系列模組到新的target。
  4. 在原本的 target 端下點選並拖曳 I/O 資料夾到新的target。當拖曳時按住鍵,建立ㄧ個 I/O 副本,使它同時存在兩個 target 端。
  5. 從原本的 target 下點選並拖曳 FPGA VIs 到新的 target。當拖曳時按住鍵,建立ㄧ個 FPGA VIs 副本,使它同時存在兩個 target 下。
  6. 如果是從 CompactRIO 到 R 系列的 target,反之亦然,Project Explorer window 下的I/O 節點 (參考圖片)將出現白色! 及紅色圓底. 對於新的 CompactRIO,您需要重新定義正確的 C 系列模組和 FPGA I/O。

    接下來,在 Project Explorer window 下,每個I/O節點按右鍵並點選 Select Resource... (參考圖片)。 從樹狀圖下選擇新的 FPGA I/O
在重新編譯後您的 FPGA VI 將可執行在新的 target。 若您希望得到更多重新使用 FPGA items 的資訊,請參考 LabVIEW Help topic: Reusing FPGA VIs, FPGA I/O Items, FPGA Clocks, and FPGA FIFOs among Multiple FPGA Targets 連結如下。



相關連結:
Product Manuals: Reusing FPGA VIs, FPGA I/O Items, FPGA Clocks, and FPGA FIFOs among Multiple FPGA Targets (FPGA Module) ()

附加檔案:


ConfigIO.JPG - ConfigIO.JPG



報告日期: 08/11/2006
最後更新: 01/29/2007
文件偏號: 40A94QSF