HDLBits Solution: 7420 chip

In this quiz, I needed to create a circuit that acts like a 7420 chip. This is a digital chip. I used logical operations here, as I was dealing with only one bit for each input signal.

 

Here is my code for this quiz.

module top_module ( 
    input p1a, p1b, p1c, p1d,
    output p1y,
    
    input p2a, p2b, p2c, p2d,
    output p2y );
 
    
    assign p1y = !(p1a&&p1b&&p1c&&p1d);
    assign p2y = !(p2a&&p2b&&p2c&&p2d);
 
endmodule
 
 
 

Reference : https://hdlbits.01xz.net/wiki/7420

Leave a Reply

Your email address will not be published. Required fields are marked *