Compare commits

..

No commits in common. "c0857403b8ef4a7c557aab66e61087aa25605f10" and "6f78ac506884ab9deeafec9976ca31150afac7e0" have entirely different histories.

9 changed files with 63 additions and 29 deletions

View file

@ -55,10 +55,6 @@
checks = forAllSystems (pkgs: {
formatting = treefmtEval.${pkgs.system}.config.build.check self;
packages = pkgs.symlinkJoin {
name = "all";
paths = pkgs.lib.attrsets.attrValues self.packages.${pkgs.system};
};
});
# this is mainly so that nix-update works. I have no idea if this works without it.
@ -70,5 +66,39 @@
path = ./templates/default;
description = "basic template to get started with an ecp5";
};
# example, not really something you should import unless you want everything.
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
(python3.withPackages (
ps: with ps; [
cocotb
cocotb-bus
litex
litedram
liteeth
litescope
litespi
liteiclink
pythondata-cpu-vexriscv
pythondata-software-compiler_rt
pythondata-software-picolibc
amaranth
]
))
yosys
nextpnr
# simulators
verilog
verilator
# support package
trellis
# loader
openfpgaloader
ecpdap # easier to poke probes.
];
};
});
};
}

View file

@ -7,13 +7,13 @@
}:
buildPythonPackage rec {
pname = "litedram";
version = "2024.12";
version = "2023.12";
src = pkgs.fetchFromGitHub {
owner = "enjoy-digital";
repo = "litedram";
rev = "${version}";
hash = "sha256-IlqaB6zocfo5MCvmNJYdsNOuLjz07f3yTwL/wTqPq8E=";
hash = "sha256-EaUszy0v6r5sKM5d5YmpRbR8Cf9xITObU71zUpg9cLU=";
};
buildInputs = [
@ -21,5 +21,8 @@ buildPythonPackage rec {
migen
];
checkPhase = ''
python -m unittest test
'';
doCheck = true;
}

View file

@ -1,9 +1,10 @@
{
pkgs,
lib,
buildPythonPackage,
migen,
setuptools,
litex,
litespi,
pyyaml,
}:
buildPythonPackage rec {
@ -26,9 +27,11 @@ buildPythonPackage rec {
];
nativeCheckInputs = [
litespi
pyyaml
];
checkPhase = ''
python -m unittest test
'';
doCheck = true;
}

View file

@ -2,33 +2,24 @@
pkgs,
buildPythonPackage,
litex,
migen,
liteeth,
pytest,
}:
buildPythonPackage rec {
pname = "liteiclink";
version = "2024.12";
version = "2023.12";
src = pkgs.fetchFromGitHub {
owner = "enjoy-digital";
repo = "liteiclink";
rev = "${version}";
hash = "sha256-eWetbj6nhaNS8PsQlkwAZ4MCgHy9CIgJBP8u4AP884M=";
hash = "sha256-5Hp5vFqmfkXo1q60FvOkToTy952svirChIPIvkam04M=";
};
buildInputs = [
litex
migen
];
nativeCheckInputs = [
pytest
liteeth
];
checkPhase = ''
pytest -v test/
python -m unittest test
'';
doCheck = true;
}

View file

@ -1,24 +1,28 @@
{
pkgs,
lib,
buildPythonPackage,
migen,
setuptools,
litex,
}:
buildPythonPackage rec {
pname = "litescope";
version = "2024.12";
version = "2023.12";
src = pkgs.fetchFromGitHub {
owner = "enjoy-digital";
repo = "litescope";
rev = "${version}";
hash = "sha256-BlDEiM65oOLTc6nXYNyBPn+XLni6EhRdNjkZgs+gDwE=";
hash = "sha256-OWC+XwB+BzlCQkPKJCbQ0W4T6JbsInldrn9jYYjWypM=";
};
buildInputs = [
litex
migen
];
checkPhase = ''
python -m unittest test
'';
doCheck = true;
}

View file

@ -8,13 +8,13 @@
}:
buildPythonPackage rec {
pname = "litespi";
version = "2024.12";
version = "2023.12";
src = pkgs.fetchFromGitHub {
owner = "litex-hub";
repo = "litespi";
rev = "${version}";
hash = "sha256-BiRyYCysr7Sb/XPYzUz8vSKtEmRz/p/2RMxX8Bmyrd4=";
hash = "sha256-XYeWokF1IGtZWRK+6jhRSN91MOV5vyh5aO08sbtFBxw=";
};
buildInputs = [
@ -28,5 +28,8 @@ buildPythonPackage rec {
nativeCheckInputs = [
];
checkPhase = ''
python -m unittest test
'';
doCheck = true;
}

View file

@ -4,13 +4,13 @@
}:
buildPythonPackage rec {
pname = "pythondata-cpu-vexriscv";
version = "2024.12";
version = "2023.12";
src = pkgs.fetchFromGitHub {
owner = "litex-hub";
repo = "pythondata-cpu-vexriscv";
rev = "${version}";
hash = "sha256-wkdKTODOu83hCsBTcH+5skNlHr6ypuUu04Tyop4PrEc=";
hash = "sha256-1RgwJCYxtiP5dfRHulfTNBgu6fum6RfoqkbFIlRTgKI=";
};
doCheck = false;

View file

@ -4,7 +4,7 @@
}:
buildPythonPackage rec {
pname = "pythondata-software-compiler_rt";
version = "2024.12";
version = "2023.12";
src = pkgs.fetchFromGitHub {
owner = "litex-hub";

View file

@ -4,7 +4,7 @@
}:
buildPythonPackage rec {
pname = "pythondata-software-picolibc";
version = "2024.12";
version = "2023.12";
src = pkgs.fetchFromGitHub {
owner = "litex-hub";