I was wondering if the coverage package is supposed to be used only in test-benches (All the examples is the user guide are in entity called tb….) or if the methodology allows adding coverage code in an RTL design to check coverage without affecting the synthesis of that design.
Currently there are no metacomments (– Synthsis off) to allow usage during synthesis. Not sure if it would work or not since it does require the methods of the protected type to be visible.
I have instead used VHDL-2008 external names to reach down into the design from the testbench level.