On monitor and scoreboard connection

hello guys i have a query please help me out.

i have 2 monitor m1 and m2. m1 is have write_input and m2 is having write_output function and now want to connect two monitor with scorboard with diffrent write function in monitor with single function name write in scoreboard.

You can connect to different monitors analysis ports to the same scoreboard, but you will probably need some way to distinguish which monitor is doing the write. See TLM Implementation Port Declaration Macros