Thursday 12 December 2013

GREY to BINARY CODE CONVERTERS-(Dataflow)



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

No comments:

Post a Comment