OpenCores
URL https://opencores.org/ocsvn/idea/idea/trunk

Subversion Repositories idea

[/] [idea/] [trunk/] [behavioral/] [key_regulator/] [adder01x.vbe] - Rev 6

Go to most recent revision | Compare with Previous | Blame | View Log

--Nama file : adder01x.vbe
--Deskripsi : blok adder 1 bit 2 input
--Author    : Mas Adit
--Tanggal : 29 Agustus 2001

entity adder01x is
port (
        a : in bit;
        b : in bit;
        cin : in bit;
        sum : out bit;
        cout : out bit;
        vdd : in bit;
        vss : in bit
);
end adder01x;

architecture vbe of adder01x is

begin

sum <= a xor b xor cin;
cout <= ((a and b) or (cin and (a xor b)));

assert ((vdd = '1') and (vss ='0'))
report "power supply is missing on adder17x"
severity warning;

end vbe;

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.