(VERI-1322) 分配模式的前缀必须是数据类型
这是我的代码的片段;
always_ff @(posedge clk) begin : output_assigment // left side should only be "_q"
if(reset_n == 1'b0 || clear == 1'b1) out_signal_q <= {8'{!(REPORT_POL)}};
但我看到这个错误: (VERI-1322) 分配模式的前缀必须是数据类型
如何针对分配“out_signal_q <= {8'{!(REPORT_POL)}}”纠正此 错误 你能帮忙吗? 结尾
Here is a snippet from my code;
always_ff @(posedge clk) begin : output_assigment // left side should only be "_q"
if(reset_n == 1'b0 || clear == 1'b1) out_signal_q <= {8'{!(REPORT_POL)}};
But i see this error: (VERI-1322) prefix of assignment pattern must be a data type
How can this be corrected for the assignment "out_signal_q <= {8'{!(REPORT_POL)}}"
Can you please help ?
end
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它总是有助于显示表达式中涉及的所有信号的声明。我必须假设 REPORT_POL 是单个位,并且您希望将其复制 8 次以分配给 out_signal_q。在这种情况下,你想删除
'
并只写It always helps to show declarations of all signals involved in the expression. I have to assume that
REPORT_POL
is a single bit and you want it replicated 8 times to assigned toout_signal_q
. In that case you want to remove the'
and just write