広告
Qucsで他のSPICEシミュレータが使える
spice4qucsはQucsをオープンソースのSPICEであるngspiceや大規模集積回路向けの回路シミュレータXyceのフロントエンドとして使えるように改造したもの。
シミュレーション時にどのシミュレータを使うか選べるようになっている。
詳しい使い方はアナジックスさんの説明(spice4qucs helpの訳)にあります。
バージョン0.0.19-RC6から正式に採用されたらしく、新しいQucsを使えばこのページの内容をする必要はなさそう
コンパイル
- spice4qucsからソースをダウンロードする。こっちの方が良いかも
- 必要なライブラリなどをインストールする
sudo apt-get install build-essential
sudo apt-get install libqt4-dev libqt4-qt3support
sudo apt-get install automake libtool gperf flex bison
- Verilog-Aも使えるようにADMSもインストールするため必要なパッケージをインストール
sudo apt-get install libxml2 libxml2-dev
sudo apt-get install zlib1g zlib1g-dev
sudo apt-get install libgd2-xpm-dev
Perlライブラリもインストール
(echo y;echo o conf prerequisites_policy follow;echo o conf commit)| sudo cpan
sudo cpan -i XML::LibXML
sudo cpan -f GD
- ADMSのコンパイル
sh bootstrap.sh
./configure --enable-maintainer-mode
make install
- サブディレクトリ(qucs)でまずGUIをコンパイル。
cd qucs
./autogen.sh
./configure --enable-maintainer-mode
make
sudo make install
- サブディレクトリ(qucs-core)でシミュレータをコンパイル。
cd qucs-core
./bootstrap.sh
./configure --enable-maintainer-mode
make
sudo make install
使ってみる
- まず「Simulation」 => 「Simulation with spice」 => 「Settings」でそれぞれのシミュレータのパスを設定する。
- Simulation => Simulation with spiceでngspiceかXyceを選ぶ
- 「Simulate」でシミュレーション開始
現時点での感想
ngspiceはネイティブの「qucsator」より断然速い気がするが、回路によっては結果が違ったり、エラーで止まったりする。
Qucs→netlist変換がうまく行っていないみたい。
Xyceでのシミュレーションはまだうまく行っていない。
広告