Design of Comparator using Verilog

  1. Design the 1 bit comparator using verilog. Then analyze its output corresponding to various inputs and compute the truth table.

  2. Design the 4 bits comparator using verilog. Then analyze its output corresponding to various inputs and compute the truth table.