由於 Quartus® II 軟體版本 12.1 出現問題,使用 Synopsys VCS_MX工具的自動生成模擬腳本模擬範例設計模擬 PCI Express Qsys 範例設計時,可能會看到錯誤。
可能會看到下列錯誤之一:
Error-[MPD] Module previously declared
The module was previously declared at:
"./../..//pcie_de_gen1_x4_ast64_tb/simulation/submodules/altpcietb_bfm_rp_gen2_x8.v",
47
It is redeclared later at:
"./../..//pcie_de_gen1_x4_ast64_tb/simulation/submodules/altpcietb_bfm_rp_gen2_x8.v",
Error-[URMI] Unresolved modules
./../..//pcie_de_gen1_x4_ast64_tb/simulation/submodules/altpcietb_bfm_top_rp.v, 454
"altpcietb_bfm_log_common bfm_log_common( .dummy_out (bfm_log_common_dummy_out));"
Module definition of above instance is not found in the design.
若要解決 Quartus II 軟體版本 12.1 中的此問題,請遵循以下步驟:
- 在文字編輯 器中開啟/testbench/simulaiton/vcsmx/vcsmx_setup.sh 所產生的模擬腳本
要新增到所需程式庫的更新USER_DEFINED_ELAB_OPTIONS
包含路徑:
USER_DEFINED_ELAB_OPTIONS="-y ../../_tb/simulation/submodules/"
請在文字編輯器中開啟下列檔案: /testbench/_tb/模擬/子模組/altpcietb_bfm_rp_gen2_x8.v
- 透過搜尋模組altpcietb_bfm_log_common找出重複模組定義,並評論第二個實例 (行 888-1247)
- 重新執行模擬腳本 ./vcsmx_setup.sh
此問題排定在未來版本的 Quartus II 軟體中修復