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

Verilator doesn't recognize macros #579

Open
smunaut opened this issue Oct 12, 2024 · 0 comments
Open

Verilator doesn't recognize macros #579

smunaut opened this issue Oct 12, 2024 · 0 comments

Comments

@smunaut
Copy link
Contributor

smunaut commented Oct 12, 2024

Description

If you include a macro that has liberty file, yosys will parse the liberty file and know about the macro and its ports just fine. But Verilator won't because it doesn't parse liberty files ...

Expected Behavior

No errors.

Environment report

kernel: Linux
kernel_version: 5.10.0-19-cloud-amd64
supported: True
distro: debian
distro_version: 11
python_version: 3.9.2
python_path:
  - /mnt/pdk/tt-local-harden/venv/bin
  - /usr/lib/python39.zip
  - /usr/lib/python3.9
  - /usr/lib/python3.9/lib-dynload
  - /mnt/pdk/tt-local-harden/venv/lib/python3.9/site-packages
tkinter: True
container_info:
  engine: docker
  version: 27.3.1
  conmon: False
  rootless: False
nix_info:
  version_string: nix (Nix) 2.15.1
  channels:
    nixpkgs: https://nixos.org/channels/nixpkgs-unstable
  nix_command: False
  flakes: False

Reproduction material

n/a

Relevant log output

%Error: /home/runner/work/tt09-atari-2600/tt09-atari-2600/src/tt_um_rejunity_atari2600.v:425:3: Cannot find file containing module: 'rom_2600'
      425 |   rom_2600 rom_I (
          |   ^~~~~~~~
    %Error: /home/runner/work/tt09-atari-2600/tt09-atari-2600/src/tt_um_rejunity_atari2600.v:425:3: This may be because there's no search path specified with -I.
      425 |   rom_2600 rom_I (
          |   ^~~~~~~~
            ... Looked in:
                 rom_2600
                 rom_2600.v
                 rom_2600.sv
                 obj_dir/rom_2600
                 obj_dir/rom_2600.v
                 obj_dir/rom_2600.sv
    %Error: Exiting due to 2 error(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant