EDAboard.com | EDAboard.eu | EDAboard.de | EDAboard.co.uk | RTV forum PL | NewsGroups PL

psl assertion for dynamically created signal length

Ask a question - edaboard.com

elektroda.net NewsGroups Forum Index - VHDL Language - psl assertion for dynamically created signal length

David Belohrad
Guest

Fri Dec 16, 2011 10:10 am   



Dear All,

I'd like to produce following like PSL construct:

psl assert always {StartPulsexS} |=> {PulsexS[*25]; not PulsexS};

However, the PulsexS duration is not given as constant, but its length
is setup by master entity. So ideally I'd like to have something like:

psl assert always {StartPulsexS} |=> {PulsexS[*PulseLengthxD]; not PulsexS};

where PulseLengthxD is a type of either
std_logic_vector/unsigned/integer... but apparently nothing like this
works in mentor modelsim....

How to write such constraint?

thanks

d.

HT-Lab
Guest

Fri Dec 16, 2011 11:40 am   



On 16/12/2011 09:10, David Belohrad wrote:
Quote:
Dear All,

I'd like to produce following like PSL construct:

psl assert always {StartPulsexS} |=> {PulsexS[*25]; not PulsexS};

However, the PulsexS duration is not given as constant, but its length
is setup by master entity. So ideally I'd like to have something like:

psl assert always {StartPulsexS} |=> {PulsexS[*PulseLengthxD]; not PulsexS};

where PulseLengthxD is a type of either
std_logic_vector/unsigned/integer... but apparently nothing like this
works in mentor modelsim....

How to write such constraint?

thanks

d.

I believe that PSL ranges must be static (resolved during
compile/elaboration), thus PulseLengthxD must be a constant. Search the
PSL reference manual for "Range"

Can you run multiple tests? In that case you can make PulseLengthxD a
top level generic and invoke Modelsim with vsim -GPulseLengthxD=xx


Hans
www.ht-lab.com

elektroda.net NewsGroups Forum Index - VHDL Language - psl assertion for dynamically created signal length

Ask a question - edaboard.com

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
RTV map EDAboard.com map News map EDAboard.eu map EDAboard.de map EDAboard.co.uk map Opony