assign两边长度不同

assign out = {in[7:0], in[15:8]};       // This is different. The 16-bit vector on the right is extended to
                                        // match the 24-bit vector on the left, so out[23:16] are zero.
                                        // In the first two examples, out[23:16] are not assigned.
高位补0
posted @ 2022-09-14 11:02  Inami  阅读(23)  评论(0)    收藏  举报