Benchtest dependign on configuration

O

Olaf Petzold

Guest
Hello,

is there a way to find out inside the bench test which configuration is
used/mapped for the dut?
E.g. a feature is generated by generic and I want to use the same TB for
both (feature on/off).

Thanks
Olaf
 
Olaf Petzold wrote:
Hello,

is there a way to find out inside the bench test which configuration is
used/mapped for the dut?
E.g. a feature is generated by generic and I want to use the same TB for
both (feature on/off).
I would have the testbench drive
the DUT generic map with
whatever generic value is appropriate.

-- Mike Treseler
 
Thanks Mike,

Hello,

is there a way to find out inside the bench test which configuration
is used/mapped for the dut?
E.g. a feature is generated by generic and I want to use the same TB
for both (feature on/off).


I would have the testbench drive
the DUT generic map with
whatever generic value is appropriate.
you mean to instance two duts, configured by generic map each? No use of
configurations to swap between both?

Thanks
Olaf
 
Olaf Petzold wrote:

you mean to instance two duts, configured by generic map each? No use of
configurations to swap between both?
I would either test
two direct instances in one sim

vsim test_foo;

or script multiple sims with appropriate
generic constants driven from the command line.

vsim -Gsome_feature=true test_foo;
vsim -Gsome_feature=false test_foo;

-- Mike Treseler.
 

Welcome to EDABoard.com

Sponsor

Back
Top