Guest
Hi,
I am new to Verilog. I read the following code. I do not understand the '{26{sumofproducts[30]}}'. Could you explain it to me?
Thanks
...........
wire signed [30:0] sumofproducts; // sfix31_E7
wire signed [56:0] sumofproducts_cast; // sfix57_E7
assign sumofproducts_cast = $signed({{26{sumofproducts[30]}}, sumofproducts});
I am new to Verilog. I read the following code. I do not understand the '{26{sumofproducts[30]}}'. Could you explain it to me?
Thanks
...........
wire signed [30:0] sumofproducts; // sfix31_E7
wire signed [56:0] sumofproducts_cast; // sfix57_E7
assign sumofproducts_cast = $signed({{26{sumofproducts[30]}}, sumofproducts});