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

Subversion Repositories idea

[/] [idea/] [trunk/] [behavioral/] [idea_machine/] [halfadder.vbe] - Rev 9

Compare with Previous | Blame | View Log

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

ARCHITECTURE behaviour_data_flow OF halfadder IS

BEGIN
  ASSERT ((vdd and not (vss)) = '1')
  REPORT "power supply is missing on halfadder"
  SEVERITY WARNING;
  sout <= (a xor b);
  cout <= (a and b);
END;

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.