File: adder4.vhdl

package info (click to toggle)
alliance 5.0-20120515-6
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 70,324 kB
  • ctags: 39,977
  • sloc: ansic: 350,299; vhdl: 34,227; yacc: 27,122; sh: 12,416; cpp: 9,478; makefile: 7,057; lex: 3,684
file content (21 lines) | stat: -rw-r--r-- 416 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_arith.ALL;
use IEEE.STD_LOGIC_unsigned.ALL;


entity Adder4 is

    port ( A   : in Std_Logic_Vector(3 downto 0) ;
           B   : in Std_Logic_Vector(3 downto 0) ;
           RESULT : out Std_Logic_Vector(3 downto 0) );

end Adder4;


architecture DataFlow OF Adder4 is
begin

   RESULT <= std_logic_vector( unsigned(A) + unsigned(B) );

end DataFlow;