Guest
Hello,
I'm probably overlooking something, because this should be pretty simple.
In my design I have several RAMs and I'd like to save the contents of some of them to a file when the simulation is done. The problem I'm having is that the RAMs are implemented in modules, but it is the top-level testbench who decides it's time to end the simulation.
So what I'm looking for is either
- a way to "hook" the $finish event from a submodule
- a way to invoke a task, defined in a submodule, from the top-level testbench
I'm using Icarus and I'm not too concerned about portability to other tools (and the code is not meant for synthesis)
Thanks for any help.
M.
I'm probably overlooking something, because this should be pretty simple.
In my design I have several RAMs and I'd like to save the contents of some of them to a file when the simulation is done. The problem I'm having is that the RAMs are implemented in modules, but it is the top-level testbench who decides it's time to end the simulation.
So what I'm looking for is either
- a way to "hook" the $finish event from a submodule
- a way to invoke a task, defined in a submodule, from the top-level testbench
I'm using Icarus and I'm not too concerned about portability to other tools (and the code is not meant for synthesis)
Thanks for any help.
M.