Exams/2012 q1g

From HDLBits

Consider the function f shown in the Karnaugh map below. Implement this function.

(The original exam question asked for simplified SOP and POS forms of the function.)

Exams 2012q1g.png

Module Declaration

module top_module (
    input [4:1] x,
    output f

Be careful of the ordering of the x[4:1] input bits in the Karnaugh map.

Write your solution here

Upload a source file...