I am developing a verification environment for a DUT that has cache memory in it. I would like to model that memory in my environment and make it accessible to various components at different levels of hierarchy. What is the best way to add "hooks" for the same? This is what my env looks like.
class top_env extends ovm_env;
I want the mem_model to be accessible to all the components in the design at any given time.