generated from saji/ecp5-template
This commit is contained in:
parent
ccdbc98cb0
commit
3205c7104e
|
@ -1,9 +1,6 @@
|
||||||
name: Verilator Unit Tests
|
name: Unit Tests
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
shell: nix develop --command bash {0}
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
name: Test
|
name: Test
|
||||||
|
@ -12,11 +9,5 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: DeterminateSystems/nix-installer-action@main
|
- uses: DeterminateSystems/nix-installer-action@main
|
||||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||||
- name: Build Testbench Simulator
|
- name: Build Groovylight
|
||||||
run: |
|
run: nix build .
|
||||||
cmake -B build/ -GNinja
|
|
||||||
cmake --build build/
|
|
||||||
working-directory: ./sim
|
|
||||||
- name: Run Simulator
|
|
||||||
run: ./build/sim_test
|
|
||||||
working-directory: ./sim
|
|
||||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -205,3 +205,5 @@ cython_debug/
|
||||||
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
||||||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||||
#.idea/
|
#.idea/
|
||||||
|
|
||||||
|
result
|
||||||
|
|
50
flake.nix
50
flake.nix
|
@ -29,6 +29,14 @@
|
||||||
system,
|
system,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
toolchain-pkgs = with pkgs; [
|
||||||
|
yosys
|
||||||
|
nextpnr
|
||||||
|
trellis
|
||||||
|
openfpgaloader
|
||||||
|
];
|
||||||
|
in
|
||||||
{
|
{
|
||||||
formatter = pkgs.nixfmt-rfc-style;
|
formatter = pkgs.nixfmt-rfc-style;
|
||||||
packages.default = pkgs.python3.pkgs.buildPythonPackage {
|
packages.default = pkgs.python3.pkgs.buildPythonPackage {
|
||||||
|
@ -45,32 +53,28 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
nativeCheckInputs = with pkgs; [
|
nativeCheckInputs =
|
||||||
python3.pkgs.pytestCheckHook
|
with pkgs;
|
||||||
yosys
|
[
|
||||||
nextpnr
|
python3.pkgs.pytestCheckHook
|
||||||
trellis
|
]
|
||||||
openfpgaloader
|
++ toolchain-pkgs;
|
||||||
];
|
|
||||||
|
|
||||||
};
|
};
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
packages = with pkgs; [
|
packages =
|
||||||
(python3.withPackages (
|
with pkgs;
|
||||||
pypkgs: with pypkgs; [
|
[
|
||||||
amaranth
|
(python3.withPackages (
|
||||||
amaranth-boards
|
pypkgs: with pypkgs; [
|
||||||
self'.packages.default
|
amaranth
|
||||||
]
|
amaranth-boards
|
||||||
))
|
self'.packages.default
|
||||||
yosys
|
]
|
||||||
nextpnr
|
))
|
||||||
# support package
|
ecpdap # easier to poke probes.
|
||||||
trellis
|
]
|
||||||
# loader
|
++ toolchain-pkgs;
|
||||||
openfpgaloader
|
|
||||||
ecpdap # easier to poke probes.
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue