Skip to content

Commit

Permalink
Add package for ibex-cosim
Browse files Browse the repository at this point in the history
  • Loading branch information
nbdd0121 committed Jan 11, 2024
1 parent 7d6f057 commit e3a7799
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
verilator_ot = import ./verilator {inherit pkgs;};
python_ot = pkgs.callPackage ./python_ot {inherit inputs;};
bazel_ot = pkgs.callPackage ./bazel_ot {};

ibex-cosim = pkgs.callPackage ./ibex-cosim.nix {};
}
// pkgs.lib.optionalAttrs (pkgs.system == "x86_64-linux") {
lowrisc-toolchain-gcc-rv32imcb = pkgs.callPackage ./lowrisc-toolchain-gcc-rv32imcb.nix {};
Expand Down
28 changes: 28 additions & 0 deletions pkgs/ibex-cosim.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
fetchFromGitHub,
stdenv,
dtc,
}:
stdenv.mkDerivation rec {
pname = "ibex-cosim";
version = "15fbd56";

src = fetchFromGitHub {
owner = "lowRISC";
repo = "riscv-isa-sim";
# branch ibex_cosim
rev = "15fbd5680e44da699f828c67db15345822a47ef6";
hash = "sha256-LK/IXmRHrGxaMRudcUYmeZV5eXU8eH7ruIw7kliumdY=";
};

nativeBuildInputs = [
dtc
];

configureFlags = [
"--enable-commitlog"
"--enable-misaligned"
];

enableParallelBuilding = true;
}

0 comments on commit e3a7799

Please sign in to comment.