-
Notifications
You must be signed in to change notification settings - Fork 11
Description
I usually use VS Code mostly in terms of file editing; normally I work in parallel with Vivado (a Xilinx tool used to synthesize VHDL code for their products) because currently there is no way for VS Code to identify whether an entity has been included correctly within the project, or even within a specific folder.
That being said, my idea was having a folder indexing which would be capable of reading the code and being able to identify if the component I'm trying to instantiating somewhere is either present within my path, and if it is coherent with the entity definition itself.
For example:
...
architecture rtl of myTop is
component myComponent
port (
port1: in std_logic;
port2: in std_logic;
port3: in std_logic;
port4: out std_logic
);
end component;
signal port1, port2, port3, port4: std_logic;
...
begin
i_myComp: myComponent
port map (
port1 => port1,
port2 => port2,
--port3 => port3, (this is commented out so it's not declared)
port4 => port4
);
It would be nice to identify the fact that there is no port3 associated to i_myComp.
It would be probably a bit more complicated when considering the possibility that port3 or any other port may also have a default value associated, but I guess it would be a start anyway.
Would this make sense to you @richjyoung ?