A
Anand P Paralkar
Guest
Hi,
I am trying to compare two bit vectors formed by aggregating/concatenating
individual bits of a vector in a "Conditional Signal Assignment Statement"
as follows:
err <= '1' when ( (int_h_data(19), int_h_data(18), int_h_data(16),
int_h_data(12), int_h_data(4)) /=
(h_data(19), h_data(18), h_data(16), h_data(12),
h_data(4)) ) else
'0' when ( (int_h_data(19), int_h_data(18), int_h_data(16),
int_h_data(12), int_h_data(4)) =
(h_data(19), h_data(18), h_data(16), h_data(12),
h_data(4)) );
The err flag should be set to '1' when the two concatenations are not
equal and should be reset to '0' when the two concatenations are equal.
On compiling the code above, the compiler returns error messages:
int_h_data(12), int_h_data(4)) /=
|
expression is ambiguous
int_h_data(12), int_h_data(4)) =
|
expression is ambiguous
Could you please explain why?
Thanks,
Anand
I am trying to compare two bit vectors formed by aggregating/concatenating
individual bits of a vector in a "Conditional Signal Assignment Statement"
as follows:
err <= '1' when ( (int_h_data(19), int_h_data(18), int_h_data(16),
int_h_data(12), int_h_data(4)) /=
(h_data(19), h_data(18), h_data(16), h_data(12),
h_data(4)) ) else
'0' when ( (int_h_data(19), int_h_data(18), int_h_data(16),
int_h_data(12), int_h_data(4)) =
(h_data(19), h_data(18), h_data(16), h_data(12),
h_data(4)) );
The err flag should be set to '1' when the two concatenations are not
equal and should be reset to '0' when the two concatenations are equal.
On compiling the code above, the compiler returns error messages:
int_h_data(12), int_h_data(4)) /=
|
expression is ambiguous
int_h_data(12), int_h_data(4)) =
|
expression is ambiguous
Could you please explain why?
Thanks,
Anand