Giter Site home page Giter Site logo

vortexgpgpu / skybox Goto Github PK

View Code? Open in Web Editor NEW
52.0 4.0 8.0 368.89 MB

Vortex Graphics

License: Apache License 2.0

Makefile 0.66% Shell 0.43% Python 0.19% C++ 15.49% SystemVerilog 6.95% Verilog 56.07% Tcl 1.09% C 3.39% Visual Basic 6.0 1.19% PostScript 14.49% Assembly 0.04% CMake 0.01%

skybox's Introduction

Vortex GPGPU

Vortex is a full-stack open-source RISC-V GPGPU.

Specifications

  • Support RISC-V RV32IMAF and RV64IMAFD
  • Microarchitecture:
    • configurable number of cores, warps, and threads.
    • configurable number of ALU, FPU, LSU, and SFU units per core.
    • configurable pipeline issue width.
    • optional graphics rasterizer, texture, and OM units.
    • optional local memory, L1, L2 and L3 caches.
  • Software: OpenCL 1.2 Support.
  • Supported FPGAs:
    • Altera Arria 10
    • Altera Stratix 10
    • Xilinx Alveo U50, U250, U280
    • Xilinx Versal VCK5000

Directory structure

  • doc: Documentation.
  • hw: Hardware sources.
  • driver: Host drivers repository.
  • runtime: Kernel Runtime software.
  • sim: Simulators repository.
  • tests: Tests repository.
  • ci: Continuous integration scripts.
  • miscs: Miscellaneous resources.

Build Instructions

More detailed build instructions can be found here.

Supported OS Platforms

  • Ubuntu 18.04, 20.04
  • Centos 7

Toolchain Dependencies

Install development tools

sudo apt-get install build-essential
sudo apt-get install binutils
sudo apt-get install python
sudo apt-get install uuid-dev
sudo apt-get install git

Install Vortex codebase

git clone --depth=1 --recursive https://github.com/vortexgpgpu/vortex.git
cd vortex

Configure your build folder

mkdir build
cd build
../configure --xlen=32 --tooldir=$HOME/tools

Install prebuilt toolchain

./ci/toolchain_install.sh --all

Set environment variables

# should always run before using the toolchain!
source ./ci/toolchain_env.sh

Building Vortex

make -s

Quick demo rendering a 3D scene using 2 cores

output

CONFIGS="-DEXT_GFX_ENABLE" ./ci/blackbox.sh --driver=simx --app=draw3d --args="-ttekkaman.cgltrace -w256 -h256" --cores=2

The generated image will be written to tests/regression/draw3d/output.png

Common Developer Tips

  • Installing Vortex kernel and runtime libraries to use with external tools requires passing --prefix= to the configure script.
../configure --xlen=32 --tooldir=$HOME/tools --prefix=<install-path>
make -s
make install
  • Building Vortex 64-bit simply requires using --xlen=64 configure option.
../configure --xlen=32 --tooldir=$HOME/tools
  • Sourcing "./ci/toolchain_env.sh" is required everytime you start a new terminal. we recommend adding "source /ci/toolchain_env.sh" to your ~/.bashrc file to automate the process at login.
echo "source <build-path>/ci/toolchain_env.sh" >> ~/.bashrc
  • Making changes to Makefiles in your source tree or adding new folders will require executing the "configure" script again to get it propagated into your build folder.
../configure
  • To debug the GPU, you can generate a "run.log" trace. see /docs/debugging.md for more information.
./ci/blackbox.sh --app=demo --debug=3
  • For additional information, check out the /docs.

skybox's People

Contributors

tinebp avatar pear0 avatar stackmachinesa avatar santoshsrivatsan24 avatar cdkersey avatar gadzookie avatar zlj09 avatar felsabbagh3 avatar malikburton avatar codetector1374 avatar jacoblevinson avatar hyesoon avatar udit8348 avatar caiyzik avatar timmy139710 avatar eunaeuna avatar saunack avatar limvot avatar shin0403 avatar xandyliu avatar lpc97667 avatar

Stargazers

Oleh Hushchenkov avatar TSUBOI Shotaro avatar SayedAli Nourian avatar feifan lu avatar Tianlan Zhou avatar  avatar hl98 avatar Bradley Morrell avatar  avatar XANDER avatar  avatar fatih avatar Donghao avatar Suminda Sirinath Salpitikorala Dharmasena avatar steve hu avatar DonaldDuck avatar Elton avatar Alexey avatar Francis St-Amour avatar Tony Pan avatar Nikolaos Giannopoulos avatar jaisung kim avatar Hanran Wu avatar Alex Pyattaev avatar Andrey Tkachenko avatar  avatar uint256_t avatar  avatar Matthias Fauconneau avatar Zhifan Ye avatar pls avatar  avatar Hankyul Kwon avatar Jeff Carpenter avatar Jose R Garcia avatar  avatar Icenowy Zheng avatar  avatar Huang Rui avatar Jiuyang Liu avatar SingularityKChen avatar Huang Ying avatar gmlayer0 avatar  avatar sprhawk avatar Seokjin Go avatar  avatar Aleksei Vazhnov avatar Alexey Vazhnov avatar Sergey Kostyanoy avatar  avatar Neoming avatar

Watchers

Matthias Fauconneau avatar  avatar  avatar  avatar

skybox's Issues

Compile error

hi guys,

I meet such compile errors when I try this project, please give me some help! Thanks!

compile log:
| LLVM | running "/home/binliu/tools/llvm-vortex/bin/clang -march=rv32imaf -mabi=ilp32f -v -O3 --sysroot=/home/binliu/tools/riscv-gnu-toolchain/riscv32-unknown-elf --gcc-toolchain=/home/binliu/tools/riscv-gnu-toolchain -Xclang -target-feature -Xclang +vortex -fno-rtti -fno-exceptions -nostartfiles -fdata-sections -ffunction-sections -I/home/binliu/skybox/kernel/include -DNDEBUG -DLLVM_VOTEX /home/binliu/.cache/pocl/kcache/GC/DNMPOCKDDNCBONENDONHGPCJPBCELLFJPKGOG/vecadd/0-0-0/parallel.bc -c -o /home/binliu/.cache/pocl/kcache/tempfile_8TnAvV.so.o"
clang version 16.0.6 (https://github.com/vortexgpgpu/llvm.git 5828d24a5b9270b7538854d28fa4cc14827da89c)
Target: riscv32-unknown-unknown-elf
Thread model: posix
InstalledDir: /home/binliu/tools/llvm-vortex/bin
Found candidate GCC installation: /home/binliu/tools/riscv-gnu-toolchain/lib/gcc/riscv32-unknown-elf/12.2.0
Selected GCC installation: /home/binliu/tools/riscv-gnu-toolchain/lib/gcc/riscv32-unknown-elf/12.2.0
clang-16: warning: argument unused during compilation: '-nostartfiles' [-Wunused-command-line-argument]
clang-16: warning: argument unused during compilation: '-I /home/binliu/skybox/kernel/include' [-Wunused-command-line-argument]
(in-process)
"/home/binliu/tools/llvm-vortex/bin/clang-16" -cc1 -triple riscv32-unknown-unknown-elf -emit-obj -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name parallel.bc -mrelocation-model static -mframe-pointer=none -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -nostdsysteminc -target-cpu generic-rv32 -target-feature +m -target-feature +a -target-feature +f -target-feature -e -target-feature -d -target-feature -c -target-feature -h -target-feature -zihintpause -target-feature -zfhmin -target-feature -zfh -target-feature -zfinx -target-feature -zdinx -target-feature -zhinxmin -target-feature -zhinx -target-feature -zba -target-feature -zbb -target-feature -zbc -target-feature -zbs -target-feature -zbkb -target-feature -zbkc -target-feature -zbkx -target-feature -zknd -target-feature -zkne -target-feature -zknh -target-feature -zksed -target-feature -zksh -target-feature -zkr -target-feature -zkn -target-feature -zks -target-feature -zkt -target-feature -zk -target-feature -zmmul -target-feature -v -target-feature -zvl32b -target-feature -zvl64b -target-feature -zvl128b -target-feature -zvl256b -target-feature -zvl512b -target-feature -zvl1024b -target-feature -zvl2048b -target-feature -zvl4096b -target-feature -zvl8192b -target-feature -zvl16384b -target-feature -zvl32768b -target-feature -zvl65536b -target-feature -zve32x -target-feature -zve32f -target-feature -zve64x -target-feature -zve64f -target-feature -zve64d -target-feature -zicbom -target-feature -zicboz -target-feature -zicbop -target-feature -svnapot -target-feature -svpbmt -target-feature -svinval -target-feature -xventanacondops -target-feature -xtheadvdot -target-feature -experimental-zihintntl -target-feature -experimental-zca -target-feature -experimental-zcd -target-feature -experimental-zcf -target-feature -experimental-zvfh -target-feature -experimental-zawrs -target-feature -experimental-ztso -target-feature +relax -target-feature -save-restore -target-abi ilp32f -msmall-data-limit 8 -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -v -ffunction-sections -fdata-sections -fcoverage-compilation-dir=/home/binliu/skybox/tests/opencl/vecadd -resource-dir /home/binliu/tools/llvm-vortex/lib/clang/16 -O3 -fdebug-compilation-dir=/home/binliu/skybox/tests/opencl/vecadd -ferror-limit 19 -fno-signed-char -fgnuc-version=4.2.1 -fcolor-diagnostics -vectorize-loops -vectorize-slp -target-feature +vortex -faddrsig -o /home/binliu/.cache/pocl/kcache/tempfile_8TnAvV.so.o -x ir /home/binliu/.cache/pocl/kcache/GC/DNMPOCKDDNCBONENDONHGPCJPBCELLFJPKGOG/vecadd/0-0-0/parallel.bc
clang -cc1 version 16.0.6 based upon LLVM 16.0.6 default target riscv32-unknown-elf
warning: overriding the module target triple with riscv32-unknown-unknown-elf [-Woverride-module]
fatal error: error in backend: -target-abi option != target-abi module flag
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: /home/binliu/tools/llvm-vortex/bin/clang -march=rv32imaf -mabi=ilp32f -v -O3 --sysroot=/home/binliu/tools/riscv-gnu-toolchain/riscv32-unknown-elf --gcc-toolchain=/home/binliu/tools/riscv-gnu-toolchain -Xclang -target-feature -Xclang +vortex -fno-rtti -fno-exceptions -nostartfiles -fdata-sections -ffunction-sections -I/home/binliu/skybox/kernel/include -DNDEBUG -DLLVM_VOTEX /home/binliu/.cache/pocl/kcache/GC/DNMPOCKDDNCBONENDONHGPCJPBCELLFJPKGOG/vecadd/0-0-0/parallel.bc -c -o /home/binliu/.cache/pocl/kcache/tempfile_8TnAvV.so.o

  1. Optimizer
    #0 0x00007f5bbcdc946f llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/binliu/tools/llvm-vortex/lib/libLLVMSupport.so.16+0x1c946f)
    #1 0x00007f5bbcdc749c llvm::sys::CleanupOnSignal(unsigned long) (/home/binliu/tools/llvm-vortex/lib/libLLVMSupport.so.16+0x1c749c)
    #2 0x00007f5bbccb6a87 llvm::CrashRecoveryContext::HandleExit(int) (/home/binliu/tools/llvm-vortex/lib/libLLVMSupport.so.16+0xb6a87)
    #3 0x00007f5bbcdbefa2 llvm::sys::Process::Exit(int, bool) (/home/binliu/tools/llvm-vortex/lib/libLLVMSupport.so.16+0x1befa2)
    #4 0x0000629fbb5c986f (/home/binliu/tools/llvm-vortex/bin/clang+0x1586f)
    #5 0x00007f5bbccc91da llvm::report_fatal_error(llvm::Twine const&, bool) (/home/binliu/tools/llvm-vortex/lib/libLLVMSupport.so.16+0xc91da)
    #6 0x00007f5bbccc936e (/home/binliu/tools/llvm-vortex/lib/libLLVMSupport.so.16+0xc936e)
    #7 0x00007f5bc12ff017 llvm::RISCVTargetMachine::getSubtargetImpl(llvm::Function const&) const (/home/binliu/tools/llvm-vortex/lib/libLLVMRISCVCodeGen.so.16+0xff017)
    #8 0x00007f5bc12fe461 llvm::RISCVTargetMachine::getTargetTransformInfo(llvm::Function const&) const (/home/binliu/tools/llvm-vortex/lib/libLLVMRISCVCodeGen.so.16+0xfe461)
    #9 0x00007f5bc1028d0a std::_Function_handler<llvm::TargetTransformInfo (llvm::Function const&), llvm::TargetMachine::getTargetIRAnalysis() const::'lambda'(llvm::Function const&)>::_M_invoke(std::_Any_data const&, llvm::Function const&) TargetMachine.cpp:0:0
    #10 0x00007f5bbe42fc17 llvm::TargetIRAnalysis::run(llvm::Function const&, llvm::AnalysisManagerllvm::Function&) (/home/binliu/tools/llvm-vortex/lib/libLLVMAnalysis.so.16+0x42fc17)
    #11 0x00007f5bbcad4097 llvm::detail::AnalysisPassModel<llvm::Function, llvm::TargetIRAnalysis, llvm::PreservedAnalyses, llvm::AnalysisManagerllvm::Function::Invalidator>::run(llvm::Function&, llvm::AnalysisManagerllvm::Function&) (/home/binliu/tools/llvm-vortex/lib/libLLVMPasses.so.16+0x5f097)
    #12 0x00007f5bbdca5b29 llvm::AnalysisManagerllvm::Function::getResultImpl(llvm::AnalysisKey*, llvm::Function&) (/home/binliu/tools/llvm-vortex/lib/libLLVMCore.so.16+0x2a5b29)
    #13 0x00007f5bbed5ee4f llvm::SimplifyCFGPass::run(llvm::Function&, llvm::AnalysisManagerllvm::Function&) (/home/binliu/tools/llvm-vortex/lib/libLLVMScalarOpts.so.16+0x35ee4f)
    #14 0x00007f5bbcad6666 llvm::detail::PassModel<llvm::Function, llvm::SimplifyCFGPass, llvm::PreservedAnalyses, llvm::AnalysisManagerllvm::Function>::run(llvm::Function&, llvm::AnalysisManagerllvm::Function&) (/home/binliu/tools/llvm-vortex/lib/libLLVMPasses.so.16+0x61666)
    #15 0x00007f5bc06e074a llvm::detail::PassModel<llvm::Function, llvm::PassManager<llvm::Function, llvm::AnalysisManagerllvm::Function>, llvm::PreservedAnalyses, llvm::AnalysisManagerllvm::Function>::run(llvm::Function&, llvm::AnalysisManagerllvm::Function&) (/home/binliu/tools/llvm-vortex/lib/libclangCodeGen.so.16+0xe074a)
    #16 0x00007f5bbdc9fe8d llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManagerllvm::Module&) (/home/binliu/tools/llvm-vortex/lib/libLLVMCore.so.16+0x29fe8d)
    #17 0x00007f5bc06d9ee6 llvm::detail::PassModel<llvm::Module, llvm::ModuleToFunctionPassAdaptor, llvm::PreservedAnalyses, llvm::AnalysisManagerllvm::Module>::run(llvm::Module&, llvm::AnalysisManagerllvm::Module&) (/home/binliu/tools/llvm-vortex/lib/libclangCodeGen.so.16+0xd9ee6)
    #18 0x00007f5bbdca1e99 llvm::PassManager<llvm::Module, llvm::AnalysisManagerllvm::Module>::run(llvm::Module&, llvm::AnalysisManagerllvm::Module&) (/home/binliu/tools/llvm-vortex/lib/libLLVMCore.so.16+0x2a1e99)
    #19 0x00007f5bc06ed454 (anonymous namespace)::EmitAssemblyHelper::RunOptimizationPipeline(clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_deletellvm::raw_pwrite_stream>&, std::unique_ptr<llvm::ToolOutputFile, std::default_deletellvm::ToolOutputFile>&) BackendUtil.cpp:0:0
    #20 0x00007f5bc06f04c6 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_deletellvm::raw_pwrite_stream>) (/home/binliu/tools/llvm-vortex/lib/libclangCodeGen.so.16+0xf04c6)
    #21 0x00007f5bc0b62530 clang::CodeGenAction::ExecuteAction() (/home/binliu/tools/llvm-vortex/lib/libclangCodeGen.so.16+0x562530)
    #22 0x00007f5bbf73c851 clang::FrontendAction::Execute() (/home/binliu/tools/llvm-vortex/lib/libclangFrontend.so.16+0x13c851)
    #23 0x00007f5bbf6b7073 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/home/binliu/tools/llvm-vortex/lib/libclangFrontend.so.16+0xb7073)
    #24 0x00007f5bc174e06b clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/home/binliu/tools/llvm-vortex/lib/libclangFrontendTool.so.16+0x506b)
    #25 0x0000629fbb5caaec cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/home/binliu/tools/llvm-vortex/bin/clang+0x16aec)
    #26 0x0000629fbb5c650c ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) driver.cpp:0:0
    #27 0x00007f5bbf2c15b9 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optionalllvm::StringRef>, std::__cxx11::basic_string<char, std::char_traits, std::allocator>, bool) const::'lambda'()>(long) Job.cpp:0:0
    #28 0x00007f5bbccb6977 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/home/binliu/tools/llvm-vortex/lib/libLLVMSupport.so.16+0xb6977)
    #29 0x00007f5bbf2c17ec clang::driver::CC1Command::Execute(llvm::ArrayRef<std::optionalllvm::StringRef>, std::__cxx11::basic_string<char, std::char_traits, std::allocator>, bool) const (.part.0) Job.cpp:0:0
    #30 0x00007f5bbf285e1c clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/home/binliu/tools/llvm-vortex/lib/libclangDriver.so.16+0x85e1c)
    #31 0x00007f5bbf28680d clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&, bool) const (/home/binliu/tools/llvm-vortex/lib/libclangDriver.so.16+0x8680d)
    #32 0x00007f5bbf2932dc clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*>>&) (/home/binliu/tools/llvm-vortex/lib/libclangDriver.so.16+0x932dc)
    #33 0x0000629fbb5c8da3 clang_main(int, char**) (/home/binliu/tools/llvm-vortex/bin/clang+0x14da3)
    #34 0x00007f5bbc429d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
    #35 0x00007f5bbc429e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
    #36 0x0000629fbb5c264e _start (/home/binliu/tools/llvm-vortex/bin/clang+0xe64e)
    clang-16: error: clang frontend command failed with exit code 70 (use -v to see invocation)
    clang version 16.0.6 (https://github.com/vortexgpgpu/llvm.git 5828d24a5b9270b7538854d28fa4cc14827da89c)
    Target: riscv32-unknown-unknown-elf
    Thread model: posix
    InstalledDir: /home/binliu/tools/llvm-vortex/bin
    clang-16: note: diagnostic msg: Error generating preprocessed source(s) - no preprocessable inputs.
    [2024-05-24 06:18:52.934871415]POCL: in fn int pocl_llvm_build_vortex_program(cl_kernel, unsigned int, cl_device_id, const char*, const char*, const char*, int) at line 131:
    | ERROR |
    [2024-05-24 06:18:52.934940647]POCL: in fn llvm_codegen at line 543:
    | LLVM | Vortex compilation kernel.o -> kernel.hex has failed
    [2024-05-24 06:18:52.935058773]POCL: in fn llvm_codegen at line 616:
    | TIMING | >>> 342.913 ms API: llvm_codegen
    Final linking of kernel vecadd failed.
    Aborted (core dumped)
    make[3]: *** [../common.mk:76: kernel.pocl] Error 134
    make[3]: Leaving directory '/home/binliu/skybox/tests/opencl/vecadd'
    make[2]: *** [Makefile:2: all] Error 2
    make[2]: Leaving directory '/home/binliu/skybox/tests/opencl'
    make[1]: *** [Makefile:11: opencl] Error 2
    make[1]: Leaving directory '/home/binliu/skybox/tests'
    make: *** [Makefile:7: all] Error 2

Cannot build skybox.

Dear Group,

First of all i did this:

  1. git clone https://github.com/vortexgpgpu/skybox.git

  2. cd skybox

  3. i change in toolchain_install.sh those: (for ubuntu 20.04 LTS)
    #OSDIR=${OSDIR:=ubuntu/bionic}
    OSDIR=${OSDIR:=ubuntu/focal}
    #OS="${OS:=ubuntu/bionic}"
    OS="${OS:=ubuntu/focal}"

  4. ./ci/toolchain_install.sh --all

  5. source ./ci/toolchain_env.sh

  6. i needed to add those third_party:
    cocogfx
    cvfpu
    ramulator
    berkeley-softfloat-3

  7. after that i did make and getting error:

$ make
make -C third_party
make[1]: Entering directory '/home/hardwaredesign/Desktop/skybox/skybox/third_party'
make -C cocogfx
make[2]: Entering directory '/home/hardwaredesign/Desktop/skybox/skybox/third_party/cocogfx'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/hardwaredesign/Desktop/skybox/skybox/third_party/cocogfx'
SPECIALIZE_TYPE=RISCV SOFTFLOAT_OPTS="-fPIC -DSOFTFLOAT_ROUND_ODD -DINLINE_LEVEL=5 -DSOFTFLOAT_FAST_DIV32TO16 -DSOFTFLOAT_FAST_DIV64TO32" make -C softfloat/build/Linux-x86_64-GCC
make[2]: Entering directory '/home/hardwaredesign/Desktop/skybox/skybox/third_party/softfloat/build/Linux-x86_64-GCC'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/hardwaredesign/Desktop/skybox/skybox/third_party/softfloat/build/Linux-x86_64-GCC'
cd ramulator && git apply ../../miscs/patch/ramulator.patch 2> /dev/null; true
make -C ramulator libramulator.a
make[2]: Entering directory '/home/hardwaredesign/Desktop/skybox/skybox/third_party/ramulator'
libtool -static -o libramulator.a  obj/WideIO2.o  obj/STTMRAM.o  obj/Controller.o  obj/LPDDR4.o  obj/LPDDR3.o  obj/HBM.o  obj/MemoryFactory.o  obj/Processor.o  obj/WideIO.o  obj/ALDRAM.o  obj/PCM.o  obj/Config.o  obj/TLDRAM.o  obj/GDDR5.o  obj/SALP.o  obj/DDR4.o  obj/DSARP.o  obj/StatType.o  obj/DDR3.o  obj/Cache.o  obj/Refresh.o obj/Gem5Wrapper.o
Usage: /usr/bin/libtool [OPTION]... [MODE-ARG]...
Try 'libtool --help' for more information.
libtool:   error: unrecognised option: '-static'
make[2]: *** [Makefile:39: libramulator.a] Error 1
make[2]: Leaving directory '/home/hardwaredesign/Desktop/skybox/skybox/third_party/ramulator'
make[1]: *** [Makefile:13: ramulator] Error 2
make[1]: Leaving directory '/home/hardwaredesign/Desktop/skybox/skybox/third_party'
make: *** [Makefile:2: all] Error 2

Is something wrong with my machine? or is there a code issue?

UPDATE: getting error from verilator now:

Update now when i run the make -s getting error from verilator:

%Error: Internal Error: /home/hardwaredesign/Desktop/skybox/skybox/hw/rtl/core/VX_trace.vh:52:25: ../V3Scope.cpp:73: Can't locate varref scope
                                                                                                : ... note: In instance '$unit'
   52 |     logic rd_float = 1'(rd >> 5) || 1'(rs2 >> 5);
      |                         ^~
                        /home/hardwaredesign/Desktop/skybox/skybox/hw/rtl/core/VX_dcr_data.sv:16:1: ... note: In file included from 'VX_dcr_data.sv'
                        /home/hardwaredesign/Desktop/skybox/skybox/hw/rtl/core/VX_core.sv:144:1: ... note: In file included from 'VX_core.sv'
                        /home/hardwaredesign/Desktop/skybox/skybox/hw/rtl/VX_socket.sv:333:1: ... note: In file included from 'VX_socket.sv'
                        /home/hardwaredesign/Desktop/skybox/skybox/hw/rtl/VX_cluster.sv:243:1: ... note: In file included from 'VX_cluster.sv'
                        /home/hardwaredesign/Desktop/skybox/skybox/hw/rtl/Vortex.sv:166:1: ... note: In file included from 'Vortex.sv'

compile hw/unit_test failed

hi , i try to run the test case under the unit_test. but failed. the log is :
verilator --build --exe --cc VX_raster_qe.sv --top-module VX_raster_qe --language 1800-2009 --assert -Wall -Wno-DECLFILENAME -Wno-REDEFMACRO --x-initial unique --x-assign unique -Wno-UNUSED -Wno-UNDRIVEN -I../../../rtl -I../../../dpi -I../../../rtl/libs -I../../../rtl/interfaces -I../../../rtl/cache -I../../../rtl/fpu -I../../../dpi/.. -I../../../rtl/tex -I../../../rtl/raster -I../../../rtl/om -j 40 --trace --trace-structs -DDBG_TRACE_CORE_PIPELINE -DDBG_TRACE_CORE_ICACHE -DDBG_TRACE_CORE_DCACHE -DDBG_TRACE_CORE_MEM -DDBG_TRACE_CACHE_BANK -DDBG_TRACE_CACHE_MSHR -DDBG_TRACE_CACHE_TAG -DDBG_TRACE_CACHE_DATA -DDBG_TRACE_AFU -DDBG_TRACE_SCOPE -DDBG_TRACE_TEX -DDBG_TRACE_RASTER -DDBG_TRACE_OM -DVCD_OUTPUT testbench.cpp ../../../dpi/util_dpi.cpp -CFLAGS '-std=c++11 -Wall -Wextra -Wfatal-errors -Wno-array-bounds -Wno-maybe-uninitialized -I../../../dpi/.. -I../../../dpi -I../../../dpi/../common -I/nethome/vsaxena36/vortex-dev/hw -g -O0 -DDBG_TRACE_CORE_PIPELINE -DDBG_TRACE_CORE_ICACHE -DDBG_TRACE_CORE_DCACHE -DDBG_TRACE_CORE_MEM -DDBG_TRACE_CACHE_BANK -DDBG_TRACE_CACHE_MSHR -DDBG_TRACE_CACHE_TAG -DDBG_TRACE_CACHE_DATA -DDBG_TRACE_AFU -DDBG_TRACE_SCOPE -DDBG_TRACE_TEX -DDBG_TRACE_RASTER -DDBG_TRACE_OM -DVCD_OUTPUT' -o ../VX_raster_qe
%Error-PKGNODECL: ../../../rtl/raster/VX_raster_qe.sv:23:28: Package/class 'VX_raster_pkg' not found, and needs to be predeclared (IEEE 1800-2023 26.3)
23 | module VX_raster_qe import VX_raster_pkg::; #(
| ^~~~~~~~~~~~~
... For error description see https://verilator.org/warn/PKGNODECL?v=5.025
%Error: ../../../rtl/raster/VX_raster_qe.sv:23:28: Importing from missing package 'VX_raster_pkg'
23 | module VX_raster_qe import VX_raster_pkg::
; #(
| ^~~~~~~~~~~~~
%Error: Exiting due to 2 error(s)
... See the manual at https://verilator.org/verilator_doc.html for more assistance.
make: *** [Makefile:63: VX_raster_qe] Error 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.