在使用ISE時候,我們經常在translate階段會碰到這種錯誤,NgdBuild:604 - logical block 'U5/U0' with type 'DCM0' could not be resolved. A pin name misspelling can cause this, a missing edif or ngc file, or the misspelling of a type name. Symbol 'DCM0' is not supported in target 'spartan3e'. 這是因為我們在添加文件時候,忘記添加NGC文件到工程目錄中。下面就演示如何添加NGC文件到工程目錄中。NGC文件既要添加到Synthesize的目錄下,也要添加到Implement目錄下。
第一步:在Synthesize下添加NGC文件
如圖在SynSynthesize中選擇Process Properities
在Synthesis Options中可以看到-sd和-vlgincdir。在-sd一欄中添加工程中所有的ngc或的edn文件的路徑目錄。在-vlgincdir中添加define.v文件的目錄。
第二步:在到Implement目錄下添加NGC文件
如圖在Implement Design中選擇Process Properities。
在Translate Properties中的-sd一欄中添加添加工程中所有的ngc或的edn文件的路徑目錄否則translate的時候會出錯。