Compare commits

...

2 commits

Author SHA1 Message Date
saji c0857403b8 update versions; checks work now 2025-02-07 18:02:33 -06:00
saji 278b82d662 start making tests work 2025-02-07 18:00:09 -06:00
9 changed files with 29 additions and 63 deletions

View file

@ -55,6 +55,10 @@
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.
@ -66,39 +70,5 @@
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 = "2023.12";
version = "2024.12";
src = pkgs.fetchFromGitHub {
owner = "enjoy-digital";
repo = "litedram";
rev = "${version}";
hash = "sha256-EaUszy0v6r5sKM5d5YmpRbR8Cf9xITObU71zUpg9cLU=";
hash = "sha256-IlqaB6zocfo5MCvmNJYdsNOuLjz07f3yTwL/wTqPq8E=";
};
buildInputs = [
@ -21,8 +21,5 @@ buildPythonPackage rec {
migen
];
checkPhase = ''
python -m unittest test
'';
doCheck = true;
}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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