Configuration parameters of an UVC for a test


Hey all, I hope you’re doing well !
I built an AXI UVC, and I created a package for diffrent parametres (addr_width, data_width, and I added parametres to insert a delay for axi channels: AW_Ready, W_ready… in the same package) Now i want to create a sequences with no delay (AW_Read=0, W_ready=0) and onther sequence with delay (assign non null values to AW_Ready, W_ready). But i dont know how to parametrize theses parametres depending on sequence ( with delay and without delay). Any ideas ?
Thanks in advance.

In reply to abdelaali_21:

I tried to create a class cfg where i defined these parametrs, then i create this clas in base sequencen, then i assign to them the values i want but i get the error :
Type name “axi_delay_cfg” already registered with factory. No string-based lookup support for multiple types with the same type name

In reply to abdelaali_21:

Hi abdelaali_21,

It’s better to show some code in your question so that the others could help you.
But generally, why you define the configuration class in the base sequence?! instead, you can have it in the environment and set it in the configuration database, and then in the sequencer make a handle for that configuration class and get it from the database, so that each sequence executed on that sequencer could access it.