This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: <='0'; data <=(others =>'0'); p_error <='0'; current_state <=Start; count <=0; elsif clk'event and clk='1' then case current_state is when Start => count <=0; if rx = '0' then current_state <= C1; end if ; when C1 => if rx= '0' then current_state <=Parity_Rx; else current_state <=Start; end if ; when Parity_Rx => if count=lenght-1 then current_state <=Start; data_vd <='0'; if parity = Rx then p_error <= '0'; else p_error <='1'; end if ; else count <= count +1; data_vd <='1'; data(count) <=Rx; end if ; when others => null ; end case ; end if ; end process Parity_cal; end architecture beh;...
View Full Document
This note was uploaded on 09/29/2008 for the course ECE 333 taught by Professor Cao during the Spring '08 term at ASU.
- Spring '08