Search code examples
system-veriloguvm

Connection from many port(in different agents) to one export (in scoreboard)


I have a many(port) to one(export) situation with my agents and the scoreboard. My doubt is how will I make sure that only one out of the many ports can write into the export at an instant of time so that I don't get any complications or lost transactions. any help/advice is appreciated. Thank you


Solution

  • As you mentioned, the ports are called 'serially' so you shouldn't have any lost transactions. Whenever the monitor in the agent is ready to broadcast, it'll call the port write function to which the scoreboard is a subscriber.

    However, I don't think there's any guarantee in which order the port write functions are called, so you may still have complications depending on what you're trying to achieve.