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

Go to definition doesn't work for "spi" module name #227

Open
hi0t opened this issue May 31, 2024 · 1 comment
Open

Go to definition doesn't work for "spi" module name #227

hi0t opened this issue May 31, 2024 · 1 comment

Comments

@hi0t
Copy link

hi0t commented May 31, 2024

OS: Ubuntu 22.04 (WSL)
Vscode: 1.89.1
SystemVerilog: 0.13.9

  1. Create an empty project with two modules:
module top (
    input clk
);

spi spi(clk);

endmodule
module spi(
    input clk
);

endmodule
  1. Click the index button
  2. Try to go to the spi module from the top module and nothing happens.

If you rename the spi module, for example, to xyz, then "Go to definition" starts to work. What is this magical name "spi"?

@calint
Copy link

calint commented Jun 25, 2024

The problem seems to be when the module instance has same name as the module. Having the same issue.

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

2 participants