[sv-bc] Attributes taking runtime constants?

From: Stacey Secatch <stacey.secatch_at_.....>
Date: Thu Feb 02 2006 - 08:35:44 PST
Hi all,

The 3.1a spec does not include this, and at this time, I have no
access to the IEEE preliminary versions.

Has there been any work into allowing attributes to take values
from a runtime constant such as a generate variable or a parameter
rather than only fixed constants?

For example, I can currently code:
(* my_attr = "foo" *)

But I may want "foo" to be changable passed on parameters, or
it's location in a generate block. The following code is a compile
error:

localparam my_attr_str = "foo";
(* my_attr = my_attr_str *)

This is particularily useful for IP development, where you may want 
to send different information to the synthesis tools for 
implementations decisions or placement directives. This behavior is
already available in VHDL.

Thank you-
Stacey Secatch
stacey.secatch@xilinx.com
Received on Thu Feb 2 08:41:45 2006

This archive was generated by hypermail 2.1.8 : Thu Feb 02 2006 - 08:43:23 PST