Hi all ,
I am instantiated a tlm port , base on the one condition it will be connected otherwise it is left open . when i left it open then i got this error [Connection Error] connection count of 0 does not meet required minimum of 1 . Is there any way by which i can solve my purpose .
Almost all of UVM pre-defined TLM ports required min/max connection ports, most of them need at least 1 port connected to it, as I known, only one kind of TLM port can be leave unconnected is analysis family port. Leaving other kind of TLM port unconnected are prohibited.
So I suggest:
- Use analysis port instead, but note that you must confirm that using analysis port is same as your intend, since the semantic of analysis port may be different from the port you used originally.
- Define a dummy port connected to the unconnected port, avoiding UVM error.
- Re-define what you wanted TLM port by yourself without setting minimal connection requirement, i.e. do not use well-defined port by UVM.