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# 38231

Design Assistant for XST Help resolving "HDLCompiler:696: Part-select direction is opposite from prefix index direction" errors

Description

Refer to this Answer Record for help resolving "HDLCompiler:696: Part-select direction is opposite from prefix index direction" errors.

Note: This Answer Record is a part of the Xilinx Solution Center for XST (Xilinx Answer 38927). The Xilinx Solution Center for XST is available to address all questions related to XST. Whether you are starting a new design or troubleshooting a problem, use the Solution Center for XST to guide you to the right information.

解决方案

This errormessageis displayedwhen you have the part-select indices in an expression in the opposite direction of what the corresponding declaration suggests.

WHAT NEXT:

Correct your part-select expression by swapping the places of the two indices used for left and right range.

EXAMPLE:

Consider the following RTL:

module top(i[3:0], j[3:0]);
input [3:0] i;
output [3:0] j;
assign j[2:0] = i[0:2];
endmodule

In the 'assign' statement, RHS is 'i[0:2]' which is incorrect. Declaration of 'i' specifies [3:0] which means the part-select expression with 'i' should
have left index greater than or equal to the right index; that is not the case with the 'assign' statement.

链接问答记录

主要问答记录

Answer Number 问答标题 问题版本 已解决问题的版本
38927 面向 XST 的 Xilinx 解决方案中心 N/A N/A

相关答复记录

Answer Number 问答标题 问题版本 已解决问题的版本
40379 Design Assistant for XST Help understanding the XST report to resolve errors\warnings N/A N/A
AR# 38231
创建日期 09/24/2010
Last Updated 12/15/2012
状态 Active
Type 综合文章