I have an interesting error in my RTL and I would like to take your expert opinion in understanding the same.
Here is the error:
Code:
E- : <module file name>(<line number>) :
'2'b00': Type mismatch - no implicit conversion exists to convert the value of the expression of type '[1:0] unsigned logic' into the type required by the context ' logic [1:0]'.
You get no warning/error if the number of bits in the packed array is less than the number of bits in the unpacked array. Also, if you are trying assign a particular shape array, there is nothing that tells you your alignment is off.
You get no warning/error if the number of bits in the packed array is less than the number of bits in the unpacked array. Also, if you are trying assign a particular shape array, there is nothing that tells you your alignment is off.