gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 17:43:39 24 4
gpt4 key购买 nike

我想在测试台中使用这样的模块:

reg [31:0] OutputVal;
reg [15:0] InputVal;
sign theSignExtender(InputVal,OutputVal);

编译时出现错误:

error: reg OutputVal; cannot be driven by primitives or continuous assignment.

有什么建议吗?

最佳答案

更改:

reg [31:0] OutputVal;

至:

wire [31:0] OutputVal;

关于Verilog寄存器不能由原语或连续赋值驱动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19871878/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com