Verilog寄存器不能由原语或连续赋值驱动

use*_*250 5 verilog

我想在像这样的测试平台上使用模块:

reg [31:0] OutputVal;
reg [15:0] InputVal;
Run Code Online (Sandbox Code Playgroud)

签署theSignExtender(InputVal,OutputVal);

当我编译时,我得到错误错误:reg OutputVal; 不能由原语或连续分配驱动.
有什么建议?

too*_*lic 5

更改:

reg [31:0] OutputVal;
Run Code Online (Sandbox Code Playgroud)

至:

wire [31:0] OutputVal;
Run Code Online (Sandbox Code Playgroud)