”PLATFORM=VerilatedTester make emu“ doesn't work
See original GitHub issueWhen I execute this command ”PLATFORM=VerilatedTester make emu“, it doesn’t work.
Erros show as follow:
sbt -Dsbt.log.noformat=true "runMain bismo.ChiselMain VerilatedTester /user/bismo/build/2x64x2/VerilatedTester/hw/verilog 2 64 2 1024 1024"
/bin/sh: 1: sbt: not found
Makefile:122: recipe for target '/user/bismo/build/2x64x2/VerilatedTester/hw/verilog/VerilatedTesterWrapper.v' failed
make: *** [/user/bismo/build/2x64x2/VerilatedTester/hw/verilog/VerilatedTesterWrapper.v] Error 127
Besides, two Unit tests
pages shown in this link are not found.
https://github.com/EECS-NTNU/bismo/blob/master/doc/testing.md
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here are my setup information:
verilator --version
Verilator 3.916 2017-11-25 rev verilator_3_914-65-g0478dbdvivado -version
Vivado v2019.1 (64-bit) SW Build 2552052 on Fri May 24 14:47:09 MDT 2019 IP Build 2548770 on Fri May 24 18:01:18 MDT 2019 Copyright 1986-2019 Xilinx, Inc. All Rights Reserved.git clone --recurse-submodules https://github.com/EECS-NTNU/bismo.git
Ubuntu 18.04.5 LTS (GNU/Linux 5.4.0-42-generic x86_64)
Alought
PLATFORM=VerilatedTester make emu
gives error above, it seemsmake all
run successfully.=======> Driver written to BitSerialMatMulAccel.hpp [success] Total time: 2 s, completed Sep 7, 2020 1:21:41 PM mkdir -p /home/xs/bismo/build/2x64x2/PYNQU96/deploy;
mkdir -p /home/xs/bismo/build/2x64x2/PYNQU96/deploy/driver;
mkdir -p /home/xs/bismo/build/2x64x2/PYNQU96/deploy/test;
mkdir -p /home/xs/bismo/build/2x64x2/PYNQU96/deploy/rtlib;
mkdir -p /home/xs/bismo/build/2x64x2/PYNQU96/deploy/hls_include;
cp -rf /home/xs/bismo/build/2x64x2/PYNQU96/hw/driver/* /home/xs/bismo/build/2x64x2/PYNQU96/deploy/driver/;
cp -rf /home/xs/bismo/src/main/resources/cpp/app/* /home/xs/bismo/build/2x64x2/PYNQU96/deploy/test/; cp -rf /home/xs/bismo/src/main/resources/cpp/lib/* /home/xs/bismo/build/2x64x2/PYNQU96/deploy/rtlib;
cp -rf /home/xs/Xilinx/Vivado/2019.1/bin/…/include/* /home/xs/bismo/build/2x64x2/PYNQU96/deploy/hls_include; mkdir -p /home/xs/bismo/build/2x64x2/PYNQU96/deploy; cp -f /home/xs/bismo/src/main/script/PYNQU96/target/* /home/xs/bismo/build/2x64x2/PYNQU96/deploy/
I add
#include <stddef.h>
to these files:bismo/target/scala-2.11/classes/hls/ExecAddrGen.cpp
bismo/target/scala-2.11/classes/hls/ExecInstrGen.cpp
bismo/target/scala-2.11/classes/hls/FetchInstrGen.cpp
bismo/target/scala-2.11/classes/hls/ResultInstrGen.cpp
The error above disappeard.
But, another error shows:
[info] [2.842] COMPILING <TesterWrapper (class fpgatidbits.PlatformWrapper.VerilatedTesterWrapper)> 29 CHILDREN (8,0) [warn] DecoupledController.scala:159: UNABLE TO FIND probe IN <FetchDecoupledController (class bismo.FetchDecoupledController)> in class bismo.DecoupledController [warn] DecoupledController.scala:159: UNABLE TO FIND probe IN <ExecDecoupledController (class bismo.ExecDecoupledController)> in class bismo.DecoupledController [warn] Controller.scala:137: UNABLE TO FIND probe IN <ResultController (class bismo.ResultController)> in class bismo.BaseController [warn]: Chisel2 is deprecated. Please use Chisel3: https://github.com/freechipsproject/chisel3 [success] Total time: 5 s, completed Sep 7, 2020 2:34:52 PM mkdir -p /home/xs/bismo/build/2x64x2/VerilatedTester/deploy/verilog;
cp -rf /home/xs/bismo/build/2x64x2/VerilatedTester/hw/verilog/* /home/xs/bismo/build/2x64x2/VerilatedTester/deploy/verilog;
cp -rf /home/xs/bismo/fpga-tidbits/src/main/resources/verilog/* /home/xs/bismo/build/2x64x2/VerilatedTester/deploy/verilog;
cd /home/xs/bismo/build/2x64x2/VerilatedTester/deploy/verilog;
verilator -Iother-verilog --cc TesterWrapper.v -Wno-assignin -Wno-fatal -Wno-lint -Wno-style -Wno-COMBDLY -Wno-STMTDLY --Mdir verilated --trace;
cp -rf /usr/share/verilator/include/verilated.cpp /home/xs/bismo/build/2x64x2/VerilatedTester/deploy/verilog/verilated;
cp -rf /usr/share/verilator/include/verilated_vcd_c.cpp /home/xs/bismo/build/2x64x2/VerilatedTester/deploy/verilog/verilated; %Error: TesterWrapper.v:9172: Cannot find file containing module: FetchInstrGen %Error: TesterWrapper.v:9172: Looked in: %Error: TesterWrapper.v:9172: other-verilog/FetchInstrGen %Error: TesterWrapper.v:9172: other-verilog/FetchInstrGen.v %Error: TesterWrapper.v:9172: other-verilog/FetchInstrGen.sv %Error: TesterWrapper.v:9172: FetchInstrGen %Error: TesterWrapper.v:9172: FetchInstrGen.v %Error: TesterWrapper.v:9172: FetchInstrGen.sv %Error: TesterWrapper.v:9172: verilated/FetchInstrGen %Error: TesterWrapper.v:9172: verilated/FetchInstrGen.v %Error: TesterWrapper.v:9172: verilated/FetchInstrGen.sv %Error: TesterWrapper.v:9181: Cannot find file containing module: ResultInstrGen %Error: Exiting due to 12 error(s) %Error: Command Failed /usr/bin/verilator_bin -Iother-verilog --cc TesterWrapper.v -Wno-assignin -Wno-fatal -Wno-lint -Wno-style -Wno-COMBDLY -Wno-STMTDLY --Mdir verilated --trace mkdir -p /home/xs/bismo/build/2x64x2/VerilatedTester/deploy;
mkdir -p /home/xs/bismo/build/2x64x2/VerilatedTester/deploy/driver;
mkdir -p /home/xs/bismo/build/2x64x2/VerilatedTester/deploy/test;
mkdir -p /home/xs/bismo/build/2x64x2/VerilatedTester/deploy/rtlib;
mkdir -p /home/xs/bismo/build/2x64x2/VerilatedTester/deploy/hls_include;
cp -rf /home/xs/bismo/build/2x64x2/VerilatedTester/hw/driver/* /home/xs/bismo/build/2x64x2/VerilatedTester/deploy/driver/;
cp -rf /home/xs/bismo/src/main/resources/cpp/app/* /home/xs/bismo/build/2x64x2/VerilatedTester/deploy/test/; cp -rf /home/xs/bismo/src/main/resources/cpp/lib/* /home/xs/bismo/build/2x64x2/VerilatedTester/deploy/rtlib;
cp -rf /home/xs/Xilinx/Vivado/2019.1/bin/…/include/* /home/xs/bismo/build/2x64x2/VerilatedTester/deploy/hls_include; mkdir -p /home/xs/bismo/build/2x64x2/VerilatedTester/deploy; cp -f /home/xs/bismo/src/main/script/VerilatedTester/target/* /home/xs/bismo/build/2x64x2/VerilatedTester/deploy/ cd /home/xs/bismo/build/2x64x2/VerilatedTester/deploy;
sh compile_rtlib.sh; g++: error: verilog/verilated/*.cpp: Not a directory platforms/VerilatedTester.mk:63: recipe for target ‘/home/xs/bismo/build/2x64x2/VerilatedTester/deploy/libbismo_rt.so’ failed make: *** [/home/xs/bismo/build/2x64x2/VerilatedTester/deploy/libbismo_rt.so] Error 1
Full Output