library ieee;
use ieee.std_logic_1164.all;
entity bejoy_fs is
port(x,y,bi: in bit; b2,do,bo: out bit; d,b: inout bit);
end bejoy_fs;
architecture arc of bejoy_fs is
begin
d<=x xor y;
b<=x and (not y);
do<=bi xor d;
b2<=bi and (not b);
end arc;
Wednesday, December 23, 2009 at 9:52 PM Posted by Bejoy Thomas
library ieee;
use ieee.std_logic_1164.all;
entity bejoy_fs is
port(x,y,bi: in bit; b2,do,bo: out bit; d,b: inout bit);
end bejoy_fs;
architecture arc of bejoy_fs is
begin
d<=x xor y;
b<=x and (not y);
do<=bi xor d;
b2<=bi and (not b);
end arc;
Labels: VHDL Tutorial
0 comments:
Post a Comment