Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

NEED HELP

656 views
Skip to first unread message

Taarinya

unread,
Dec 17, 2001, 10:17:27 PM12/17/01
to
Iam new to verilog..need help on this..
wire [9:0] cin;
wire [9:0] cout;
wire select;
if ((select))
cin = cout;
I get the error saying that
cin <=
|
ncvlog: *E,WANOTL (./pb.v,647|14): a net is not a legal lvalue in this
context [9.3.1(IEEE)]

I do not know how to get this resolved..Appreciate your help...
THX.

Steven Sharp

unread,
Dec 18, 2001, 5:18:15 PM12/18/01
to
taar...@yahoo.com (Taarinya) wrote in message news:<268f66d8.01121...@posting.google.com>...

> I get the error saying that
> cin <=
> |
> ncvlog: *E,WANOTL (./pb.v,647|14): a net is not a legal lvalue in this
> context [9.3.1(IEEE)]

You can get additional information about NC-Verilog messages from nchelp
by giving it the tool and the error mnemonic. For example

nchelp ncvlog WANOTL

will print

ncvlog/WANOTL =
A net cannot be used as an lvalue in behavioral assignments
or as an lvalue in an 'assign' statement.

This gives you more detail, but still assumes that you know enough
about the Verilog language to understand your mistake when it is
explained. You have declared cin as a wire and are using it as the
left-hand-side value (lvalue in C terminology) of a behavioral
assignment. This is illegal in Verilog. Nets must be driven by
drivers, such as a gate or continuous assignment.

Depending on what you are trying to do, you can replace your
behavioral block with a continuous assignment. Alternately, you
can declare cin as a reg so you can use a behavioral assignment
to it. If it is a reg attached to a port, an implicit continuous
assignment to the net leaving the port will be added.

0 new messages