1. A majority logic function is a Boolean function that is equal to 1 if the majority of the variables are equal to I. equal to 0 otherwise. Write a Verilog user-defined primitive for a four-bit majori-ty function.
2. Simulate the behavior of Circuit_with_UDP_02467, using the stimulus waveforms shown in Fig. P3.38.