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

Subversion Repositories opencpu32

[/] [opencpu32/] [trunk/] [hdl/] [opencpu32/] [Alu.vhd] - Blame information for rev 5

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

Line No. Rev Author Line
1 5 leonardoar
--! @file
2
--! @brief Arithmetic logic unit http://en.wikipedia.org/wiki/Arithmetic_logic_unit
3
 
4
--! Use standard library
5
library IEEE;
6
use IEEE.STD_LOGIC_1164.ALL;
7
 
8
--! Use CPU Definitions package
9
library pkgOpenCPU32;
10
 
11
--! ALU is a digital circuit that performs arithmetic and logical operations.
12
 
13
--! ALU is a digital circuit that performs arithmetic and logical operations. It's the fundamental part of the CPU
14
entity Alu is
15
    Port ( A : in  STD_LOGIC_VECTOR (7 downto 0);                --! Alu Operand 1
16
           B : in  STD_LOGIC_VECTOR (7 downto 0);                --! Alu Operand 2
17
           S : out  STD_LOGIC_VECTOR (7 downto 0);               --! Alu Output
18
           sel : in  STD_LOGIC_VECTOR (2 downto 0));     --! Select operation
19
end Alu;
20
 
21
--! @brief Architure definition of the ALU
22
--! @details More details about this mux element.
23
architecture Behavioral of Alu is
24
 
25
begin
26
 
27
 
28
end Behavioral;
29
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.