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

Subversion Repositories idea

[/] [idea/] [trunk/] [behavioral/] [key_regulator/] [substract.vbe] - Rev 9

Compare with Previous | Blame | View Log

-- VHDL data flow description generated from `substract`
--              date : Mon Jul 30 16:47:36 2001


-- Entity Declaration

ENTITY substract IS
  PORT (
  a : in BIT;   -- a
  b : in BIT;   -- b
  bin : in BIT; -- bin
  diff : out BIT;       -- diff
  bout : out BIT;       -- bout
  vdd : in BIT; -- vdd
  vss : in BIT  -- vss
  );
END substract;


-- Architecture Declaration

ARCHITECTURE behaviour_data_flow OF substract IS

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


bout <= ((not (a) and b) or (bin and (not (a) or b)));

diff <= (a xor b xor bin);
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.