跳转至

Karnaugh Map

约 44 个字 8 行代码 1 张图片 预计阅读时间不到 1 分钟

Kmap4

Implement the circuit described by the Karnaugh map below.

alt text

Hint:

For this function, changing the value of any one input always inverts the output. It is a simple logic function, but one that can't be easily expressed as SOP nor POS forms.

Verilog
1
2
3
4
5
6
7
8
module top_module(
    input a,
    input b,
    input c,
    input d,
    output out  ); 
    assign out = (a^b)^(c^d);
endmodule