0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

中古ノート、買ってみた。 その10

Last updated at Posted at 2025-09-09

概要

中古ノート買ってみた。
iverilog、入れてみた。

参考にしたページ

インストール手順

iverilog-v12-20220611-x64_setup.exeをダウンロード

コンパイル手順

サンプルコード


module test;
        reg a,
            b;
        wire c;
        integer i,
                j;
        xor(c, a, b);
        initial
        begin
                $display("a b c");
                $monitor("%b %b %b", a, b, c);
                for(i = 0; i < 2; i = i + 1)
                begin
                        for(j = 0; j < 2; j = j + 1)
                        begin
                                a = i;
                                b = j;
                                #10;
                        end
                end
                $finish;
        end
endmodule

手順

>set PATH=C:\iverilog\bin;%PATH%

>iverilog xor.v

>vvp a.out
a b c
0 0 0
0 1 1
1 0 1
1 1 0
xor.v:31: $finish called at 40 (1s)


以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?