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

Subversion Repositories distributed_intelligence

[/] [distributed_intelligence/] [trunk/] [LIB/] [ALU_INT.vhd] - Blame information for rev 6

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

Line No. Rev Author Line
1 5 leoel
--              16 bits ALU INTERFACE
2 4 leoel
--
3 5 leoel
--      Purpose: This package defines types and constants for interfacing with the 16 bits ALU.
4 4 leoel
 
5
 
6
library IEEE;
7
use IEEE.STD_LOGIC_1164.all;
8
 
9 5 leoel
package ALU_INT is
10
        -- Op codes of the ALU
11 4 leoel
        type ALU_OPCODE is (bXOR, bAND, bOR, bNOT, SADD, UADD, SSUB, USUB, LSHIFT, RSHIFT, NOP);
12 5 leoel
 
13
        -- Limits of a 16 bit representation
14 4 leoel
        constant MAX_SIGNED:integer := (2**15)-1;
15
        constant MIN_SIGNED:integer := -(2**15);
16
 
17
        constant MAX_UNSIGNED:integer := (2**16)-1;
18
end ALU_INT;
19
 
20 5 leoel
package body ALU_INT is
21
end ALU_INT;
22
 

powered by: WebSVN 2.1.0

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