Thursday 12 December 2013

BINARY to GREY CODE CONVERTERS-(Dataflow)



library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity B_G is
    Port ( B3,B2,B1,B0 : in  STD_LOGIC;
           G3,G2,G1,G0 : out  STD_LOGIC);
end B_G;
architecture Dataflow of B_G is
begin
G3<=B3;
G2<=B3 xor B2;
G1<=B2 xor B1;
G0<=B1 xor B0;
end  Dataflow;

No comments:

Post a Comment