文档章节

动手---sbt(2)

whoisliang
 whoisliang
发布于 06/19 16:15
字数 2507
阅读 8
收藏 0
点赞 0
评论 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
粉丝 2
博文 249
码字总数 89327
作品 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
细说 scala 开发环境

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

clebeg
2015/10/16
117
0
Windows7 64位 Spark 开发IDE 配置

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

kakasyw
2017/04/13
0
0
国内:如何解决Maven和SBT下载Jar包太慢

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

clebeg
2015/12/17
5.5K
0
Sbt 使用技巧

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

pearma
2017/04/10
18
0
sbt 地址修改备注

我顶你个肺哦,sbt就像*(屏蔽字)一样,半天拉不出来。 用了这么多 maven,gradle,nuget , pip ,没有一个像这么难用的 注意改仓库地址 1. .sbt下的repo.properties localoschina nexus:...

从前
2016/02/29
50
0
Windows平台下sbt的安装设置

首先到http://www.scala-sbt.org/release/docs/Getting-Started/Setup.html下载windows的sbt包,zip,tar.gz都行。 将下载的包解压到你指定的目录,我一般是解压到d:devsbt目录,d:dev下是日常...

君子如兰
2013/07/24
0
4
Scala2.11.8 + Sbt + Maven + IntelliJ Idea + Spark2.0开发环境搭建备忘

已有Hadoop yarn 和 Spark 集群部署、运行在分布式环境中,程序开发编码在PC上,由于逐渐增多Scala编写spark2.0程序,入乡随俗使用sbt和IntelliJ Idea,顺便对PC上的Scala + sbt + maven + I...

litterMo
2016/11/25
567
0
【Kafka】Kafka Manager 安装

https://github.com/yahoo/kafka-manager 编译环境:需要SBT和Java 8+ ,编译完成了后的zip包,运行只需要java 8+环境就好了,不需要SBT。 一、安装SBT和Java 8+ 二、下载编译kafka manager 三...

HarryWu
2016/05/12
444
0
SPARK学习之 --- eclipse / sbt / scala 配置

工作以及兴趣所致,开始了spark学习之旅,浏览网上大牛们的博客 文章,并且结合官网docs,刚开始云里雾里,现在也能雾里看到点花了。 学习spark,首先我们知道spark是由scala语言编写而成,至...

莫问viva
2016/01/12
1K
0

没有更多内容

加载失败,请刷新页面

加载更多

下一页

Jvm堆内存的划分结构和优化,垃圾回收详解(详细解答篇)

在JVM中堆空间划分如下图所示 上图中,刻画了Java程序运行时的堆空间,可以简述成如下2条 1.JVM中堆空间可以分成三个大区,新生代、老年代、永久代 2.新生代可以划分为三个区,Eden区,两个幸...

嘻哈开发者
14分钟前
0
0
CentOS 7.4 设置系统字符编码

1.语言变量LANG在 /etc/locale 文件中。 2.可以通过/ect/profile 来修改LC_TYPE 变量的值 添加如下代码 export LC_ALL="zh_CN.GBK" export LANG="zh_CN.GBK" 到profile文件中,变量的可以修改...

qimh
15分钟前
0
0
Kafka相关使用

安装前提,需要有jdk环境,还有zookeeper环境 zookeeper下载地址:https://www.apache.org/dyn/closer.cgi/zookeeper/ zookeeper安装参考:https://www.jianshu.com/p/f7037105db46 kafka的下......

朝如青丝暮成雪
15分钟前
0
0
CentOS7 解决无法使用tab自动补全 tab代码提示

一、前言 对于刚刚开始学习linux的新人来说,linux的一切都显着神秘,只能惊叹于大牛在Linux上行云流水的操作。今天介绍一下在linux中自动补全的功能。 对于新人来说,在不懂得技巧的情况下,...

ziluopao
21分钟前
0
0
redis安装

https://www.cnblogs.com/feijl/p/6879929.html

ghou-靠墙哭
22分钟前
0
0
Spring核心——注解自动装载

从配置上扩展 之前的文章介绍了Spring的IoC容器配置管理方面的详细内容,需要了解的可以从IoC容器的设计模式开始阅读。在介绍基于注解配置的配置之前我们再重复一下在之前提到的基本认识: ...

随风溜达的向日葵
25分钟前
1
0
ElasticSearch学习(8)—— SearchType

Elasticsearch有四种类型的SearchType 1、query and fetch 向索引的所有分片(shard)都发出查询请求,各分片返回的时候把元素文档(document)和计算后的排名信息一起返回。这种搜索方式是最...

叶枫啦啦
26分钟前
0
0
MYSQL备份工具-mysqldump

介绍 mysqldump 是文本备份还是二进制备份 它是文本备份,如果你打开备份文件你将看到所有的语句,可以用于重新创建表和对象。它也有 insert 语句来使用数据构成表。 语法 mysqldump 的语法是...

郭恩洲_OSC博客
28分钟前
0
0
我的第一个go web框架

使用了beego等go web开发框架之后,感觉各种不方便,尤其是在接收参数、和自定义输出的时候,各种难受,定义各种model,这不是找事情嘛??尤其是在角色权限控制的时候我也感觉力不从心。。。...

独坐苔痕但观罗敷
29分钟前
0
0
自动代码生成图形化工具

自动生成Spring代码 https://github.com/EliMirren/Spring-generator 自动生成Vertx https://gitee.com/duhua/vertx-generator...

奋斗的小牛
32分钟前
1
0

没有更多内容

加载失败,请刷新页面

加载更多

下一页

返回顶部
顶部