reg [3:0]a;
reg in;
a <= {a[2:0],in}; //1- Using Concatenate
Operator
a <= a<<1; //2- Using Shift operator
What is the difference between 1 & 2 in terms of:
a) Speed of operation.
b) Hardware Implementation in synthesis.
Which one is preferred generally?