ISP/FPGA.nix

51 lines
872 B
Nix
Raw Normal View History

{ config, pkgs, ... }: {
# Add packages to the dev environment
packages = with pkgs; [
# FPGA
verilator
systemc
2024-11-03 20:38:29 +08:00
verilog
verible
svls
2024-11-03 20:38:29 +08:00
zlib
# C/C++
xmake
2024-10-03 15:13:24 +08:00
gnumake
cmake
ninja
gcc
2024-10-03 15:13:24 +08:00
neocmakelsp
clang-tools
# Libraries
spdlog
];
# Enable languages support
# languages.cplusplus.enable = true;
languages.python = {
enable = true;
2024-10-22 20:31:51 +08:00
version = "3.11.8";
venv.enable = true;
venv.requirements = ''
teroshdl
cocotb
'';
};
# When enter shell, exec ...
enterShell = ''
export SYSTEMC_INCLUDE="${pkgs.systemc}/include"
export SYSTEMC_LIBDIR="${pkgs.systemc}/lib"
export VERILATOR_INCLUDE="${pkgs.verilator}/share/verilator/include"
2024-11-03 20:38:29 +08:00
alias gtkwave="GDK_BACKEND=x11 gtkwave"
echo
verilator --version
echo
gcc --version
'';
}