Write a module to detect if two 4-bit inputs, a and b, are the same. You will complete this problem in stages. The 1-bit

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write a module to detect if two 4-bit inputs, a and b, are the same. You will complete this problem in stages. The 1-bit

Post by answerhappygod »

Write a module to detect if two 4-bit inputs, a and b, are thesame. Youwill complete this problem in stages. The 1-bit output should becalled “eq”. It should betrue (1) when they are equal, and false (0) otherwise.(a) First, draw a truth table for a 1-bit equality comparison(i.e., what the output eq shouldbe if a and b were 1-bit signals.(b) Now sketch a circuit to implement part (a).(c) Extend your circuit so that a and b are 4-bit signals. Rememberthat the ouput, eq, is a1-bit signal.(d) Now implement your design from part (c) using SystemVerilog
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply