HSD-ESD / VHDL-by-HGB

VHDL-by-HGB is a VS-Code extension for VHDL.
https://hsd-esd.github.io/VHDL-by-HGB/
GNU General Public License v3.0
5 stars 0 forks source link

Error in macro processAsync #10

Closed maleiter closed 5 months ago

maleiter commented 6 months ago

The macro processAsync generates the following code:

begin
    if inRstAsync = '1' then

    elsif rising_edge(iClk) then

    end if;
end process;

Given the name of the signal inRstAsync, it should check if inRstAsync = '0' instead of inRstAsync = '1' because the n in inRstAsync indicates negative logic.

Sonscho commented 5 months ago

A "inRstAsync" should now be checking "not('1')" as the default.