want to write assertions in a seperate VHDL file

A

anupam

hi,
I want to use assertions (PSL or may be OVL) for the verification of my
VHDL design but the problem is ,i don't know where to write assertions
.....
I can't disturb the RTL and moreover the VHDL doesn't have a "file
include " option in it so the only place i can write asserton, is the
testbench ,but its better to write them in a seperate file..

Is there a way in VHDL so that i can write my assertions in a seperate
file and and use them during simulations ( like a package or anything
of that kind ....)

regards,
Anupam Jain
 
A

Ajeetha

Anupam,
It is possible with PSL and/or SVA. PSL has this "vunit" that
can be used for this. SVA has a even more flexible "bind" for similar
purpose. OVL - tough to do, though one may be able to use XMR via
SignalSpy/hdl_xmr etc.

HTH
Ajeetha, CVC
 
H

Hans

Hi Anupam

anupam said:
hi,
I want to use assertions (PSL or may be OVL) for the verification of my

Go for PSL, not that difficult to learn and much much more powerful and
flexible than OVL but then again OVL is free and PSL cost an arm and a leg.
VHDL design but the problem is ,i don't know where to write assertions
....

you can either embed PSL in your VHDL comments, example:

-- psl default clock is rising_edge(clk);
-- psl property mutex is never (rd and wr);

Or put them all in a separate vunit file and link that file to your
architecture.
vunit bla_unit(bla_entity_name (bla_architecure_name)){
default clock is rising_edge(clk);
property mutex is never (rd and wr);
assert mutex;
}
I can't disturb the RTL and moreover the VHDL doesn't have a "file
include " option in it so the only place i can write asserton, is the
testbench ,but its better to write them in a seperate file..

In that case you have to go for a vunit. If you have access to Modelsim than
you can also use Signalspy within your vunit which is very handy!

Hans

www.ht-lab.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top