Consider the function f shown in the Karnaugh map below.
Implement this function. d is don't-care, which means you may choose to output whatever value is convenient.
译:考虑下面卡诺图中显示的函数f。
实现这个函数。D是don't-care,这意味着您可以选择输出任何方便的值。
module top_module (
input [4:1] x,
output f );
assign f = (x[2]&x[4]) | (~x[1]&x[3]);
endmodule
运行结果: