I have system verilog code in which replication is used that I don't understand. Please be thorough with your answer

前端 未结 0 903
星月不相逢
星月不相逢 2021-01-22 05:26

parameter WIDTH = 6; logic [WIDTH-1:0] flag, flag2;

assign flag = flag2 - `ZERO_X(1\'b1, WIDTH)

`define ZERO_X(n, m) {{m-$bits(n){1\'b0}}, (n)}

相关标签:
回答
  • 消灭零回复
提交回复
热议问题