| Login | | Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name. | |
| Who's Online | There are currently, 45 guest(s) and 0 member(s) that are online.
You are Anonymous user. You can register for free by clicking here | |
 | |
|
Verification Guild: Forums |
|
| View previous topic :: View next topic |
| Author |
Message |
VeraNewbie Newbie


Joined: Jul 26, 2004 Posts: 1
|
Posted: Mon Jul 26, 2004 2:20 pm Post subject: Reusing C tests and Verilog tests in Vera |
|
|
Hi,
I have a Verilog BFM and C BFM which I want to reuse in
my new Vera Environment . I also want to reuse the existing
tests in Verilog and C in Vera. What is the best way to go about it.
Thanks,
VeraNewbie |
|
| Back to top |
|
 |
verif_eng Newbie


Joined: Jul 27, 2004 Posts: 1
|
Posted: Thu Jul 29, 2004 1:48 am Post subject: Reusing C tests and Verilog tests in Vera |
|
|
Dear VeraNewbie,
It is possible to reuse your existing Verilog BFM and C BFM code in
Vera. Vera is able to call both Verilog tasks and C functions.
For example, for Vera to call an existing Verilog task found
in a BFM, do this:
hdl_task write(bit [3:0] val) "design_test_top.dut.write_bus";
program test {
write(2);
}
For Vera to call an existing C function found in a BFM, do this:
extern "C" function integer write(bit [3:0] val);
program test {
write(2);
}
Via the same mechnism, Vera can call tests written
in Verilog or C as well.
Everycase is different and this might not address your
environment. If so, please feel free to us at
vera-support@synopsys.com. Thanks! |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
| |
|
|