ned_zeppelin
Newbie level 6
I am using Verilog 2001. I have some questions regarding partitioning a testbench into multiple files.
I usually just make a separate testbench for every module, but in this case there are number of modules that all rely on the same clock signals (and each other). Having separate testbenches means having to apply the same changes many places any time a module or signal name is changed.
How can I have one top level testbench that generates the clock signals , instanciates the various modules etc., but use separate files for the various test-cases/stimuli (and simply `include them in the "main" testbench)?
As far as I know, it is not possible to make a global wire/reg, outside of a module? I am used to having .vh files for defines and parameters, but in this case, "global" signals is what I am looking for. Is there a way to do this? Or am I barking up the wrong tree here?
As this is a common verification-scenario, I am really just looking for good advice, so I can begin to structure my testbenches better.
Any good tips?
I usually just make a separate testbench for every module, but in this case there are number of modules that all rely on the same clock signals (and each other). Having separate testbenches means having to apply the same changes many places any time a module or signal name is changed.
How can I have one top level testbench that generates the clock signals , instanciates the various modules etc., but use separate files for the various test-cases/stimuli (and simply `include them in the "main" testbench)?
As far as I know, it is not possible to make a global wire/reg, outside of a module? I am used to having .vh files for defines and parameters, but in this case, "global" signals is what I am looking for. Is there a way to do this? Or am I barking up the wrong tree here?
As this is a common verification-scenario, I am really just looking for good advice, so I can begin to structure my testbenches better.
Any good tips?