[logo] 
 
Home
News
Activity
About/Contact
Major Tools
  Dinotrace
  Verilator
  Verilog-mode
  Verilog-Perl
Other Tools
  BugVise
  CovVise
  Force-Gate-Sim
  Gspice
  IPC::Locker
  Rsvn
  Schedule::Load
  SVN::S4
  Synopsys-modes
  SystemPerl
  Verilog-Pli
  Voneline
  Vregs
General Info
  Papers

Issue #229

assert syntax errors

Added by Rick Ramus about 2 years ago. Updated about 2 years ago.

Status:NotEnoughInfo Start date:03/31/2010
Priority:Normal Due date:
Assignee:Wilson Snyder % Done:

0%

Category:-
Target version:-

Description

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

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

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

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

History

Updated by Wilson Snyder about 2 years ago

  • Status changed from New to AskedReporter

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.

Updated by Wilson Snyder about 2 years ago

  • Status changed from AskedReporter to WillNotFix
  • Assignee set to Wilson Snyder

Assuming this is ok now.

Also available in: Atom