.v" Line <*>: Invalid size of integer constant literal"">

UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 44530

13.3 XST - "ERROR:HDLCompiler:1818 - "<*>.v" Line <*>: Invalid size of integer constant literal"

描述

Beginning with the 13.3 release, XST will produce the following error message when it comes across an invalid size specified for an integer constant literal:

"ERROR:HDLCompiler:1818 - "<*>.v" Line <*>: Invalid size of integer constant literal
INFO - You can change the severity of this error message to warning using switch -change_error_to_warning "HDLCompiler:1818"

解决方案

This error occurs when an invalid size is specifiedfor an integer constant literal.

Takethe following piece of code as an example:

module top (a,b,out);
input a, b;
output out;
assign out = a ? b : 0'b0;
endmodule

In the above piece of sample code,the size constant in the expression is specified as 0, which causes the 13.3 XST to error out with the following HDLCompiler error:

"ERROR:HDLCompiler:1818 - "top.v" Line 4: Invalid size of integer constant literal
INFO - You can change the severity of this error message to warning using switch -change_error_to_warning "HDLCompiler:1818""

AR# 44530
日期 12/15/2012
状态 Active
Type 综合文章
的页面