Ovm_field_int - maximum field size

A variable of type bit is used in monitor transaction and its width is 4096. This variable is registered using ovm_filed_int macro.
Now I got requirement to extend the variable width more than 4096bits. But tool has limitation and throws error “maximum field size is 4096, truncating”
I thought changing variable to array type but it’s been already used in multiple projects and I am helpless.
Any suggestions are welcome.

Thanks
Giri

Try this in a file that gets parsed BEFORE your OVM library.

`define OVM_MAX_STREAMBITS 5000

(You can also try passing this to your compiler prior to the OVM file via +define).

Let us know if this resolves it.

Ajeetha, CVC

In reply to Ajeetha Kumari CVC:

We strongly discourage changing this the size of this as it impacts all ovm_int_fields.

Even stronger recommendation is not to use any of the field macros - they are terrible for performance. See http://verificationhorizons.verificationacademy.com/volume-7_issue-2/articles/stream/are-ovm-and-uvm-macros-evil-a-cost-benefit-analysis_vh-v7-i2.pdf

In reply to dave_59:

It may not be the most ideal way it terms of instructions/time, but it helps remove human error from any functions written. I change the (UVM) MAX_STREAM_BITS locally and we have not had many issues. The speed of our testbenches is often not the lagging factors in our simulations.