sphinx-vhdl icon indicating copy to clipboard operation
sphinx-vhdl copied to clipboard

Extract the comment from package body too

Open yangyt96 opened this issue 6 months ago • 0 comments
trafficstars

package math_pack is

    function log2 parameter (a : unsigned) return integer;
end package math_pack;

package body math_pack is
    
    -- This function calculates the base 2 logarithm of a number.
    --
    -- .. vhdl:parameters:: log2
    --
    --     a : in unsigned
    --         The number of which to calculate the logarithm
    function log2 parameter(a : unsigned) return integer is begin
        return to_integer(a);
    end function;

end package body;

Allow the tool to extract the info from the package body too

yangyt96 avatar May 14 '25 10:05 yangyt96