D
Deepu
Guest
Hi All,
Can you please provide some ides on how the comparison can be done for
the below case.
if (`CHIP.test_part_p2 != (data_compare))
$display ("FAIL");
else
$display ("PASS");
In the above case "`CHIP.test_part_p2" is 4 bit device signal while
data_compare is a 8-bit register. Also bit 2 to bit 5 in
'data_compare' register has the value that can be compared.
Example:
if `CHIP.test_part_p2 is 4'b1111, then data_compare will be 00111100
Thanks for the help..
Can you please provide some ides on how the comparison can be done for
the below case.
if (`CHIP.test_part_p2 != (data_compare))
$display ("FAIL");
else
$display ("PASS");
In the above case "`CHIP.test_part_p2" is 4 bit device signal while
data_compare is a 8-bit register. Also bit 2 to bit 5 in
'data_compare' register has the value that can be compared.
Example:
if `CHIP.test_part_p2 is 4'b1111, then data_compare will be 00111100
Thanks for the help..