parity check in matlab and FPGA board
<p>as the code shown, </p>

<pre><code>s = serial('COM3','BaudRate',115200, 'Parity', 'odd','DataBits',8,'StopBits',1);
fopen(s);
</code></pre>

<p>I add the parity check function in the serial port communication in Matlab. I create the serial port to send data to a FPGA board. In the FPGA board, I write a code to do the XOR operation to the 8 bits data and check whether the result is correct to the parity bit. The problem is if the parity check error exists, how do the FPGA board ask the serial port to retransmit the data? Is there any necessary setting for the FPGA?  </p>