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

assert syntax errors #229

Closed
veripoolbot opened this issue Mar 31, 2010 · 2 comments
Closed

assert syntax errors #229

veripoolbot opened this issue Mar 31, 2010 · 2 comments
Assignees

Comments

@veripoolbot
Copy link
Collaborator


Author Name: Rick Ramus
Original Redmine Issue: 229 from https://www.veripool.org
Original Date: 2010-03-31
Original Assignee: Wilson Snyder (@wsnyder)


For the following assert statement:
define ASSERT1(sig,rst) assert final(rst || $onehot0(sig)) ASSERT1(sig,rst)

I get the following error:
Syntax error, unexpected "final", expecting "property"

For the following assert statement:
define ASSERT2(prop,clk,rst) assert property(never(prop, clk, rst)) ASSERT2(prop, posedge clk, rst)

I get the following error:
Syntax error, unexpected "posedge", expecting "CLASS-IDENTIFIER" or "COVERGROUP-IDENTIFIER" or "TYPE-IDENTIFIER"

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2010-03-31T16:52:28Z


Unless I'm missing something, assert final isn't legal syntax.

The second isn't the complete example because there's no posedge in what you sent, send a full case.

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2010-04-20T23:22:26Z


Assuming this is ok now.

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

No branches or pull requests

2 participants