S
Steven Sharp
Guest
Can you describe this additional capability that you believe VHDL
provides you? Assuming that a user-defined attribute is being used
in VHDL, I believe that it must be set to the value of a constant
expression. That constant expression can include values calculated
by a VHDL function that meets certain requirements.
In Verilog, an attribute can be set to the value of a constant
expression. That constant expression can include values calculated
by a Verilog function that meets certain requirements.
As far as I can see, the only difference is that attributes and
constant functions were added to Verilog more recently, so it is
less likely that a tool will have the full capabilities implemented.
In particular, the tool you are using does not provide enough to do
this yet.
Regardless of the language used, it is less convenient for a user
to have to convert numerical values into string form and use that
to set a string-valued attribute, than to use the numerical values
directly to set numeric-valued attributes. Therefore, choosing to
require string-valued attributes for this purpose would be a poor
design decision on the part of the tool implementor.
provides you? Assuming that a user-defined attribute is being used
in VHDL, I believe that it must be set to the value of a constant
expression. That constant expression can include values calculated
by a VHDL function that meets certain requirements.
In Verilog, an attribute can be set to the value of a constant
expression. That constant expression can include values calculated
by a Verilog function that meets certain requirements.
As far as I can see, the only difference is that attributes and
constant functions were added to Verilog more recently, so it is
less likely that a tool will have the full capabilities implemented.
In particular, the tool you are using does not provide enough to do
this yet.
Regardless of the language used, it is less convenient for a user
to have to convert numerical values into string form and use that
to set a string-valued attribute, than to use the numerical values
directly to set numeric-valued attributes. Therefore, choosing to
require string-valued attributes for this purpose would be a poor
design decision on the part of the tool implementor.