RE: [sv-ec] Arrays of events

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Wed Sep 13 2006 - 02:03:46 PDT
Dave,

 

The LRM allows you to declare an array of event:

 

event a [3:0]; 

 

but the syntax doesn't seem to allow  you to trigger on an element of
the event array:

 

-> a[0];

 

Is this simply a BNF oversight or is this an intentional omission. Seems
to me that if you can declare an array of events, you should be able to
trigger an element of an array.

 

[SB] In 1364-2005, issue BTF 67 fixed this:

http://boyd.com/1364_btf/report/full_pr/67.html

 

The fixed syntax is found in 1364-2005 in Syntax 9-10 in 9.7.3 and in
A.6.5.:

 

event_trigger ::= 

-> hierarchical_event_identifier { [ expression ] } ;

 

 

However, this change seems to have been omitted from 1800. Syntax 14-1
there is:

 

event_trigger ::=

    -> hierarchical_event_identifier ;

 | ->> [ delay_or_event_control ] hierarchical_event_identifier ;

// from A.6.5

 

So the change should be there in both the blocking and nonblocking event
trigger.

 

The syntax descriptions in 14.5.3 and 14.5.4 would have to change as
well.

 

I filed Mantis 1585 on this.

 

One more point:

 

http://boydtechinc.com/etf/archive/etf_2003/1021.html asked why the
event_control form 

  @ hierarchical_event_identifier 

should not be

  @ hierarchical_event_identifier { "[" expression "]" } . 

 

The answer is not recorded, but that change was not made, so presumably
it was decided that waiting on an element of an event array would
require parentheses.

 

Shalom
Received on Wed Sep 13 02:04:08 2006

This archive was generated by hypermail 2.1.8 : Wed Sep 13 2006 - 02:04:32 PDT