In reply to dave_59:
Hi Dave,
I’m a little confused about this (what I’d think is simple) re-use concept that is apparently very practical. It seems like a primary goal of UVM is to create re-usable test environments. From your response, it seems like because of the factory, I can’t really re-use anything.
If I had a top level testbench that brought in a lower-level test environment multiple times, It sounds like I’d have to re-code and rename everything. E.g., say I had a block level testbench and I wanted to create a super-block testbench that incorporated multiple blocks.
superblock testbench contains:
block1 → block2 → block1 (2nd instance)
This seems like a common thing to do. Are you saying I’d have to copy block1, rename the environment and other components in the testbench so that I’d have something like a block1a and block1b? (i.e., instead of env, I’d have to create block1a_env and block1b_env).
This seems like a lot of work. If I didn’t plan on over-riding anything, would that make a difference?
Thanks for some further insight.
Brian