Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

"Reference to vector wire 'out' is not a legal reg or variable lvalue"....

Status
Not open for further replies.

watabe112

Member level 2
Joined
Feb 14, 2011
Messages
43
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,606
can anyone help me to correct the error......here's my code...

module top( input [31:0]A,
input [31:0]in1,
input clk,
output [31:0]out

);

//----------- Begin Cut here for INSTANTIATION Template ---// INST_TAG
tambah stage1 (
.a(A), // Bus [31 : 0]
.b(in1), // Bus [31 : 0]
.clk(clk),
.result(out)); // Bus [31 : 0]


// INST_TAG_END ------ End INSTANTIATION Template ---------
assign
A = 32'b00000000000000000000000000000000;

always @(posedge clk)
begin: tambah
end

always @ (posedge clk)
out <= in1 + out;
endmodule

error.......
Reference to vector wire 'out' is not a legal reg or variable lvalue
Illegal left hand side of nonblocking assignment
 

Re: "Reference to vector wire 'out' is not a legal reg or variable lvalue"....

Try output reg [31:0]out
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top