Write a Verilog function to compare two 8-bit vectors to determine whether they are equal. Report an
Question:
Write a Verilog function to compare two 8-bit vectors to determine whether they are equal. Report an error if any bit of either vector is not 0, 1, or z. The function call should pass only the vectors. The function should return TRUE (1) if the vectors are equal, else FALSE (0). All bits including zs should match (i.e., z only matches z).
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Digital Systems Design Using Verilog
ISBN: 978-1285051079
1st edition
Authors: Charles Roth, Lizy K. John, Byeong Kil Lee
Question Posted: