文档章节

动手---sbt(2)

whoisliang
 whoisliang
发布于 06/19 16:15
字数 2507
阅读 21
收藏 0

参考 https://blog.csdn.net/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目录下)

使用 sbt 的 np 插件自动创建目录结构和 build.sbt 文件 https://yanbin.blog/sbt-np-create-folders-build-sbt/

© 著作权归作者所有

共有 人打赏支持
whoisliang
粉丝 3
博文 261
码字总数 89724
作品 0
武汉
Ubuntu上手动安装sbt

Ubuntu上手动安装sbt sbt(Simple Build Tool,简单构建工具),对Scala或Java语言进行编译,类似于Maven或Ant,它需要jdk1.6或更高的版本支持。sbt可以在windows或Linux环境下安装使用 1、下...

ericSM
2016/06/22
54
0
国内:如何解决Maven和SBT下载Jar包太慢

国内:如何解决Maven和SBT下载Jar包太慢 前言 最近由于忙着写毕业论文,博客撰写暂时停止一段时间。 经过了九个月的实习,尝试了不同的机会,在公司从来没有碰到网络问题,国外网站访问毫无压...

clebeg
2015/12/17
5.5K
0
Windows7 64位 Spark 开发IDE 配置

一、配置所需资源 IDE 环境配置所需材料如下: java jdk1.8 idea, sbt, 下载最新 maven, 二进制包即可 二、配置步骤 1 . 首先在本机安装java环境 2 . 安装idea 3 . 安装sbt, 检查默认是否...

kakasyw
2017/04/13
0
0
细说 scala 开发环境

细说 scala 开发环境 前言 每个人有每个人的悲剧,我的悲剧就是选择 ScalaIDE + Maven 作为 Scala 开发环境,导致折腾到吐血。回想一下选择IDE的理由: 方便编写代码(这是最基本的,各种快捷...

clebeg
2015/10/16
117
0
Sbt 使用技巧

要做scala开发,sbt是绕不过去的一个坎,里面有许多坑,接下来看我怎么一一解决。 sbt 之 网络问题 Q: 首次执行sbt,程序停着不动,是个什么情况? A: 一般来说,这就是网络不是很通畅所导致...

pearma
2017/04/10
18
0

没有更多内容

加载失败,请刷新页面

加载更多

如何通过 J2Cache 实现分布式 session 存储

做 Java Web 开发的人多数都会需要使用到 session (会话),我们使用 session 来保存一些需要在两个不同的请求之间共享数据。一般 Java 的 Web 容器像 Tomcat、Resin、Jetty 等等,它们会在...

红薯
今天
3
0
C++ std::thread

C++11提供了std::thread类来表示一个多线程对象。 1,首先介绍一下std::this_thread命名空间: (1)std::this_thread::get_id():返回当前线程id (2)std::this_thread::yield():用户接口...

yepanl
今天
3
0
Nignx缓存文件与动态文件自动均衡的配置

下面这段nginx的配置脚本的作用是,自动判断是否存在缓存文件,如果有优先输出缓存文件,不经过php,如果没有,则回到php去处理,同时生成缓存文件。 PHP框架是ThinkPHP,最后一个rewrite有关...

swingcoder
今天
2
0
20180920 usermod命令与用户密码管理

命令 usermod usermod 命令的选项和 useradd 差不多。 一个用户可以属于多个组,但是gid只有一个;除了gid,其他的组(groups)叫做扩展组。 usermod -u 1010 username # 更改用户idusermod ...

野雪球
今天
3
0
Java网络编程基础

1. 简单了解网络通信协议TCP/IP网络模型相关名词 应用层(HTTP,FTP,DNS等) 传输层(TCP,UDP) 网络层(IP,ICMP等) 链路层(驱动程序,接口等) 链路层:用于定义物理传输通道,通常是对...

江左煤郎
今天
3
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部