履歴: 電気回路/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 11:14:16) → 比較: 電気回路/HDL/Xilinx ISE Webpack 気づいた点 (2012/11/14 10:58:40)
@@ -9,7 +9,6 @@
* 古い記事 [#m66815a5]
-
[[電気回路/HDL/Xilinx ISE 12.1で気づいた点]]
[[電気回路/HDL/Xilinx ISE 12.2で気づいた点]]
@@ -332,6 +331,107 @@
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時間以上かかってしまいました(怒
+
* コメント [#t4bbc9a0]
#article_kcaptcha