← ProblemsVerilog Language / Basics

7458 chip

36%basics

The 7458 is a chip with four AND gates and two OR gates. Recreate its function:

p1y = (p1a AND p1b AND p1c) OR (p1d AND p1e AND p1f)
p2y = (p2a AND p2b) OR (p2c AND p2d)

You may use intermediate wires or write each output as one expression.