Taken from 2015 midterm question 4
Circuit B can be described by the following simulation waveform:
答案
module top_module ( input x, input y, output z );
//assign z = x ^~ y;
always@(*)
case({x,y})
2’b11,2’b00:z = 1;
default:z = 0;
endcase
endmodule