RE: [sv-bc] Query reagarding protect pragma keywords

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Fri Jan 09 2009 - 01:59:55 PST
Hi,

The LRM defines "`pragma reset <pragma_keyword>" as follows:

"22.11.1 Standard pragmas

The reset and resetall pragmas shall restore the default values and state of pragma_keywords associated with the affected pragmas. These default values shall be the values that the tool defines before any SystemVerilog text has been processed. The reset pragma shall reset the state for all pragma_names that appear as pragma_keywords in the directive."

In this case, "protect" can be a pragma_keyword. So this would reset the state of the protect pragma.

`pragma protect reset is defined in 34.5.31:

"34.5.31 reset
34.5.31.1 Syntax
reset
34.5.31.2 Description
ENCRYPTION INPUT: The reset pragma expression is a synonym for a reset pragma directive that contains protect in the pragma keyword list. Following the reset, all protect pragma keywords are restored to their default values."

So this paragraph says that the two ways are equivalent.

Shalom

> -----Original Message-----
> From: owner-sv-bc@server.eda.org
> [mailto:owner-sv-bc@server.eda.org] On Behalf Of Moumita Das
> Sent: Friday, January 09, 2009 11:01 AM
> To: sv-bc@server.eda.org
> Cc: sv-ec@server.eda.org
> Subject: [sv-bc] Query reagarding protect pragma keywords
>
> Hello,
>
> According to 2009 draft LRM  "reset " is  a protect pragma keywords.
> So "reset" can appear after  "protect" to resets pragma
> keyword values to default.
>
> But I have seen an example in LRM where "reset" is used
> before "protect" - `pragma reset protect
>
> So above example is valid?
>
> Thanks,
>
> Moumita
>
>
>
> --
> This message has been scanned for viruses and dangerous
> content by MailScanner, and is believed to be clean.
>
>
> --
> This email was Anti Virus checked by Astaro Security Gateway.
> http://www.astaro.com
>
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Fri Jan 9 07:05:07 2009

This archive was generated by hypermail 2.1.8 : Fri Jan 09 2009 - 07:07:26 PST