I want to use a module in a test bench like this:
reg [31:0] OutputVal;
reg [15:0] InputVal;
sign theSignExtender(InputVal,OutputVal);
When I compile, I get the error:
error: reg OutputVal; cannot be driven by primitives or continuous assignment.
Any suggestions?
Change:
reg [31:0] OutputVal;
to:
wire [31:0] OutputVal;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With