Ports Table lumped with Generics Table when including struct parameter
Describe the bug If a parameter is of type structure and if it is the last parameter in the parameter list, when generating the documentation, the ports are lumped into the Generics table and the Ports table doesn't get generated.
Specifically, I believe the problem has to do with the interpretation of setting the initial values of the struct in the parameter list.
Another Issue should be opened regarding the interpretation of the struct as a parameter. The Generic name (struct name) isn't populated correctly, and the Types and Values don't correlate. i.e. y is a struct member of the parameter, not a Generic/Parameter
To Reproduce Add a parameter that is a structure to the end of the parameter list
i.e.
module test
#( parameter CLK = 100
, parameter param_t PARAM1 = '{x: 8'h00, y: 8'h00, default: '0} //! 1st param structure
)
However, if an empty line is left between the last parameter and the closing ) OR the structure parameter is NOT the last parameter listed in the order, then the Port table gets generated
#( parameter CLK_MHZ = 100.0 //! Logic Clock Frequency
, parameter param_t PARAM1 = '{x: 8'h00, y: 8'h00, default: '0} //! 1st param structure
)
Code Code to reproduce the error.
Please complete the following information:
- OS: Ubuntu 18.04
- VSCode version 1.82.2
Screenshots
If empty line is after struct parameter then it generates Port table
Additional context