Loading…
Loading…
advanced · state_machine · 250 XP
Sign in to write your solution, run it in the simulator and submit it for grading.
Sign in or create a free account →Input: PS/2 packet: 0_10101011_1_1 (8'hAB with correct parity)
Output: byte_out=8'hAB, byte_valid=1
Valid frame
Input: PS/2 packet: 0_10101010_0_1 (bad parity, even number of 1s)
Output: error=1
Parity error
Input: PS/2 packet: 0_10101011_1_0 (stop bit = 0)
Output: error=1
Framing error