I need to make sign extension from a 4-bit number to a 32-bit number. I try to repeat the MSB 28 times like this:
assign x={28'b{a[3]},a[3:0]};
But, I get an error:
Syntax error near "{"
x
is defined as :wire [31:0] x ;
a
is defined as : input [3:0]a;
Is this concatenation wrong?