Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: add support break always on level change #64

Open
cjmyers opened this issue Nov 8, 2016 · 0 comments
Open

FEATURE: add support break always on level change #64

cjmyers opened this issue Nov 8, 2016 · 0 comments

Comments

@cjmyers
Copy link
Contributor

cjmyers commented Nov 8, 2016

The always sensitivity list should allow break to happen when a =
continuous relation changes value to enable examples like the one below =
to be encoded.

Begin forwarded message:
=20
From: V.Dubikhin [email protected]
Subject: Re: Link
Date: August 31, 2016 at 7:24:54 PM GMT+1
To: Chris Myers [email protected]
=20
Property:
=20
=20
property ADC_Freq{
real adc_in;
real adc_out;
=20
bool high;
bool low;
=20
always {
=20
if ((adc_in >=3D 0)) {
=20
if (~high) {
high =3D true;
wait(adc_out >=3D 0);
low =3D false;
}
=20
assert(adc_out>=3D0, 5);
assert(adc_out<0, 10);
} else {
if (~low) {
low =3D true;
wait(adc_out >=3D 0);
high =3D false;
}
=20
assert(adc_out>=3D0, 10);
assert(adc_out<0, 5);
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant