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

Subversion Repositories idea

[/] [idea/] [trunk/] [behavioral/] [key_regulator/] [fulladder.vbe] - Rev 10

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

-- File Name    : fulladder.vbe
-- Description  : Full Adder in behavioral
-- Author       : Mas Adit
-- Date         : 29 Agustus 2001

ENTITY fulladder IS
PORT(
  a     : IN BIT;
  b     : IN BIT;
  cin   : IN BIT;
  sum   : OUT BIT;
  cout  : OUT BIT;
  vdd   : in  BIT;
  vss   : in  BIT
);
END fulladder;

ARCHITECTURE VBE OF fulladder IS

BEGIN
  ASSERT ((vdd and not (vss)) = '1')
  REPORT "power supply is missing on fulladder"
  SEVERITY WARNING;

  cout <= ((a AND b) OR (cin AND (a XOR b)));
  sum <= ((a XOR b) XOR cin);
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.