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.

Asserion in Systemverilog with Questasim

Status
Not open for further replies.

shahsanket24

Junior Member level 3
Joined
Nov 24, 2011
Messages
27
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,434
Hello all...

I have written simple assertion in SV... Can anyone tell me how to execute the same in Questa...? In the sense exact command or steps to be followed to exexcute it...?

Thanks to all...
 

Hello all...

I have written simple assertion in SV... Can anyone tell me how to execute the same in Questa...? In the sense exact command or steps to be followed to exexcute it...?

Thanks to all...

Eg
Design file -example.sv
top module -top

Code:
vlog example.sv 
vopt +acc=a top -o dbgver
vsim -assertdebug dbgver
atv log -enable /top

run 500

view assertion
 
  • Like
Reactions: shahsanket24

    V

    Points: 2
    Helpful Answer Positive Rating

    shahsanket24

    Points: 2
    Helpful Answer Positive Rating
Thank u Very much blooz....
But i want to know the significance of the command- atv log -enable /top..
Because even if i am excluding this i am getting assertion error message if i am intentionally inserting an error to my code....
 

When complex assertions are triggered, it can be challenging to determine the cause of the failure . Assertions can be logged to the Wave window where activation, success, and failure states are easily identified. Since assertions can have multiple threads in concurrent evaluation,Questasim includes an innovative Assertion Thread Viewer, which graphically shows the complete evaluation of an activated assertion.

---------- Post added at 10:44 ---------- Previous post was at 10:42 ----------

Thank u Very much blooz....
But i want to know the significance of the command- atv log -enable /top..
Because even if i am excluding this i am getting assertion error message if i am intentionally inserting an error to my code....

atv log -enable /top.. Here top is supposed to be the name of top module ,replace it with your top module .
 

Screenshot.png

By executing i am getting error so can u plz help me in rectifing it...?
 

Screenshot-1.png

I have use design module name only eventhough it is showing above error.
 

View attachment 65621

I have use design module name only eventhough it is showing above error.
I think you did n't use the
Use the +acc=a argument with the vopt command
or -voptargs=+acc=a argument with
the vsim command


atv log
This command enables or disables assertion thread viewing (ATV) for the specified assertion.
Multiple assertions may be specified by their pathnames.

Prerequisites
Use the +acc=a argument with the vopt command or -voptargs=+acc=a argument with
the vsim command



•Use the -assertdebug argument with the vsim command
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top