Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A package issue about yosys with plugins yoys-synlig #324959

Closed
dinduck opened this issue Jul 6, 2024 · 0 comments
Closed

A package issue about yosys with plugins yoys-synlig #324959

dinduck opened this issue Jul 6, 2024 · 0 comments

Comments

@dinduck
Copy link

dinduck commented Jul 6, 2024

env

  • nixpkgs - 24.05

There i see https://github.com/NixOS/nixpkgs/tree/nixos-24.05/pkgs/development/compilers/yosys

where i use yosys.withPlugins to add synlig

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
    flake-utils.url = "github:numtide/flake-utils";
  };
  outputs = {
    self,
    nixpkgs,
    flake-utils,
  }:
    flake-utils.lib.eachDefaultSystem
    (
      system: let
        pkgs = import nixpkgs {
          inherit system;
          config.allowBroken = true;
        };
      in {
        # flake contents here
        devShells = {
          default = pkgs.mkShell {
            buildInputs = with pkgs; [
              openfpgaloader
              python312Packages.apycula
              (yosys.withPlugins [yosys-synlig])
              # yosys-synlig
              nextpnrWithGui
            ];
          };
        };
      }
    );
}

when i open yosys
image

there are 2 choice to solve it in my mind

so the tip is to make plugin's name and $outshare/plugins/.so be in same

T1

alter the pligins filed in synlig.nix

i can use `plugin -i systemverilog' to load it

image

T2

alter the installPhase to let it named 'synlig.so' same as plugin name
image

where use plugin -i synlig loaded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant