履歴: 電気回路/HDL/Xilinx ISE Webpack 気づいた点

各行は、その日時に書かれた内容です。追加・削除は、1 つ前の版との行数の差です (全 10 版)。「差分」は比較する版、「基準」は比べる相手の版を選びます

日時タイトル文字数追加削除内容差分基準
2013/1/6 3:28:36電気回路/HDL/Xilinx ISE Webpack 気づいた点 最新版15,483+1 -10表示差分—
2013/1/6 3:28:36電気回路/HDL/Xilinx ISE Webpack 気づいた点 15,665+0 -10表示差分選択
2013/1/5 8:42:46電気回路/HDL/Xilinx ISE Webpack 気づいた点 15,823+10 -0表示表示中選択
2012/12/28 2:41:28電気回路/HDL/Xilinx ISE Webpack 気づいた点 15,665+9 -0表示差分選択
2012/12/4 6:22:52電気回路/HDL/Xilinx ISE Webpack 気づいた点 15,489+26 -0表示差分選択
2012/11/29 9:53:14電気回路/HDL/Xilinx ISE Webpack 気づいた点 14,592+53 -0表示差分選択
2012/11/14 10:58:40電気回路/HDL/Xilinx ISE Webpack 気づいた点 13,184+86 -1表示差分選択
2012/11/6 12:43:34電気回路/HDL/Xilinx ISE Webpack 気づいた点 10,489+15 -0表示差分選択
2012/10/5 11:14:16電気回路/HDL/Xilinx ISE Webpack 気づいた点 10,053+251 -17表示差分選択
2012/10/5 6:52:46電気回路/HDL/Xilinx ISE Webpack 気づいた点 3,425— —表示—基準

基準: 電気回路/HDL/Xilinx ISE Webpack 気づいた点 (2012/10/5 6:52:46) → 比較: 電気回路/HDL/Xilinx ISE Webpack 気づいた点 (2013/1/5 8:42:46)

@@ -1,20 +1,22 @@
+#contents
+
* 概要 [#g689b466]
-Xilinx ISE Webpack 関連で気づいたバグや改善要望など
+Xilinx ISE Webpack 関連で気づいたバグや改善要望などを。
-ここに書いても仕方がないのだけれど、
-もし同じ問題を抱える方々の助けになれば、ということで。
+本来ここに書いても仕方がないのですが、
+もし同じ問題を抱える方々の助けになれば、ということで書いてみます。
* 古い記事 [#m66815a5]
-
[[電気回路/HDL/Xilinx ISE 12.1で気づいた点]]
[[電気回路/HDL/Xilinx ISE 12.2で気づいた点]]
-* Xilinx ISE Webpack 14.2 [#p8973904]
+* Xilinx ISE Webpack 14.2: CPLD プロジェクトの Fitting フェーズで Segmentation Fault エラー [#y9e13a64]
-** CPLD プロジェクトの Fitting フェーズで Segmentation Fault エラー [#y9e13a64]
+CPLD 用の Verilog コードを Project Navigator から論理合成したところ、
+Fitting がエラーで止まってしまいました。
ISE 上での表示:
@@ -60,7 +62,7 @@
invoked from within
"::xilinx::Dpm::dpm_chTransformExecute dpm_fitterRun $piThisInterface"
-おかしなエラーで Fitting が終了できませんでした。
+おかしなエラーで Fitting が終了できません。
Design main has been optimized and fit into device XC95288XL-7-TQ144.
@@ -69,21 +71,30 @@
ERROR:ProjectMgmt:387 - TOE: ITclInterp::ExecuteCmd gave Tcl result 'can't read "iFileType": no such variable'.
とか、明らかにツールのバグっぽいエラーが生じているのですが、
-同様の問題に関する ISE 13.4 に関する報告が、
+同様の問題に関する ISE 13.4 に関する報告は、
http://forums.xilinx.com/t5/CPLDs/Please-help-with-Nonsense-error-ProjectMgmt-387-TOE-when-running/td-p/230943
-にあって、原因も不明のまま放置されているようでした。
+に1件だけあって、原因も不明のまま放置されていたようでした。~
+(後に、ここで得た結果を私自身が書き込みました)
-どうやら Project Navigator 側のバグっぽいなと感じたため、
-cpldfit を直接コマンドラインから実行してみたところ、
+リンク先では「他の機能を追加していったらいつの間にかエラーが消えた」
+という、一応のハッピーエンドだったので放置されたんだと思うのですが、
+こちらのコードはもうこれで完成なので、これが通らないと困ってしまいます。
+むむぅ。
+
+どうやらエラーを吐いているのは Project Navigator 側のバグっぽい、
+と感じたため cpldfit を直接コマンドラインから実行してみたところ、
+
LANG:console
- $ cpldfit -intstyle ise -p xc95288xl-7-TQ144 -ofmt vhdl -optimize speed -htmlrpt -loc on
- -slew fast -init low -inputs 54 -pterms 50 -unused ground -power std -terminate keeper main.ngd
- WARNING:Cpld - Unable to retrieve the path to the iSE Project Repository. Will
- use the default filename of 'main.ise'.
+ $ cpldfit -intstyle ise -p xc95288xl-7-TQ144 -ofmt vhdl -optimize speed
+ -htmlrpt -loc on -slew fast -init low -inputs 54 -pterms 50 -unused ground
+ -power std -terminate keeper main.ngd
+ WARNING:Cpld - Unable to retrieve the path to the iSE Project Repository.
+ Will use the default filename of 'main.ise'.
+
... (中略) ...
Timing driven global resource optimization
@@ -97,7 +108,428 @@
となって、cpldfit が最後に SEGV でコケていることが判明しました。
-Project Navigator がこれを正しくハンドリングできていないこと自体もバグですが、
-その前に cpldfit が SEGV するバグが主原因ですね。。。
+Project Navigator がこれを正しくハンドリングできていないことが上記のエラーの
+直接の原因ですが、その前に cpldfit が SEGV するのを何とかしないと先には進めない。
-とはいえ、これでは結局理由は分からない。
+とはいえ、これだけの情報では結局理由が分からず困っています・・・
+
+** 状況・試したこと [#q05e19aa]
+
+*** Cleanup Project Files [#pd4a6b4b]
+
+上記リンク先でも報告されているとおり、
+
+- Cleanup Project Files...
+
+では変化はありませんでした。
+
+*** Warning の確認 [#kbaf86b8]
+
+Rebuild All した際に表示される Warning は、
+Synthesize フェーズに出る
+
+ WARNING:Cpld - Unable to retrieve the path to the iSE Project Repository. Will
+ use the default filename of 'main.ise'.
+
+だけで、この警告は
+
+http://japan.xilinx.com/support/answers/38791.htm
+
+によれば無視して良いとのこと。
+
+*** どこでこけているか [#qdb30d75]
+
+Fitting がうまくいった場合、
+
+ Design main has been optimized and fit into device XC95288XL-7-TQ144.
+
+ Started : "Generate HTML report".
+ Running XSLTProcess...
+ Command Line: XSLTProcess main_build.xml
+ Release 14.2 - CPLD HTML Report Processor P.28xd (nt64)
+ Copyright (c) 1995-2012 Xilinx, Inc. All rights reserved.
+
+ Process "Generate HTML report" completed successfully
+
+ Started : "Generate Post-Fit Timing Data".
+ Running tsim...
+ Command Line: tsim -intstyle ise main main.nga
+ Creating NGA for simulation.
+ Speed File: Version 3.0
+
+ Process "Generate Post-Fit Timing Data" completed successfully
+
+ Process "Fit" completed successfully
+
+ Started : "Generate Timing".
+ Running taengine...
+ Command Line: taengine -intstyle ise -f main -w --format html1 -l main_html/tim/timing_report.htm
+ Release 14.2 - Timing Report Generator P.28xd (nt64)
+ Copyright (c) 1995-2012 Xilinx, Inc. All rights reserved.
+ Path tracing ........
+ The number of paths traced: 708.
+
+ ....
+ The number of paths traced: 1417.
+
+ Checking for asynchronous logic...
+ No asynchronous logic found.
+ Generating TA GUI report ...
+ Generating detailed paths report ...
+
+ main_html/tim/timing_report.htm has been created.
+
+ Process "Generate Timing" completed successfully
+
+のようになるはずで、
+
+ Design main has been optimized and fit into device XC95288XL-7-TQ144.
+
+の次は、
+
+ Started : "Generate HTML report".
+
+が続きます。
+
+論理合成が済んで、HTML レポートを作成するまでの間でこけている?
+
+*** HTML レポートを作らせない [#r5784272]
+
+そこで、コマンドラインから -htmlrpt オプションを除いてみたけれど、
+結果は変わりませんでした。
+
+*** Fit の Process Options -> Implementation Template = Optimize Speed [#wb3e1a10]
+
+Fit の Process Options の中で、
+Implementation Template が Balance になっていたのを、Speed に変更したところ、
+上と変わりませんでした。
+
+*** Fit の Process Options -> Implementation Template = Optimize Density [#d44a0dce]
+
+Implementation Template を Density に変更したところ、
+
+ Re-checking device resources ...
+ ERROR:Cpld:853 - Insufficient number of product terms. This design needs at
+ least 1508 but only 1440 left after allocating other resources.
+ Device 95288XL144 was disqualified.
+ ERROR:Cpld:868 - Cannot fit the design into any of the specified devices with
+ the selected implementation options.
+
+となって、フィッティングができないと言われました。
+Density にしたら入り切らなくなると言うのもおかしな話ですね。
+
+|Macrocells Used |Pterms Used |Registers Used |Pins Used |Function Block Inputs Used |
+|16/288 (6%) |20/1440 (2%) |5/288 (2%) |31/117 (27%) |46/864 (6%) |
+
+レポートを見る限り入りきらない訳もなさそうなのですが・・・
+
+Logic Optimization を Speed から Density にしても、
+Implementation Template が Optimize Density だと上記のエラー。
+
+*** Exhaustive Fit Mode = on [#v25a4ea9]
+
+Exhaustive Fit Mode を on にすると、
+
+ pterm limit: 90 and input limit: 54
+
+から、徐々に input limit を減らして試すようで、
+
+ pterm limit: 90 and input limit: 24
+
+の時に、
+
+ INFO:Cpld:994 - Exhaustive fitting is trying pterm limit: 90 and input limit: 24
+ Considering device XC95288XL-7-TQ144.
+ Multi-level logic optimization...
+ Timespec optimization..............................................................................................................................................................................
+ Density optimization........
+ Timespec driven global resource optimization All paths with TIMESPECs have been optimized.
+
+ General global resource optimization........
+ Re-checking device resources ...
+ Mapping a total of 86 equations into 16 function blocks...........................................................................................................................................................................................................................................................
+
+ Design main has been optimized and fit into device XC95288XL-7-TQ144.
+ ERROR:Cpld:1244 - Unexpected Exceptions
+
+ Started : "Generate HTML report".
+ Running XSLTProcess...
+ Command Line: XSLTProcess main_build.xml
+ Release 14.2 - CPLD HTML Report Processor P.28xd (nt64)
+ Copyright (c) 1995-2012 Xilinx, Inc. All rights reserved.
+ ERROR:Cpld:1244 - Unexpected Exceptions
+
+ Process "Generate HTML report" completed successfully
+
+ Started : "Generate Post-Fit Timing Data".
+ Running tsim...
+ Command Line: tsim -intstyle ise main main.nga
+ Creating NGA for simulation.
+ Speed File: Version 3.0
+
+ Process "Generate Post-Fit Timing Data" completed successfully
+
+ Process "Fit" completed successfully
+
+ Started : "Generate Timing".
+ Running taengine...
+ Command Line: taengine -intstyle ise -f main -w --format html1 -l main_html/tim/timing_report.htm
+ Release 14.2 - Timing Report Generator P.28xd (nt64)
+ Copyright (c) 1995-2012 Xilinx, Inc. All rights reserved.
+ Path tracing ........
+ The number of paths traced: 789.
+
+ ....
+ The number of paths traced: 1579.
+
+ Checking for asynchronous logic...
+ No asynchronous logic found.
+ Generating TA GUI report ...
+ Generating detailed paths report ...
+
+ main_html/tim/timing_report.htm has been created.
+
+ Process "Generate Timing" completed successfully
+
+となって、途中で
+
+ ERROR:Cpld:1244 - Unexpected Exceptions
+
+を2度吐いているにも関わらず、うまくいったことになりました。
+
+Generate Programming File も、
+
+ Started : "Generate Programming File".
+ Running hprep6...
+ Command Line: hprep6 -s IEEE1149 -n main -i main
+ Release 14.2 - Programming File Generator P.28xd (nt64)
+ Copyright (c) 1995-2012 Xilinx, Inc. All rights reserved.
+
+ Process "Generate Programming File" completed successfully
+
+のようにすんなり通りましたが・・・これでできた回路を実機に入れて試して良い物かどうか・・・
+
+Input Limit の初期値は Fit の Process Properties の中で
+Collapsing Input Limit として設定できるので、
+これをはじめから 24 にしておけば、Fit にかかる時間を減らせそうです。
+
+*** 動いていない感じ [#xe98a92e]
+
+うーん、案の定というか何というか、上記のようにして無理矢理合成した回路は実機で動きませんでした。
+
+全然動かないわけではないのですが、カウンタが必要以上に回っている感じでシミュレーション結果と合いません。
+
+クロック周波数に掛けている制約を満たせていないのにそのままになっている雰囲気なのですが、
+上記を見る限り Timing Report などはちゃんと走っていそうなので、そんなことがあるのかどうか、
+いまいち自信を持てないでいます。
+
+*** 原因を突き止めました => -ofmt VHDL [#v809c925]
+
+これがいけなかったみたいです。
+
+Fit の Process Properties で -ofmt を ABEL (default?) にしたところ、上記エラーは出なくなりました。
+
+Fitting が終わって、HTML Report の出力の手前でこけていた原因としては妥当ですね。。。
+
+* Map 中の WARNING Pack:266 について [#h33a6f93]
+
+ Pack:266 - The function generator <some_thing> failed to merge with
+ F5 multiplexer <some_other_thing>. There is a conflict for the FXMUX.
+ The design will exhibit suboptimal timing.
+
+という警告が出て、その内容が気になったのですが、結局よく分かりませんでした。
+
+入りきらないということ?
+
+http://rubidium.dyndns.org/pipermail/fpga-synth/2007-March/000814.html
+
+によれば気にすることはない、ということで、確かに Timing Constraint
+を満たしている限りは見なかったことにしても良いのかもしれませんね。
+
+* ISim の Simulation Terminated エラー [#iddf0e68]
+
+あるテストベンチを ISim で走らせたところ、
+
+ The simulator has terminated in an unexpected manner. Please review
+ the ISim log (isim.log) for details.
+
+というメッセージが出ました。ISim 14.2 です。
+
+ISim の Console には、
+
+ LANG:console
+ ERROR: FATAL ERROR:ISim: This application has discovered an exceptional condition from which it
+ cannot recover. Process will terminate. To search for possible resolutions to this issue, refer to
+ the Xilinx answer database by going to http://www.xilinx.com/support/answers/index.htm and search
+ with keywords 'ISim' and 'FATAL ERROR'. For technical support on this issue, please open a WebCase
+ with this project attached at http://www.xilinx.com/support.ERROR: The simulation failed to launch
+ for the following reason:
+ The Simulation shut down unexpectedly during initialization. Please review the ISim log
+ (isim.log) for details.
+ Please shut down ISim and retry the simulation. If the problem persists, please contact Xilinx
+ support.
+ Time resolution is 1 fs
+ No active Database
+ Unable to execute live simulation command.
+
+ The simulation has terminated.
+
+が表示されています。
+
+言われたとおりに (project)\isim.log を見てみても、同じ内容が書かれているだけでげんなりします。~
+(project)\isim\(testbench)\isimkernel.log も同じ内容です。
+
+(project)\isim\(testbench)\isimcrash.log にはスタックトレースが残っていて、
+
+ LANG:console
+ Exception at PC 0x000000018008768E
+ Attemped to read address 0xFFFFFFFFFFFFFFFF
+ Printing stacktrace...
+
+ [0] (HSimNetDriver::operator=+0xb38e) [0x0x000000018008768e]
+ [1] (HSimNetDriver::operator=+0xb38e) [0x0x000000018008768e]
+ [2] (xsi_vlog_namedbase_setdisablestate+0xa544) [0x0x0000000180047744]
+ [3] (HSimBaseProcess::setCurrentWaitInfo+0xec7c) [0x0x000000018003735c]
+ [4] (HSimBaseProcess::setCurrentWaitInfo+0x54d2) [0x0x000000018002dbb2]
+ [5] (HSimBaseProcess::setCurrentWaitInfo+0xe35c) [0x0x0000000180036a3c]
+ [6] (HSimBaseProcess::setCurrentWaitInfo+0x54d2) [0x0x000000018002dbb2]
+ [7] (xsi_run_simulation+0x1f0) [0x0x0000000180122cb0]
+ [8] [0x0x000000000040180e]
+ Done
+
+xsi_vlog_namedbase_setdisablestate の中で HSimNetDriver の代入演算子
+operator= でアドレス 0xFFFFFFFFFFFFFFFF を参照してこけていることが分かります。
+
+代入演算子をオーバーロードしているあたりはちょっとアレな感じもしますが、
+ここからだとなんだか分からないですね。disable を呼んでいるところが問題なのかも
+しれません?
+
+未だコードのどこを直せばよいのか分からず、あちこち削っては試しています。
+
+** 特定しました [#p6d20953]
+
+かなり時間がかかりましたが、原因を特定できました。
+
+以下のごく単純なコードで再現します。
+
+ LANG:verilog
+ module test_tb;
+
+ wire [7:0] test; // 8 bit しかないのに
+ assign test[8] = 0; // 9bit 目に assign する
+
+ endmodule
+
+本来ならビット幅を超えているというエラーが出るはずが、
+エラーを出さずにコンパイラーがこけてしまったわけです。
+
+確かにスタックトレースの示すとおり、
+ネットドライバーを設定するところでこけてましたね。
+
+実際のコードでは generate for の中でパラメータの指定を間違って、
+下位モジュールに存在しないビットを渡していました。
+
+コンパイラーが正しくエラーを出してくれれば数秒で直せるところ、
+コンパイラーのバグ探しで1時間以上かかってしまいました(怒
+
+** 加えて [#z57e70f5]
+
+本件と関連して、
+
+ LANG:verilog
+ module test_tb;
+
+ wire [7:0] test; // 8 bit しかないのに
+ wire signal = test[8]; // 9bit 目を参照する
+
+ endmodule
+
+のように範囲外のビットを参照する場合には、コンパイル時にはエラーにならず、
+signal ワイヤーを ISim の波形表示欄に追加してテストベンチを動かした時点で
+ISim ごと落ちてしまうようですね。
+
+ちゃんとコンパイル時にチェックしてエラーを吐くべきだと思います。
+
+波形表示欄に登録してあった信号線が再コンパイルで削除された場合に ISim が落ちてしまうこと、~
+ソースの変更によりモジュールの参照関係が変化した際に ISim の Re-launch で再コンパイルできないこと、
+なども改善してほしいところです。
+
+* ERROR:Xst - Data corruption: Not supported Property in Property visitor [#bd14f6c1]
+
+ISE の Synthesize 時に訳の分からないエラーが出ました。
+
+ ...
+
+ Unit <main> synthesized.
+
+ INFO:Xst:1767 - HDL ADVISOR - Resource sharing has identified that some arithmetic
+ operations in this design can share the same physical resources for reduced device
+ utilization. For improved clock frequency you may try to disable resource sharing.
+ ERROR:Xst - Data corruption: Not supported Property in Property visitor
+ ERROR:Xst - Data corruption: Not supported Property in Property visitor
+ ERROR:Xst - Data corruption: Not supported Property in Property visitor
+
+ =========================================================================
+ HDL Synthesis Report
+ ...
+
+
+このメッセージじゃ何が原因か全く分からないです(困
+
+とはいえ、このエラーは "Unit <main> synthesized." のメッセージの後に出ているもので、
+なぜか問題なくその後の Fit, Map, PAR に進めてしまします。
+
+念のため [Project]-[Cleanup Project Files...] してみましたが解決しませんでした。
+
+Google で調べても1件もヒットしないのはとても不思議なのですが・・・
+
+無視してて良いんですかね???
+
+* ISim の FATAL ERROR [#tf1787e9]
+
+ISim 14.2 でこんなの出ました。
+
+ LANG:console
+ Simulator is doing circuit initialization process.
+ ERROR: In process oscillo_data_buffer.vCont_208_11
+ FATAL ERROR:ISim: This application has discovered an exceptional condition from which
+ it cannot recover. Process will terminate. To search for possible resolutions to this
+ issue, refer to the Xilinx answer database by going to
+ http://www.xilinx.com/support/answers/index.htm and search with keywords 'ISim' and
+ 'FATAL ERROR'. For technical support on this issue, please open a WebCase with this
+ project attached at http://www.xilinx.com/support.
+ INFO: Simulator is stopped.
+
+コンパイル時にそれらしい Warning は出ていません。
+
+さて、何が原因か・・・
+
+エラーメッセージを頼りに、ISim の Instance and Process Name にて
+oscillo_data_buffer.v の Cont_208_11 をダブルクリックしたところ、
+reg として宣言した信号線に assign している行に当たりました。
+
+原因は単純なコードミスでしたが、
+コンパイル時にエラーが出ずに、実行時にエラーが出ることに驚きました。
+
+* コメント [#t4bbc9a0]
+
+#article_kcaptcha
+**uHHeYFiIYrrwppyqfq [#g5bb9008]
+>[viyofb] (2013-01-05 (土) 17:42:46)~
+~
+XZKHNd <a href="http://mafgscfreqyw.com/">mafgscfreqyw</a>~
+
+//
+
+#comment_kcaptcha
+
+**ISE14.4リリース [#p11efd5d]
+>[アプロ] (2012-12-28 (金) 11:25:48)~
+~
+こっそりとリリースされていましたw~
+
+//
+- ほんとだ! こっそりダウンロード行ってきます(^^ -- [武内(管理人)] &new{2012-12-28 (金) 11:41:28};
+
+#comment_kcaptcha
+