Jump to content

How to replicate the code in class?

Recommended Posts

Hi All,

I am trying to keep my testbench scale able as we do in RTL files using genvars.

I want to have queues of a transaction class inside my scoreboard class. e.g.

monitor_trans exp_trans_port1[$];

monitor_trans exp_trans_port2[$];

monitor_trans exp_trans_port3[$];

monitor_trans exp_trans_port4[$];


I want to scale them in such a way that if you modify the parameters then such instantiations may increase or decrease.

To achieve this I cannot use "for loop" here (It gives compilation error).

I tried using `define portname(name) monitor_trans name`` [$] ==> This also did not work.

Please let me know if you have some idea on this?

Let me know if more clarification required.


Peer Mohammed

Link to post
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...