mplement the circuit described by the Karnaugh map below.
module top_module(
input a,
input b,
input c,
input d,
output out );
assign out = (~a&b&~c&~d) | (a&~b&~c&~d) | (~a&~b&~c&d) | (a&b&~c&d) | (~a&b&c&d) | (a&~b&c&d) | (~a&~b&c&~d) | (a&b&c&~d);
endmodule
分析:
卡诺图没法圈,可以把每个1的位置写出来,因为卡诺图最少可以圈一个;这里没做优化,应该也能做优化
运行结果: