Illegal Left hand Side in Continuous Assignment
illegal left-hand-side assignment
illegal left-hand-side assignment
Author | Message |
---|---|
illegal left-hand-side assignment Quote: > I have something like: >reg [7:0] r0, r1, r2; >if I say x = r0 I get the Illegal left-hand-side error. >it I say assign x = r0, I still get the same error. The assign statement should work. This is pretty routine The following file produces no errors from Cadence: module mymodule(x); Probably you have some other syntax error somewhere, and Steve | |
Wed, 05 Apr 2000 03:00:00 GMT | |
illegal left-hand-side assignment Hi, reg [7:0] r0, r1, r2; if I say x = r0 I get the Illegal left-hand-side error. it I say assign x = r0, I still get the same error. What should I do? Vangal. | |
Wed, 05 Apr 2000 03:00:00 GMT | |
illegal left-hand-side assignment Quote: > Hi, > reg [7:0] r0, r1, r2; > if I say x = r0 I get the Illegal left-hand-side error. > it I say assign x = r0, I still get the same error. > What should I do? > Vangal. In order to say 'x = r0' in behavi{*filter*}code, you must define x module foo(o,i, e); endmodule // foo An alternative possible coding style: module foo(o,i, e); assign o = e ? i : o; // the declarative assign only targets wires; and by default outputs are wires. endmodule // foo module foo(o,i, e); endmodule // foo -- | |
Fri, 07 Apr 2000 03:00:00 GMT | |
illegal left-hand-side assignment :i think you are using the assign statemnent in a sequential block. : > I have something like: : The assign statement should work. This is pretty routine : The following file produces no errors from Cadence: : module mymodule(x); : Probably you have some other syntax error somewhere, and : Steve | |
Sat, 08 Apr 2000 03:00:00 GMT | |
illegal left-hand-side assignment This is a common error, and is explained in chapter 13 (common errors) Basically your problem, due to the error message and the declaration Please pick up a copy of "Verilog Quickstart" and read chapter 13, -- James Quote: > Hi, > reg [7:0] r0, r1, r2; > if I say x = r0 I get the Illegal left-hand-side error. > it I say assign x = r0, I still get the same error. > What should I do? > Vangal. -- Verilog Instructor http://c118618-a.frmt1.sfba.home.com | |
Sat, 08 Apr 2000 03:00:00 GMT | |
illegal left-hand-side assignment Quote: >This is a common error, and is explained in chapter 13 (common errors) >> it I say assign x = r0, I still get the same error. So isn't that a continious assignment? Cheers Terry... | |
Mon, 10 Apr 2000 03:00:00 GMT | |
illegal left-hand-side assignment Quote: >>This is a common error [..] Yeah it is. It would work, if it was outside of an always Steve | |
Mon, 10 Apr 2000 03:00:00 GMT | |
illegal left-hand-side assignment Quote: > >>This is a common error [..] > >>> if I say x = r0 I get the Illegal left-hand-side error. > >So isn't that a continious assignment? > Yeah it is. It would work, if it was outside of an always And inside a behavi{*filter*}block (i.e. inside an always or Remember, nets and registers can appear on the right hand side The exception, of course, is the force statement, which is the -- | |
Mon, 10 Apr 2000 03:00:00 GMT | |
Source: http://computer-programming-forum.com/41-verilog/c737de42afab8196.htm
0 Response to "Illegal Left hand Side in Continuous Assignment"
Post a Comment