AR# 18364

|

XST - "ERROR:HDLCompilers:53 - .v line xx Illegal left hand side of continuous assign"

描述

Why do the following errors occur?

"ERROR:HDLCompilers:246 - <file>.v line xx Reference to scalar reg '<signal>' is not a legal net lvalue"

"ERROR:HDLCompilers:53 - <file>.v line xx Illegal left hand side of continuous assign"

解决方案

These errors occur if signals declared as reg type are assigned a value using a continuous assign statement as shown in the following example:

<code>

...

reg data;

assign data = din;

...

</code>

If a continuous assignment is needed, you must use a wire data type.

AR# 18364
日期 12/15/2012
状态 Active
Type 综合文章
People Also Viewed