Skip to content

Commit

Permalink
update yosys
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanG077 committed May 5, 2024
1 parent 0c2bd3b commit 401d069
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 27 deletions.
13 changes: 0 additions & 13 deletions nix/patches/yosys/fix-clang-build.patch

This file was deleted.

4 changes: 2 additions & 2 deletions nix/yosys-abc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ clangStdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "YosysHQ";
repo = "abc";
rev = "896e5e7dedf9b9b1459fa019f1fa8aa8101fdf43";
sha256 = "sha256-sMBCIV698TIvU/sgTwgPFWDC1kl2TeGv+3pQ06gs7aM=";
rev = "03da96f12fb4deb153cc0dc73936df346ecd4bcf";
sha256 = "sha256-1VHI03S3POkD+LJzBdnhLy1GPzAcbEzctbUhnUPd21k=";
};

patches = [
Expand Down
4 changes: 2 additions & 2 deletions nix/yosys-eqy.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ clangStdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "yosyshq";
repo = "eqy";
rev = "5791c90fa6d6076b3c1ff37a3bd65e66f7748230";
sha256 = "sha256-zgD8jjtK3pvHxOWvCpFyIuLYsJS5AQMrSARcqjFm9Js=";
rev = "eeb03760a9caaf10edff3cfc707a17b20453b7ae";
sha256 = "sha256-Xb7mR3J/6AdP87IForJo3dIg2XAklcyyz8EYtNjzxEM=";
};

makeFlags = [
Expand Down
4 changes: 2 additions & 2 deletions nix/yosys-sby.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ yosys.stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "yosyshq";
repo = "sby";
rev = "7415abfcfa8bf14f024f28e61e62f23ccd892415";
sha256 = "sha256-+h+Ddv0FYgovu4ee5e6gA+IiD2wThtzFxOMiGkG99g8=";
rev = "7dd287f287a4e6ed5ea37026df90276b360482b8";
sha256 = "sha256-B5CpS3fXdRv7hDjpNsT1k/287ZLM6dIVCPkf0Cfbb+Y=";
};

makeFlags = [
Expand Down
10 changes: 5 additions & 5 deletions nix/yosys-synlig-sv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ clangStdenv.mkDerivation rec {
dylibs = ["synlig-sv"];

src = fetchFromGitHub {
owner = "chipsalliance";
owner = "rowanG077";
repo = "synlig";
rev = "fe8f61f1480faa1ea63377c6f60de74e5dca2713";
sha256 = "sha256-IBydjoVCYLAb8fNnjgUC1FthScp/CMP17ljCpSEhErU=";
rev = "c342ac4ca66fd2dbee5e1122d1a0380a3d13d0ef";
sha256 = "sha256-DpXxU+SdP8DybN2yyHlzLk65F50oOt8mxGijGeWyKSM=";
};

buildInputs = [
yosys
yosys.py3env
Expand All @@ -51,9 +52,8 @@ clangStdenv.mkDerivation rec {
''${ts}.src_dir := ''$(shell yosys-config --datdir/include)
''${ts}.mod_dir := ''${TOP_DIR}third_party/yosys_mod/
'';

postPatch = ''
sed -i 's/AST::process(design, current_ast,/AST::process(design, current_ast, false,/' frontends/systemverilog/uhdm_common_frontend.cc
rm third_party/Build.surelog.mk
cp ${yosys-mk} third_party/Build.yosys.mk
'';
Expand Down
5 changes: 2 additions & 3 deletions nix/yosys.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
src = fetchFromGitHub {
owner = "YosysHQ";
repo = "yosys";
rev = "543faed9c8cd7c33bbb407577d56e4b7444ba61c";
sha256 = "sha256-mzMBhnIEgToez6mGFOvO7zBA+rNivZ9OnLQsjBBDamA=";
rev = "0f9ee20ea2c9b377f9b28b862f77b197e6485e00";
sha256 = "sha256-gFg17sRAIF+61akeBHSxOU27meNV2/PRHRGMrXSjeMY=";
};

nativeBuildInputs = [pkg-config bison flex];
Expand All @@ -78,7 +78,6 @@
};

patches = [
./patches/yosys/fix-clang-build.patch
./patches/yosys/plugin-search-dirs.patch
];

Expand Down

0 comments on commit 401d069

Please sign in to comment.