Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

VHDL "assert" vs "report"

Status
Not open for further replies.

shaiko

Advanced Member level 5
Joined
Aug 20, 2011
Messages
2,644
Helped
303
Reputation
608
Reaction score
297
Trophy points
1,363
Activity points
18,302
What is the difference between "assert" & "report" in VHDL ?
Please give an example of how the 2 are used.
 

I believe report is equivalent to assert false. However, there may be a bigger difference is the way that tools collect coverage data. Usually, you want to know the percentage of assert statements that evaluated true versus the total number of assert statements. And you may want to know the percentage of assert statements that never evaluated true or false. However, report statements are just informational messages with varying severities.
 
  • Like
Reactions: shaiko

    shaiko

    Points: 2
    Helpful Answer Positive Rating
What is the difference between "assert" & "report" in VHDL ?
Please give an example of how the 2 are used.
- Assert basically wraps a condition around when the report statement is executed.
- Assert can be used as a concurrent statement, report cannot.

assert not(my_sig /= other_sig and rising_edge(clock)) report "OOPS! my_sig equals other_sig" severity ERROR;

report "This is a basic report...make sure you put this inside a process";
report "This is a report with a severity level which can be used to stop the sim" severity ERROR;

Kevin Jennings
 
  • Like
Reactions: shaiko

    shaiko

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top