题解 | #奇偶校验#
奇偶校验
http://www.nowcoder.com/practice/67d4dd382bb44c559a1d0a023857a7a6
`timescale 1ns/1ns
module odd_sel(
input [31:0] bus,
input sel,
output wire check
);
//*************code***********//
// 重点是 奇偶校验包括校验位这个知识点
assign check = !(^{bus,sel});
//*************code***********//
endmodule
module odd_sel(
input [31:0] bus,
input sel,
output wire check
);
//*************code***********//
// 重点是 奇偶校验包括校验位这个知识点
assign check = !(^{bus,sel});
//*************code***********//
endmodule