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

Subversion Repositories idea

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 6 marta
-- VHDL data flow description generated from `substract`
2
--              date : Mon Jul 30 16:47:36 2001
3
 
4
 
5
-- Entity Declaration
6
 
7
ENTITY substract IS
8
  PORT (
9
  a : in BIT;   -- a
10
  b : in BIT;   -- b
11
  bin : in BIT; -- bin
12
  diff : out BIT;       -- diff
13
  bout : out BIT;       -- bout
14
  vdd : in BIT; -- vdd
15
  vss : in BIT  -- vss
16
  );
17
END substract;
18
 
19
 
20
-- Architecture Declaration
21
 
22
ARCHITECTURE behaviour_data_flow OF substract IS
23
 
24
BEGIN
25
  ASSERT ((vdd and not (vss)) = '1')
26
    REPORT "power supply is missing on substractx"
27
    SEVERITY WARNING;
28
 
29
 
30
bout <= ((not (a) and b) or (bin and (not (a) or b)));
31
 
32
diff <= (a xor b xor bin);
33
END;

powered by: WebSVN 2.1.0

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