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

[Feature Request] Recursive Symbol Hover extraction #264

Open
SethGower opened this issue Feb 28, 2024 · 0 comments
Open

[Feature Request] Recursive Symbol Hover extraction #264

SethGower opened this issue Feb 28, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@SethGower
Copy link
Contributor

I don't know if the title is a great description, I can change it after. It would be nice if when you hover over a constant value that is used somewhere, if it continues recursing up the tree to a concrete value. For example, take the following example

library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;

entity test is
    generic (
        G_INPUT_SIZE : natural := 32
    );
    port (
        i_clk    : in std_logic;
        i_input  : in std_logic_vector(G_INPUT_SIZE - 1 downto 0);
        o_output : out std_logic
    );
end entity test;
architecture behav of test is

    constant C_CONSTANT_A : natural := G_INPUT_SIZE;
    constant C_CONSTANT_B : natural := C_CONSTANT_A / 2;

begin

    o_output <= i_input(C_CONSTANT_B);

end behav;

If you were to hover over the C_CONSTANT_B in the o_output assignment, it would return C_CONSTANT_A / 2. This isn't super helpful, it would be nice if it would (as best as possible) land on a concrete value, in this case it would be 16. If it were to show the different steps it took, that'd be nice. Something like showing

16
C_CONSTANT_B = C_CONSTANT_A / 2
C_CONSTANT_A = G_INPUT_SIZE
G_INPUT_SIZE = 32

That might be as far as you could go, since the module could be instantiated multiple times, with different values of G_INPUT_SIZE.

@SethGower SethGower changed the title Recursive Symbol Hover extraction [Feature Request] Recursive Symbol Hover extraction Feb 28, 2024
@Schottkyc137 Schottkyc137 added the enhancement New feature or request label Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants