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

Subversion Repositories idea

[/] [idea/] [trunk/] [behavioral/] [idea_machine/] [fulladder.vbe] - Blame information for rev 6

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

Line No. Rev Author Line
1 6 marta
ENTITY fulladder IS
2
PORT (
3
  a      : in  BIT;
4
  b      : in  BIT;
5
  cin    : in  BIT;
6
  cout   : out BIT;
7
  sout   : out BIT;
8
  vdd    : in  BIT;
9
  vss    : in  BIT
10
);
11
END fulladder ;
12
 
13
ARCHITECTURE behaviour_data_flow OF fulladder IS
14
 
15
BEGIN
16
  ASSERT ((vdd and not (vss)) = '1')
17
  REPORT "power supply is missing on fulladder"
18
  SEVERITY WARNING;
19
 
20
  cout <= (a and b) or ((a xor b) and cin);
21
  sout <= (a xor b) xor cin;
22
END;

powered by: WebSVN 2.1.0

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