题解 | 奇偶校验
奇偶校验
https://www.nowcoder.com/practice/67d4dd382bb44c559a1d0a023857a7a6
`timescale 1ns/1ns module odd_sel( input [31:0] bus, input sel, output check ); //*************code***********// //奇校验:连续异或的结果 wire odd; assign odd = ^bus; assign check = sel ? odd : ~odd; //*************code***********// endmodule

 查看5道真题和解析
查看5道真题和解析