[sv-ac] Mantis 2008: Glitches and Unique/Priority constructs (was in 2005)

From: Thomas Thatcher <Thomas.Thatcher_at_.....>
Date: Thu Sep 27 2007 - 14:50:01 PDT
Hi Erik,


I have been thinking about the issue of glitches and the Unique/Priority
constructs.

I think that the proper way to fix this is to change the syntax of the unique
and priority constructs to allow for a event to serve as a clocking mechanism
for example:

	unique (@posedge clk) case (a)

		0,1: $display("0 or 1");
		2: $display("2");
		4: $display("4");
	endcase

The clocking event would allow the unique or priority assertions to be treated
as concurrent assertions that are clocked by a reasonable clock.  The real
problem is when these constructs appear in an always_comb block.  An always_ff
block is not going to have the same glitch problem.  But to create a
concurrent assertion in an always_comb block, you'll need a clock.
Otherwiase, You'll have to create some equivalent clock that ticks every
simulation time step, and that will kill simulation performance.

Tom

-- 
------------------
Thomas J. Thatcher
Sun Microsystems
------------------

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Sep 27 14:50:22 2007

This archive was generated by hypermail 2.1.8 : Thu Sep 27 2007 - 14:50:34 PDT