日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

动手---sbt(2)

發布時間:2025/3/21 编程问答 45 豆豆
生活随笔 收集整理的這篇文章主要介紹了 动手---sbt(2) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

2019獨角獸企業重金招聘Python工程師標準>>>

參考 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_nameHEAD 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.hNow 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.yedit ../verilog.y V3ParseBison_pretmp.y/usr/bin/bison -d -v --report=itemset --report=lookahead -b V3ParseBison_pretmp -o V3ParseBison_pretmp.c V3ParseBison_pretmp.yedit V3ParseBison_pretmp.output V3ParseBison.outputedit V3ParseBison_pretmp.c V3ParseBison.cedit 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 environmentmake[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/

轉載于:https://my.oschina.net/u/2963604/blog/1832191

總結

以上是生活随笔為你收集整理的动手---sbt(2)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。