R
rekz
Guest
My code is the following:
module ShiftLeft2(Input, Output);
input[31:0] Input;
output[31:0] Output;
always @(Input)
Output = Input << 2;
endmodule
and I am always getting this error:
Procedural assignment to a non-register <Output> is not permitted
why is this??
also is there a way to pass a wire value shifted to the left by 2 to
as a parameter.. for example:
AddALU Add(Test1, (SLRes << 2) ,Test2 , Test3);
so I don't have to create this module
module ShiftLeft2(Input, Output);
input[31:0] Input;
output[31:0] Output;
always @(Input)
Output = Input << 2;
endmodule
and I am always getting this error:
Procedural assignment to a non-register <Output> is not permitted
why is this??
also is there a way to pass a wire value shifted to the left by 2 to
as a parameter.. for example:
AddALU Add(Test1, (SLRes << 2) ,Test2 , Test3);
so I don't have to create this module