electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

SVA assertions question


Post new topic  Reply to topic    EDAboard.com Forum Index -> ASIC Design Methodologies & Tools (Digital) -> SVA assertions question
Author Message
sree205



Joined: 13 Mar 2006
Posts: 421
Helped: 30


Post25 Aug 2008 7:59   

passing a parameter to an sva assertions


Hi all,
I'm trying to come up with an assertion using systemverilog with a small difference. a typical property is,

property p_tcnst;
@(posedge clk)
$fell (variable_name) |->
##tcnst $rose (variable_name);
end property

In this property, would it be possible to substitute the tcnst parameter with a RTL variable?
Back to top
ankurgupta74



Joined: 25 Aug 2008
Posts: 3


Post26 Aug 2008 7:06   

Re: SVA assertions question


no. it is a constant.
Back to top
boardlanguage



Joined: 06 Apr 2007
Posts: 96
Helped: 4


Post26 Aug 2008 16:17   

Re: SVA assertions question


Code:
property p_tcnst;
@(posedge clk)
$fell (variable_name) |->
##[b]tcnst[/b] $rose (variable_name);
end property


You may already know this, but but tcnst can be a declared parameter or other compile-time constant. (it doesn't have to be a literal constant.)

Code:
parameter int blah_start = 94;
parameter int blah_end  = 121;

// tcnst = (#cycles) pulse-width between $fell and $rose
parameter int tcnst = blah_end - blah_start;
Back to top
sree205



Joined: 13 Mar 2006
Posts: 421
Helped: 30


Post27 Aug 2008 7:39   

SVA assertions question


The problem is, even if tcnst is a parameter, i won't be able to change it at run time. i'm not able to change the tcnst value based on some RTL signal value.
Back to top
Google
AdSense
Google Adsense




Post27 Aug 2008 7:39   

Ads




Back to top
natg9



Joined: 17 Jul 2008
Posts: 57
Helped: 7


Post16 Mar 2009 8:21   

Re: SVA assertions question


Hi friends

i am looking for some material to study System Verilog Assertions
please share if you have any documents

thanks in advance

regards
natg
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> ASIC Design Methodologies & Tools (Digital) -> SVA assertions question
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
SVA (18)
How about OVA, SVA in the industry (2)
PSL equivalent for SVA action block (2)
systemverilog assertions (7)
Assertions possible in Specman (2)
System Verilog Assertions (1)
Logic synthesis with assertions? (7)
$rise and $fell in assertions (1)
Difference b/w Procedural and Concrent Assertions (2)
How to add assertions in the simvision waveform viewer (10)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS