Top > Qucs > spice4qucs

広告

Qucsで他のSPICEシミュレータが使える

spice4qucsQucsをオープンソースのSPICEであるngspiceや大規模集積回路向けの回路シミュレータXyceのフロントエンドとして使えるように改造したもの。

シミュレーション時にどのシミュレータを使うか選べるようになっている。

詳しい使い方はアナジックスさん説明(spice4qucs helpの訳)にあります。

バージョン0.0.19S-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
    • ADMSをインストールした場合はconfigureにそのパスを付け足す
      cd qucs-core
      ./bootstrap.sh
      ./configure --enable-maintainer-mode --with-mkadms=[path/to/admsXml]
      make
      sudo make install

使ってみる

  • まず「Simulation」 => 「Simulation with spice」 => 「Settings」でそれぞれのシミュレータのパスを設定する。
  • Simulation => Simulation with spiceでngspiceXyceを選ぶ
  • 「Simulate」でシミュレーション開始

現時点での感想

ngspiceはネイティブの「qucsator」より断然速い気がするが、回路によっては結果が違ったり、エラーで止まったりする。
Qucs→netlist変換がうまく行っていないみたい。

Xyceでのシミュレーションはまだうまく行っていない。


広告

リロード   差分   ホーム 一覧 検索 最終更新 バックアップ リンク元   ヘルプ   最終更新のRSS
Last-modified: Mon, 17 Apr 2017 16:10:50 JST (3014d)