Reply To: Patch: Support for random integer_vector

Why OSVVM™? Forums OSVVM Patch: Support for random integer_vector Reply To: Patch: Support for random integer_vector

#739
Andy Jones
Member

Yeah, mentor graphics survey indicates design verification takes more than twice the  effort of design itself (70% of total project)

Just because you have a default parameter does not mean that you can’t have a simple check on the parameter and choose an optimal algorithm base on its value. 

With separate functions you have to test the erstwhile default value case on two different functions (uless you test the value in the larger function and call the smaller function from within the larger one.)

But consistency with precedents is extremely important for usability. Even if defaulted parameters are not in the optimal order to allow simpler use of positional association, they still come in handy for named association. 

Andy