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

Subversion Repositories idea

[/] [idea/] [trunk/] [behavioral/] [idea_machine/] [fulladder.vbe] - Rev 6

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

ENTITY fulladder IS
PORT (
  a      : in  BIT;
  b      : in  BIT;
  cin    : in  BIT;
  cout   : out BIT;
  sout   : out BIT;
  vdd    : in  BIT;
  vss    : in  BIT
);
END fulladder ;

ARCHITECTURE behaviour_data_flow OF fulladder IS

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

  cout <= (a and b) or ((a xor b) and cin);
  sout <= (a xor b) xor cin;
END;

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.