Clear up the intention of the no-parity bit assignment.
authorMalte S. Stretz <mss@apache.org>
Wed, 15 Jul 2009 12:10:37 +0000 (14:10 +0200)
committerMalte S. Stretz <mss@apache.org>
Wed, 15 Jul 2009 12:10:37 +0000 (14:10 +0200)
fhw_rs232/rs232_send.vhd

index 14a856a..eb2a054 100644 (file)
@@ -54,9 +54,8 @@ begin
   frame_s(frame_t'high) <= '0';
   frame_s(frame_t'high - 1 downto frame_t'high - data_width) <= txd;
   frame_s(frame_t'low + 1) <= get_parity(txd, parity_type) when parity_enabled = '1'
-                         else '1';
+                         else frame_s(frame_t'low);
   frame_s(frame_t'low) <= '1';
-  
 
   sequence : process(clk, rst)
   begin