参考 https://blog.youkuaiyun.com/leishangwen/article/details/46225587 建立一个chisel_max目录,文件内容如后面所述,现在开始执行命令:
joe@joe-Aspire-Z3730:/media/sdb4/download/scala$ cd chiseltest
joe@joe-Aspire-Z3730:/media/sdb4/download/scala/chiseltest$ ls
chisel_max
joe@joe-Aspire-Z3730:/media/sdb4/download/scala/chiseltest$ cd chisel_max/
joe@joe-Aspire-Z3730:/media/sdb4/download/scala/chiseltest/chisel_max$ ls
build.sbt max2.scala project target test_run_dir
joe@joe-Aspire-Z3730:/media/sdb4/download/scala/chiseltest/chisel_max$ sbt
[info] Loading project definition from /media/46bb100d-2505-4025-8425-34ecf3129209/download/scala/chiseltest/chisel_max/project
[info] Loading settings from build.sbt ...
[info] Set current project to chisel-tutorial (in build file:/media/46bb100d-2505-4025-8425-34ecf3129209/download/scala/chiseltest/chisel_max/)
[info] sbt server started at local:///home/joe/.sbt/1.0/server/6955b5c3b666021056e1/sock
sbt:chisel-tutorial> run
[info] Running Hellp
Error: Unknown option --backend
Error: Unknown option --compile
Try --help for more information.
[success] Total time: 3 s, completed Jun 19, 2018 4:14:18 PM
通过上面的命令可以看到执行成功了,但我没有在目录中找到Max2.v文件(verilog文件),然后我再参考 https://github.com/freechipsproject/chisel3 中所说,安装verilator模块:
joe@joe-Aspire-Z3730:/media/sdb4/download/scala$ git clone http://git.veripool.org/git/verilator
Cloning into 'verilator'...
再执行命令
joe@joe-Aspire-Z3730:/media/sdb4/download/scala$ cd verilator
joe@joe-Aspire-Z3730:/media/sdb4/download/scala/verilator$ ls
Artistic COPYING.LESSER install-sh nodist verilator.pc.in
bin doxygen.config internals.pod README.pod
Changes doxygen-mainpage Makefile.in src
configure.ac examples MANIFEST.SKIP test_regress
COPYING include mkinstalldirs TODO
joe@joe-Aspire-Z3730:/media/sdb4/download/scala/verilator$ git pull
Already up-to-date.
joe@joe-Aspire-Z3730:/media/sdb4/download/scala/verilator$ git checkout verilator_3_904
Note: checking out 'verilator_3_904'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at 0253017... Version bump
说明现在的分支与当时的情况不一样了,需要我重新再checkout.
joe@joe-Aspire-Z3730:/media/sdb4/download/scala/verilator$ git checkout -b verilator_3_904
Switched to a new branch 'verilator_3_904'
joe@joe-Aspire-Z3730:/media/sdb4/download/scala/verilator$ git checkout
joe@joe-Aspire-Z3730:/media/sdb4/download/scala/verilator$ unset VERILATOR_ROOT
joe@joe-Aspire-Z3730:/media/sdb4/download/scala/verilator$ autoconf
joe@joe-Aspire-Z3730:/media/sdb4/download/scala/verilator$ ./configure
configuring for Verilator 3.904 2017-05-30
checking whether to use hardcoded paths... yes
checking whether to show and stop on compilation warnings... no
checking whether to run long tests... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking that C++ compiler can compile simple program... yes
checking for perl... /usr/bin/perl
checking for flex... /usr/bin/flex
checking for bison... /usr/bin/bison
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for size_t... yes
checking for size_t... (cached) yes
checking for inline... inline
checking whether g++ accepts -Wno-unused-parameter... yes
checking whether g++ accepts -Wno-char-subscripts... yes
checking whether g++ accepts -Wno-undefined-bool-conversion... no
checking whether g++ accepts -Qunused-arguments... no
checking whether g++ accepts -fno-delete-null-pointer-checks... yes
checking whether g++ accepts -Wno-unused... yes
checking whether g++ accepts -Wno-parentheses-equality... no
checking whether g++ accepts -Wno-null-conversion... no
checking whether g++ accepts -Wno-char-subscripts... yes
checking whether g++ accepts -Wno-parentheses-equality... no
checking whether g++ accepts -Wno-sign-compare... yes
checking whether g++ accepts -Wno-uninitialized... yes
checking whether g++ accepts -Wno-unused-but-set-variable... yes
checking whether g++ accepts -Wno-unused-parameter... yes
checking whether g++ accepts -Wno-unused-variable... yes
checking whether g++ accepts -fbracket-depth=4096... no
checking whether g++ accepts -Qunused-arguments... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/Makefile_obj
config.status: creating include/verilated.mk
config.status: creating include/verilated_config.h
config.status: creating verilator.pc
config.status: creating src/config_build.h
Now type 'make' (or sometimes 'gmake') to build Verilator.
joe@joe-Aspire-Z3730:/media/sdb4/download/scala/verilator$ make
------------------------------------------------------------
making verilator in src
make[1]: Entering directory `/media/46bb100d-2505-4025-8425-34ecf3129209/download/scala/verilator/src'
mkdir obj_dbg
/usr/bin/perl ./config_rev.pl . >config_rev.h
cd obj_dbg && make -j 1 TGT=../../verilator_bin_dbg VL_DEBUG=1 -f ../Makefile_obj serial
make[2]: Entering directory `/media/46bb100d-2505-4025-8425-34ecf3129209/download/scala/verilator/src/obj_dbg'
/usr/bin/perl ../astgen -I.. --classes
If you get errors from verilog.y below, try upgrading bison to version 1.875 or newer.
/usr/bin/perl ../bisonpre --yacc /usr/bin/bison -d -v -o V3ParseBison.c ../verilog.y
edit ../verilog.y V3ParseBison_pretmp.y
/usr/bin/bison -d -v --report=itemset --report=lookahead -b V3ParseBison_pretmp -o V3ParseBison_pretmp.c V3ParseBison_pretmp.y
edit V3ParseBison_pretmp.output V3ParseBison.output
edit V3ParseBison_pretmp.c V3ParseBison.c
edit V3ParseBison_pretmp.h V3ParseBison.h
make[2]: Leaving directory `/media/46bb100d-2505-4025-8425-34ecf3129209/download/scala/verilator/src/obj_dbg'
cd obj_dbg && make TGT=../../verilator_bin_dbg VL_DEBUG=1 -f ../Makefile_obj
make[2]: Entering directory `/media/46bb100d-2505-4025-8425-34ecf3129209/download/scala/verilator/src/obj_dbg'
Compile flags: g++ -I/usr/local/include -MMD -I. -I.. -I.. -I../../include -DYYDEBUG -ggdb -DVL_DEBUG -MP -Wno-unused-parameter -Wno-char-subscripts -fno-delete-null-pointer-checks -DDEFENV_SYSTEMC="" -DDEFENV_SYSTEMC_ARCH="" -DDEFENV_SYSTEMC_INCLUDE="" -DDEFENV_SYSTEMC_LIBDIR="" -DDEFENV_SYSTEMPERL="" -DDEFENV_SYSTEMPERL_INCLUDE="" -DDEFENV_VERILATOR_ROOT="/usr/local/share/verilator"
g++ -I/usr/local/include -MMD -I. -I.. -I.. -I../../include -DYYDEBUG -ggdb -DVL_DEBUG -MP -Wno-unused-parameter -Wno-char-subscripts -fno-delete-null-pointer-checks -DDEFENV_SYSTEMC=\"\" -DDEFENV_SYSTEMC_ARCH=\"\" -DDEFENV_SYSTEMC_INCLUDE=\"\" -DDEFENV_SYSTEMC_LIBDIR=\"\" -DDEFENV_SYSTEMPERL=\"\" -DDEFENV_SYSTEMPERL_INCLUDE=\"\" -DDEFENV_VERILATOR_ROOT=\"/usr/local/share/verilator\" -c ../Verilator.cpp
g++ -I/usr/local/include -MMD -I. -I.. -I.. -I../../include -DYYDEBUG -ggdb -DVL_DEBUG -MP -Wno-unused-parameter -Wno-char-subscripts -fno-delete-null-pointer-checks -DDEFENV_SYSTEMC=\"\" -DDEFENV_SYSTEMC_ARCH=\"\" -DDEFENV_SYSTEMC_INCLUDE=\"\" -DDEFENV_SYSTEMC_LIBDIR=\"\" -DDEFENV_SYSTEMPERL=\"\" -DDEFENV_SYSTEMPERL_INCLUDE=\"\" -DDEFENV_VERILATOR_ROOT=\"/usr/local/share/verilator\" -c ../V3Active.cpp
g++ -I/usr/local/include -MMD -I. -I.. -I.. -I../../include -DYYDEBUG -ggdb -DVL_DEBUG -MP -Wno-unused-parameter -Wno-char-subscripts -fno-delete-null-pointer-checks -DDEFENV_SYSTEMC=\"\" -DDEFENV_SYSTEMC_ARCH=\"\" -DDEFENV_SYSTEMC_INCLUDE=\"\" -DDEFENV_SYSTEMC_LIBDIR=\"\" -DDEFENV_SYSTEMPERL=\"\" -DDEFENV_SYSTEMPERL_INCLUDE=\"\" -DDEFENV_VERILATOR_ROOT=\"/usr/local/share/verilator\" -c ../V3ActiveTop.cpp
g++ -I/usr/local/include -MMD -I. -I.. -I.. -I../../include -DYYDEBUG -ggdb -DVL_DEBUG -MP -Wno-unused-parameter -Wno-char-subscripts -fno-delete-null-pointer-checks -DDEFENV_SYSTEMC=\"\" -DDEFENV_SYSTEMC_ARCH=\"\" -DDEFENV_SYSTEMC_INCLUDE=\"\" -DDEFENV_SYSTEMC_LIBDIR=\"\" -DDEFENV_SYSTEMPERL=\"\" -DDEFENV_SYSTEMPERL_INCLUDE=\"\" -DDEFENV_VERILATOR_ROOT=\"/usr/local/share/verilator\" -c ../V3Assert.cpp
g++ -I/usr/local/include -MMD -I. -I.. -I.. -I../../include -DYYDEBUG -ggdb -DVL_DEBUG -MP -Wno-unused-parameter -Wno-char-subscripts -fno-delete-null-pointer-checks -DDEFENV_SYSTEMC=\"\" -DDEFENV_SYSTEMC_ARCH=\"\" -DDEFENV_SYSTEMC_INCLUDE=\"\" -DDEFENV_SYSTEMC_LIBDIR=\"\" -DDEFENV_SYSTEMPERL=\"\" -DDEFENV_SYSTEMPERL_INCLUDE=\"\" -DDEFENV_VERILATOR_ROOT=\"/usr/local/share/verilator\" -c ../V3AssertPre.cpp
g++ -I/usr/local/include -MMD -I. -I.. -I.. -I../../include -DYYDEBUG -ggdb -DVL_DEBUG -MP -Wno-unused-parameter -Wno-char-subscripts -fno-delete-null-pointer-checks -DDEFENV_SYSTEMC=\"\" -DDEFENV_SYSTEMC_ARCH=\"\" -DDEFENV_SYSTEMC_INCLUDE=\"\" -DDEFENV_SYSTEMC_LIBDIR=\"\" -DDEFENV_SYSTEMPERL=\"\" -DDEFENV_SYSTEMPERL_INCLUDE=\"\" -DDEFENV_VERILATOR_ROOT=\"/usr/local/share/verilator\" -c ../V3Ast.cpp
g++ -I/usr/local/include -MMD -I. -I.. -I.. -I../../include -DYYDEBUG -ggdb -DVL_DEBUG -MP -Wno-unused-parameter -Wno-char-subscripts -fno-delete-null-pointer-checks -DDEFENV_SYSTEMC=\"\" -DDEFENV_SYSTEMC_ARCH=\"\" -DDEFENV_SYSTEMC_INCLUDE=\"\" -DDEFENV_SYSTEMC_LIBDIR=\"\" -DDEFENV_SYSTEMPERL=\"\" -DDEFENV_SYSTEMPERL_INCLUDE=\"\" -DDEFENV_VERILATOR_ROOT=\"/usr/local/share/verilator\" -c ../V3AstNodes.cpp
g++ -I/usr/local/include -MMD -I. -I.. -I.. -I../../include -DYYDEBUG -ggdb -DVL_DEBUG -MP -Wno-unused-parameter -Wno-char-subscripts -fno-delete-null-pointer-checks -DDEFENV_SYSTEMC=\"\" -DDEFENV_SYSTEMC_ARCH=\"\" -DDEFENV_SYSTEMC_INCLUDE=\"\" -DDEFENV_SYSTEMC_LIBDIR=\"\" -DDEFENV_SYSTEMPERL=\"\" -DDEFENV_SYSTEMPERL_INCLUDE=\"\" -DDEFENV_VERILATOR_ROOT=\"/usr/local/share/verilator\" -c ../V3Begin.cpp
g++ -I/usr/local/include -MMD -I. -I.. -I.. -I../../include -DYYDEBUG -ggdb -DVL_DEBUG -MP -Wno-unused-parameter -Wno-char-subscripts -fno-delete-null-pointer-checks -DDEFENV_SYSTEMC=\"\" -DDEFENV_SYSTEMC_ARCH=\"\" -DDEFENV_SYSTEMC_INCLUDE=\"\" -DDEFENV_SYSTEMC_LIBDIR=\"\" -DDEFENV_SYSTEMPERL=\"\" -DDEFENV_SYSTEMPERL_INCLUDE=\"\" -DDEFENV_VERILATOR_ROOT=\"/usr/local/share/verilator\" -c ../V3Branch.cpp
g++ -I/usr/local/include -MMD -I. -I.. -I.. -I../../include -DYYDEBUG -ggdb -DVL_DEBUG -MP -Wno-unused-parameter -Wno-char-subscripts -fno-delete-null-pointer-checks -DDEFENV_SYSTEMC=\"\" -DDEFENV_SYSTEMC_ARCH=\"\" -DDEFENV_SYSTEMC_INCLUDE=\"\" -DDEFENV_SYSTEMC_LIBDIR=\"\" -DDEFENV_SYSTEMPERL=\"\" -DDEFENV_SYSTEMPERL_INCLUDE=\"\" -DDEFENV_VERILATOR_ROOT=\"/usr/local/share/verilator\" -c ../V3Broken.cpp
g++ -I/usr/local/include -MMD -I. -I.. -I.. -I../../include -DYYDEBUG -ggdb -DVL_DEBUG -MP -Wno-unused-parameter -Wno-char-subscripts -fno-delete-null-pointer-checks -DDEFENV_SYSTEMC=\"\" -DDEFENV_SYSTEMC_ARCH=\"\" -DDEFENV_SYSTEMC_INCLUDE=\"\" -DDEFENV_SYSTEMC_LIBDIR=\"\" -DDEFENV_SYSTEMPERL=\"\" -DDEFENV_SYSTEMPERL_INCLUDE=\"\" -DDEFENV_VERILATOR_ROOT=\"/usr/local/share/verilator\" -c ../V3CCtors.cpp
g++ -I/usr/local/include -MMD -I. -I.. -I.. -I../../include -DYYDEBUG -ggdb -DVL_DEBUG -MP -Wno-unused-parameter -Wno-char-subscripts -fno-delete-null-pointer-checks -DDEFENV_SYSTEMC=\"\" -DDEFENV_SYSTEMC_ARCH=\"\" -DDEFENV_SYSTEMC_INCLUDE=\"\" -DDEFENV_SYSTEMC_LIBDIR=\"\" -DDEFENV_SYSTEMPERL=\"\" -DDEFENV_SYSTEMPERL_INCLUDE=\"\" -DDEFENV_VERILATOR_ROOT=\"/usr/local/share/verilator\" -c ../V3Case.cpp
。。。。。。
make[2]: Leaving directory `/media/46bb100d-2505-4025-8425-34ecf3129209/download/scala/verilator/src/obj_opt'
make[1]: Leaving directory `/media/46bb100d-2505-4025-8425-34ecf3129209/download/scala/verilator/src'
Build complete!
Type 'make test' to test.
joe@joe-Aspire-Z3730:/media/sdb4/download/scala/verilator$ make test
。。。。。。。。
g++ -g sim_main.o verilated.o verilated_vcd_c.o Vtop__ALL.a -o simx -lm -lstdc++ 2>&1 | c++filt
make[2]: Leaving directory `/media/46bb100d-2505-4025-8425-34ecf3129209/download/scala/verilator/test_c/obj_dir'
obj_dir/simx
Enabling waves...
Hello World!
[0] 0 1 0 3 3f_ffffffff_ffffffff
[1] 0 1 0 3 3f_ffffffff_ffffffff
[2] 0 0 0 0 0_00000000_00000000
[3] 1 0 0 0 0_00000000_00000000
[4] 1 0 0 0 0_00000000_00000000
[5] 1 0 0 0 0_00000000_00000000
[6] 1 0 0 0 0_00000000_00000000
[7] 1 0 0 0 0_00000000_00000000
[8] 0 0 0 0 0_00000000_00000000
[9] 0 0 0 0 0_00000000_00000000
[10] 0 0 0 0 0_00000000_00000000
[11] 0 1 0 3 3f_ffffffff_ffffffff
[12] 0 1 0 3 3f_ffffffff_ffffffff
[13] 1 1 0 3 3f_ffffffff_ffffffff
[14] 1 1 0 3 3f_ffffffff_ffffffff
[15] 1 1 0 3 3f_ffffffff_ffffffff
[16] 1 1 0 3 3f_ffffffff_ffffffff
[17] 1 1 0 3 3f_ffffffff_ffffffff
[18] 0 1 0 3 3f_ffffffff_ffffffff
[19] 0 1 0 3 3f_ffffffff_ffffffff
[20] 0 1 0 3 3f_ffffffff_ffffffff
[21] 0 1 1 3 3f_ffffffff_ffffffff
All Tests passed
make[1]: Leaving directory `/media/46bb100d-2505-4025-8425-34ecf3129209/download/scala/verilator/test_c'
make[1]: Entering directory `/media/46bb100d-2505-4025-8425-34ecf3129209/download/scala/verilator/test_sc'
%Skip: SYSTEMC_INCLUDE not in environment
make[1]: Leaving directory `/media/46bb100d-2505-4025-8425-34ecf3129209/download/scala/verilator/test_sc'
Tests passed!
Type 'make install' to install documentation.
joe@joe-Aspire-Z3730:/media/sdb4/download/scala/verilator$ sudo make install
[sudo] password for joe:
------------------------------------------------------------
making verilator in src
make[1]: Entering directory `/media/46bb100d-2505-4025-8425-34ecf3129209/download/scala/verilator/src'
cd obj_dbg && make -j 1 TGT=../../verilator_bin_dbg VL_DEBUG=1 -f ../Makefile_obj serial
make[2]: Entering directory `/media/46bb100d-2505-4025-8425-34ecf3129209/download/scala/verilator/src/obj_dbg'
make[2]: Nothing to be done for `serial'.
make[2]: Leaving directory `/media/46bb100d-2505-4025-8425-34ecf3129209/download/scala/verilator/src/obj_dbg'
cd obj_dbg && make TGT=../../verilator_bin_dbg VL_DEBUG=1 -f ../Makefile_obj
make[2]: Entering directory `/media/46bb100d-2505-4025-8425-34ecf3129209/download/scala/verilator/src/obj_dbg'
Compile flags: g++ -I/usr/local/include -MMD -I. -I.. -I.. -I../../include -DYYDEBUG -ggdb -DVL_DEBUG -MP -Wno-unused-parameter -Wno-char-subscripts -fno-delete-null-pointer-checks -DDEFENV_SYSTEMC="" -DDEFENV_SYSTEMC_ARCH="" -DDEFENV_SYSTEMC_INCLUDE="" -DDEFENV_SYSTEMC_LIBDIR="" -DDEFENV_SYSTEMPERL="" -DDEFENV_SYSTEMPERL_INCLUDE="" -DDEFENV_VERILATOR_ROOT="/usr/local/share/verilator"
make[2]: Leaving directory `/media/46bb100d-2505-4025-8425-34ecf3129209/download/scala/verilator/src/obj_dbg'
cd obj_dbg && make TGT=../../verilator_coverage_bin_dbg VL_DEBUG=1 VL_VLCOV=1 -f ../Makefile_obj serial_vlcov
make[2]: Entering directory `/media/46bb100d-2505-4025-8425-34ecf3129209/download/scala/verilator/src/obj_dbg'
make[2]: Nothing to be done for `serial_vlcov'.
make[2]: Leaving directory `/media/46bb100d-2505-4025-8425-34ecf3129209/download/scala/verilator/src/obj_dbg'
cd obj_dbg && make TGT=../../verilator_coverage_bin_dbg VL_DEBUG=1 VL_VLCOV=1 -f ../Makefile_obj
make[2]: Entering directory `/media/46bb100d-2505-4025-8425-34ecf3129209/download/scala/verilator/src/obj_dbg'
Compile flags: g++ -I/usr/local/include -MMD -I. -I.. -I.. -I../../include -DYYDEBUG -ggdb -DVL_DEBUG -MP -Wno-unused-parameter -Wno-char-subscripts -fno-delete-null-pointer-checks -DDEFENV_SYSTEMC="" -DDEFENV_SYSTEMC_ARCH="" -DDEFENV_SYSTEMC_INCLUDE="" -DDEFENV_SYSTEMC_LIBDIR="" -DDEFENV_SYSTEMPERL="" -DDEFENV_SYSTEMPERL_INCLUDE="" -DDEFENV_VERILATOR_ROOT="/usr/local/share/verilator"
make[2]: Leaving directory `/media/46bb100d-2505-4025-8425-34ecf3129209/download/scala/verilator/src/obj_dbg'
cd obj_opt && make -j 1 TGT=../../verilator_bin -f ../Makefile_obj serial
make[2]: Entering directory `/media/46bb100d-2505-4025-8425-34ecf3129209/download/scala/verilator/src/obj_opt'
make[2]: Nothing to be done for `serial'.
make[2]: Leaving directory `/media/46bb100d-2505-4025-8425-34ecf3129209/download/scala/verilator/src/obj_opt'
cd obj_opt && make TGT=../../verilator_bin -f ../Makefile_obj
make[2]: Entering directory `/media/46bb100d-2505-4025-8425-34ecf3129209/download/scala/verilator/src/obj_opt'
Compile flags: g++ -I/usr/local/include -MMD -I. -I.. -I.. -I../../include -DYYDEBUG -O -MP -Wno-unused-parameter -Wno-char-subscripts -fno-delete-null-pointer-checks -DDEFENV_SYSTEMC="" -DDEFENV_SYSTEMC_ARCH="" -DDEFENV_SYSTEMC_INCLUDE="" -DDEFENV_SYSTEMC_LIBDIR="" -DDEFENV_SYSTEMPERL="" -DDEFENV_SYSTEMPERL_INCLUDE="" -DDEFENV_VERILATOR_ROOT="/usr/local/share/verilator"
make[2]: Leaving directory `/media/46bb100d-2505-4025-8425-34ecf3129209/download/scala/verilator/src/obj_opt'
make[1]: Leaving directory `/media/46bb100d-2505-4025-8425-34ecf3129209/download/scala/verilator/src'
/bin/sh ./mkinstalldirs /usr/local/bin
( cd ./bin ; /usr/bin/install -c verilator /usr/local/bin/verilator )
( cd ./bin ; /usr/bin/install -c verilator_coverage /usr/local/bin/verilator_coverage )
( cd ./bin ; /usr/bin/install -c verilator_profcfunc /usr/local/bin/verilator_profcfunc )
( /usr/bin/install -c verilator_bin /usr/local/bin/verilator_bin )
( /usr/bin/install -c verilator_bin_dbg /usr/local/bin/verilator_bin_dbg )
( /usr/bin/install -c verilator_coverage_bin_dbg /usr/local/bin/verilator_coverage_bin_dbg )
/bin/sh ./mkinstalldirs /usr/local/share/verilator/bin
( cd ./bin ; /usr/bin/install -c verilator_includer /usr/local/share/verilator/bin/verilator_includer )
pod2man bin/verilator verilator.1
pod2man bin/verilator_coverage verilator_coverage.1
pod2man bin/verilator_profcfunc verilator_profcfunc.1
/bin/sh ./mkinstalldirs /usr/local/share/man/man1
cd . \
; for p in verilator.1 verilator_coverage.1 verilator_profcfunc.1 ; do \
/usr/bin/install -c -m 644 $p /usr/local/share/man/man1/$p; \
done
/bin/sh ./mkinstalldirs /usr/local/share/verilator/include/vltstd
for p in include/verilated_config.h include/verilated.mk ; do \
/usr/bin/install -c -m 644 $p /usr/local/share/verilator/$p; \
done
cd . \
; for p in include/*.[chv]* include/vltstd/*.[chv]* ; do \
/usr/bin/install -c -m 644 $p /usr/local/share/verilator/$p; \
done
/bin/sh ./mkinstalldirs /usr/local/share/verilator/examples/test_c
/bin/sh ./mkinstalldirs /usr/local/share/verilator/examples/test_sc
/bin/sh ./mkinstalldirs /usr/local/share/verilator/examples/test_v
cd . \
; for p in test_v/*.[chv]* test_c/*.[chv]* test_c/Makefile test_c/Makefile_obj test_sc/*.[chv]* test_sc/Makefile test_sc/Makefile_obj ; do \
/usr/bin/install -c -m 644 $p /usr/local/share/verilator/examples/$p; \
done
/bin/sh ./mkinstalldirs /usr/local/share/pkgconfig
/usr/bin/install -c -m 644 verilator.pc /usr/local/share/pkgconfig
Installed!
For documentation see 'man verilator' or 'verilator --help'
For forums and to report bugs see http://www.veripool.org/verilator
虽然我安装verilator成功了,回到Max2目录中重新执行sbt和run命令之后还是没有看到Max2.v文件。不知为什么会这样????
另外,参考 使用SBT构建Scala应用
https://my.oschina.net/yangbajing/blog/107745
https://github.com/CSUG/real_world_scala/blob/master/02_sbt.markdown 有sbt的祥细介绍,包括如何配置sbt的build.sbt及scala语法形式的build.sbt(要放在项目根目录下即 project目录下)