sphinx-vhdl
sphinx-vhdl copied to clipboard
Extract the comment from package body too
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