Separate code of generator and driver

Hello All,

Please help in this regard!!!
What is the need to have seperate GENERATOR and DRIVER components in your SV ENV. Why dont you club them or develop both as a single component in SV ENV.

Thanks in advance.

Regards
Sunil

Object oriented programming is all about splitting code into individual units that have few responsibilities (ideally only one). This way they are easier to develop/test/maintain.

In reply to Tudor Timi:

Thanks Tudor!!!.

Regards
Sunil

In reply to susharma:

I completely agree with Tudor but then again it all depends on your design complexity. If your DUT is of less complex and you think the integrated Generator and Driver code is manageable then club it.