Wednesday, December 23, 2009

VHDL code for Even Parity Generator

library ieee;
use ieee.std_logic_1164.all;

entity bejoy_ep is
port(x,y,z:in std_logic;
p:out std_logic);
end bejoy_ep;

architecture a of bejoy_ep is
begin
p<=((x xor y) xnor z);
end a;

1 comment:

  1. itna chhota program....
    humari toh humare teacher ne waat lga di thi..
    anju

    ReplyDelete