EETOP 创芯网论坛 (原名:电子顶级开发网)

标题: verilog 的问题 [打印本页]

作者: ydlm42sj    时间: 2009-5-11 15:56
标题: verilog 的问题
刚学verilog ,碰见了这样一错误:
Error (10257):  unsized constants are not allowed in concatenations
怎么解决呢?

先谢谢了!
作者: gaozining    时间: 2009-5-11 22:20
应该是你定义的reg或者wire的宽度不一直,

却对其用更大的赋值了.
如下:

wire [3:0] out;
reg [5:0] in;


assing  out = in;

这样in的位宽大于out的位宽..
就出现你的那种情况了
作者: yanglishan    时间: 2012-2-9 19:09
楼上说的对呀
作者: wyj_whu    时间: 2012-2-10 15:39
回复 1# ydlm42sj


    按照语义分析,应该是拼接运算那里出错了。。检查下,拼接的常数是不是没有定义位宽?
作者: davidlee_cosmo    时间: 2012-2-17 06:40
回复 1# ydlm42sj


    You need to put the size indicator when you using any constants.




欢迎光临 EETOP 创芯网论坛 (原名:电子顶级开发网) (https://bbs.eetop.cn/) Powered by Discuz! X3.4