You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Author Name: Iztok Jeras (@jeras)
Original Redmine Issue: 865 from https://www.veripool.org
Original Date: 2014-12-23
Original Assignee: Wilson Snyder (@wsnyder)
Some casting operations return an error. The SV standard contains the next definition:
If the casting type is a constant expression with a positive integral value, the expression in parentheses shall
be padded or truncated to the size specified. It shall be an error if the size specified is zero or negative.
Examples:
17'(x - 2)
parameter P = 16;
(P+1)'(x – 2)
The next example would not work in ModelSim, unless the parameter was inside parentheres ():
parameter P = 16;
P'(x – 2)
Regards,
Iztok Jeras
The text was updated successfully, but these errors were encountered:
Original Redmine Comment
Author Name: Iztok Jeras (@jeras)
Original Date: 2014-12-23T18:45:49Z
I attached an updated "test_regress/t/t_cast.v", but I was not able to test it, since I do not have access to a reference simulator, except for ModelSim (Altera edition) which is not supported by the Perl script.
Author Name: Iztok Jeras (@jeras)
Original Redmine Issue: 865 from https://www.veripool.org
Original Date: 2014-12-23
Original Assignee: Wilson Snyder (@wsnyder)
Some casting operations return an error. The SV standard contains the next definition:
If the casting type is a constant expression with a positive integral value, the expression in parentheses shall
be padded or truncated to the size specified. It shall be an error if the size specified is zero or negative.
Examples:
The next example would not work in ModelSim, unless the parameter was inside parentheres ():
Regards,
Iztok Jeras
The text was updated successfully, but these errors were encountered: