src = yosys;
});
- libresoc-pre-litex = final.callPackage (import ./nix/pre-litex.nix { version = getv self; }) { python3Packages = final.python37Packages; };
+ libresoc-verilog = final.callPackage (import ./nix/verilog.nix { version = getv self; }) { python3Packages = final.python37Packages; };
libresoc-ls180 = final.callPackage (import ./nix/ls180.nix { version = getv self; }) { python3Packages = final.python37Packages; };
libresoc-ecp5 = final.callPackage (import ./nix/ecp5.nix { version = getv self; }) { python3Packages = final.python37Packages; };
libresoc-ecp5-program = final.callPackage (import ./nix/ecp5-program.nix { version = getv self; }) { python3Packages = final.python37Packages; };
packages = forAllSystems (system: {
soc = nixpkgsFor.${system}.python37Packages.libresoc-soc;
- pre-litex = nixpkgsFor.${system}.libresoc-pre-litex;
+ verilog = nixpkgsFor.${system}.libresoc-verilog;
pinmux = nixpkgsFor.${system}.libresoc-pinmux;
ls180 = nixpkgsFor.${system}.libresoc-ls180;
ecp5 = nixpkgsFor.${system}.libresoc-ecp5;
debugNixpkgs = nixpkgsFor.${system};
});
- defaultPackage = forAllSystems (system: self.packages.${system}.pre-litex);
+ defaultPackage = forAllSystems (system: self.packages.${system}.verilog);
};
}
{ version }:
-{ writeShellScript, openocd, python3Packages, libresoc-ecp5, yosys, libresoc-pre-litex, libresoc-pinmux, pkgsCross
-, nextpnr, trellis }:
+{ writeShellScript, openocd, python3Packages, libresoc-ecp5, nextpnr, trellis }:
let
pythonWithEnv = python3Packages.python.withPackages (ps: with ps; [
{ version }:
-{ stdenv, python3Packages, yosys, libresoc-pre-litex, libresoc-pinmux, pkgsCross
+{ stdenv, python3Packages, yosys, libresoc-verilog, libresoc-pinmux, pkgsCross
, nextpnr, trellis }:
stdenv.mkDerivation {
- pname = "libresoc-versa-ecp5";
+ pname = "libresoc-versa-ecp5.v";
inherit version;
src = ../src/soc/litex/florent;
runHook preBuild
export PINMUX="$(mktemp -d)"
ln -s ${libresoc-pinmux} "$PINMUX/ls180"
- cp ${libresoc-pre-litex} libresoc/libresoc.v
+ cp ${libresoc-verilog} libresoc/libresoc.v
./versa_ecp5.py --sys-clk-freq=55e6 --build
runHook postBuild
'';
{ version }:
-{ stdenv, python3Packages, yosys, libresoc-pre-litex, libresoc-pinmux, pkgsCross }:
+{ stdenv, python3Packages, yosys, libresoc-verilog, libresoc-pinmux, pkgsCross }:
stdenv.mkDerivation {
pname = "libresoc-ls1804k";
runHook preBuild
export PINMUX="$(mktemp -d)"
ln -s ${libresoc-pinmux} "$PINMUX/ls180"
- cp ${libresoc-pre-litex} libresoc/libresoc.v
+ cp ${libresoc-verilog} libresoc/libresoc.v
./ls180soc.py --build --platform=ls180sram4k --num-srams=2 --srams4k
runHook postBuild
'';
+++ /dev/null
-{ version }:
-
-{ runCommand, python3Packages, libresoc-pinmux }:
-
-let script = ''
- mkdir pinmux
- ln -s ${libresoc-pinmux} pinmux/ls180
- export PINMUX="$(realpath ./pinmux)"
- python3 -m soc.simple.issuer_verilog \
- --debug=jtag --enable-core --enable-pll \
- --enable-xics --enable-sram4x4kblock --disable-svp64 \
- $out
-''; in
-runCommand "libresoc-ls1804k-pre-litex.v" {
- inherit version;
-
- nativeBuildInputs = (with python3Packages; [
- libresoc-soc
- ]) ++ [ libresoc-pinmux ];
-} script
--- /dev/null
+{ version }:
+
+{ runCommand, python3Packages, libresoc-pinmux }:
+
+let script = ''
+ mkdir pinmux
+ ln -s ${libresoc-pinmux} pinmux/ls180
+ export PINMUX="$(realpath ./pinmux)"
+ python3 -m soc.simple.issuer_verilog \
+ --debug=jtag --enable-core --enable-pll \
+ --enable-xics --enable-sram4x4kblock --disable-svp64 \
+ $out
+''; in
+runCommand "libresoc.v" {
+ inherit version;
+
+ nativeBuildInputs = (with python3Packages; [
+ libresoc-soc
+ ]) ++ [ libresoc-pinmux ];
+} script