redolution
Newbie level 2
- Joined
- Dec 12, 2014
- Messages
- 2
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 16
In the testbench, what I tried to do is
module_name=adder;
module_name
module_name_0(...port-mapping...);
By doing this, every time I can just change the module_name, then the dut is done automatically, i.e., if module_name=adder, then the testbench will test adder, if module_name=divider then the testbench will test divider.
I've tried parameter and 'define, all didn't work. Please help!
Thank you!
module_name=adder;
module_name
module_name_0(...port-mapping...);
By doing this, every time I can just change the module_name, then the dut is done automatically, i.e., if module_name=adder, then the testbench will test adder, if module_name=divider then the testbench will test divider.
I've tried parameter and 'define, all didn't work. Please help!
Thank you!