Macro Natural Docs support
Status: Beta
Brought to you by:
mballance
In the code below, mousing over "DO_IT" in module m() doesn't give any natural docs information. It does give the definition of the macro.
What is preferred (1, the second or both?)
I can see where in most usage cases I just want to know that the the definition of NUM_PINS is 3, but when you have a complex macro, having some help on what the macro does would be more useful than the actual definition of the macro.
~~~~
/
* Macro: DO_IT (arg1, arg2)
* This function will display args 1 and 2
*
* Arguments:
* arg1 - String - The first message to display
* arg2 - integer - The error count
* Example:
* `DO_IT ("There is an error somewhere", 5);
/
`define DO_IT(arg1,arg2)\ $display (
arg1
);\ $display (arg2
);module m();
`DO_IT (arg1,
arg2);
endmodule
Last edit: StevenAZ 2018-02-22
I very much agree on examples. Look at svunit for testing
On Feb 22, 2018 10:06 AM, "StevenAZ" stevenaz@users.sourceforge.net wrote:
Related
Feature Requests: #136
I took a look at the C++ implementation in Eclipse. Looks like the implementation is to simply expand the macro when you mouse over it, not to offer up any natural docs like information.