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

Subversion Repositories idea

[/] [idea/] [trunk/] [behavioral/] [key_regulator/] [substractx.vbe] - Blame information for rev 9

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 marta
--Nama file : substractx.vbe
2
--Deskripsi : blok substractor 2 input 1 bit
3
--Author    : Mas Adit
4
--Tanggal  : 29 Agustus 2001
5
 
6
entity substractx is
7
port (
8
        a : in bit;
9
        b : in bit;
10
        bin : in bit;
11
        diff : out bit;
12
        bout : out bit;
13
        vdd : in bit;
14
        vss : in bit
15
);
16
end substractx;
17
 
18
architecture vbe of substractx is
19
 
20
begin
21
 
22
diff <= a xor b xor bin;
23
bout <= (bin and not (a xor b)) or ((not a) and b);
24
 
25
assert ((vdd = '1') and (vss = '0'))
26
report "power supply is missing on substractx"
27
severity warning;
28
 
29
end vbe;

powered by: WebSVN 2.1.0

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