您当前的位置:偶偶电脑知识网 -> 电脑初学 -> 电脑内容-> 微软XP系统下如何配置iverilog+GTKWave

微软XP系统下如何配置iverilog+GTKWave

微软XP系统下如何配置iverilog+GTKWave


    Icarus Verilog的简介

    Icarus Verilog is a Verilog simulation and synthesis tool. It operates as a compiler, compiling source code written in Verilog (IEEE-1364) into some target format. For batch simulation, the compiler can generate an intermediate form called vvp assembly. This intermediate form is executed by the ``vvp'' command. For synthesis, the compiler generates netlists in the desired format.

    GTKWave的简介

    GTKWave is a fully featured GTK+ v1.2 based wave viewer for Unix and Win32 which reads LXT files as well as standard Verilog VCD/EVCD files and allows their viewing. You can grab version 1.3.11 here .

    If you have difficulty in downloading the GTKWave tarball properly, get it from here and rename the file so it doesn't have the ".bin" extension.

    The Win32 version is now available (and has been for quite some time) on The Win32 GTKWave Homepage , thanks to Udi Finkelstein . A ready-to-run all libraries included Pentium-Pro optimized version of the binary may be found locally here. Ports to other platforms which GTK supports should be trivial.

    gtkwave是一个基于GTK+波形查看器,可以支持LXT, LXT2, VZT, GHW文件以及标准Verilog VCD/EVC文件。

    于是和我就在windows下开始使用这连个软件了。

    打开终端,就是开始->运行->cmd

    G:\Program>iverilog

    iverilog: no source files.

    Usage: iverilog [-ESvV] [-B base] [-c cmdfile|-f cmdfile]

    [-g1995|-g2001|-g2005] [-g<feature>]

    [-D macro[=defn]] [-I includedir] [-M depfile] [-m module]

    [-N file] [-o filename] [-p flag=value]

    [-s topmodule] [-t target] [-T min|typ|max]

    [-W class] [-y dir] [-Y suf] source_file(s)

    See the man page for details.

    安装完之后就如上面的所显示的,输入gtkwave,就会自动启动gtkwave这个软件的。

    接下来就要来小试牛刀了!

    verilog版helloword

    module main;

    initial

    begin

    $display("Hello, World");

    $finish ;

    end

    endmodule

    用这个command-line:

    >iverilog -o hello hello.v

    就可以生成hello的一个文件,类似gcc哦!

    之后

    >vvp hello

    Hello, World

    这样就可以打印出Hello, World!哈哈,有点感觉!