URL
https://opencores.org/ocsvn/simple_fm_receiver/simple_fm_receiver/trunk
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
2 |
arif_endro |
-- $Id: fulladder.vhdl,v 1.1.1.1 2005-01-04 02:05:58 arif_endro Exp $
|
2 |
|
|
-------------------------------------------------------------------------------
|
3 |
|
|
-- Title : Full Adder component
|
4 |
|
|
-- Project : FM Receiver
|
5 |
|
|
-------------------------------------------------------------------------------
|
6 |
|
|
-- File : fulladder.vhdl
|
7 |
|
|
-- Author : "Arif E. Nugroho" <arif_endro@yahoo.com>
|
8 |
|
|
-- Created : 2004/12/01
|
9 |
|
|
-- Last update :
|
10 |
|
|
-- Simulators : Modelsim 6.0
|
11 |
|
|
-- Synthesizers:
|
12 |
|
|
-- Target :
|
13 |
|
|
-------------------------------------------------------------------------------
|
14 |
|
|
-- Description : Simple one bit adder with carry
|
15 |
|
|
-------------------------------------------------------------------------------
|
16 |
|
|
-- Copyright (c) 2004 Arif E. Nugroho
|
17 |
|
|
-- This VHDL design file is an open design; you can redistribute it and/or
|
18 |
|
|
-- modify it and/or implement it after contacting the author
|
19 |
|
|
-------------------------------------------------------------------------------
|
20 |
|
|
|
21 |
|
|
library IEEE;
|
22 |
|
|
use IEEE.STD_LOGIC_1164.ALL;
|
23 |
|
|
use IEEE.STD_LOGIC_arith.ALL;
|
24 |
|
|
|
25 |
|
|
entity fulladder is
|
26 |
|
|
port (
|
27 |
|
|
addend : in bit;
|
28 |
|
|
augend : in bit;
|
29 |
|
|
carry_in : in bit;
|
30 |
|
|
sum : out bit;
|
31 |
|
|
carry : out bit
|
32 |
|
|
);
|
33 |
|
|
end fulladder;
|
34 |
|
|
|
35 |
|
|
architecture data_flow of fulladder is
|
36 |
|
|
begin
|
37 |
|
|
sum <= ((addend xor augend) xor carry_in);
|
38 |
|
|
carry <= ((addend and augend) or (carry_in and (addend or augend)));
|
39 |
|
|
end data_flow;
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.