1、truncated value with size 32 to match size of target 20
在警告指定位置出现位宽不一致的情况,编译时回将32bit截断至目标的20bit。
reg [19:0] cnt;
........
......
cnt <= cnt + 1;
这里‘1’ 默认为32位 与cnt 定义的20位宽不符,在进行运算是会将‘1’的20-32位截断。
解决方法
reg [19:0] cnt;
........
......
cnt <= cnt + 1'b1;
2、create implicit net for .....
3、object "led" on left _h and side of .........