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

Subversion Repositories idea

[/] [idea/] [trunk/] [behavioral/] [key_regulator/] [substractx.vbe] - Rev 9

Compare with Previous | Blame | View Log

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

entity substractx is
port (
        a : in bit;
        b : in bit;
        bin : in bit;
        diff : out bit;
        bout : out bit;
        vdd : in bit;
        vss : in bit
);
end substractx;

architecture vbe of substractx is

begin

diff <= a xor b xor bin;
bout <= (bin and not (a xor b)) or ((not a) and b);

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

end vbe;

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.