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

Subversion Repositories distributed_intelligence

[/] [distributed_intelligence/] [trunk/] [LIB/] [ALU_INT.vhd] - Rev 5

Compare with Previous | Blame | View Log

-- 		16 bits ALU INTERFACE
--
--	Purpose: This package defines types and constants for interfacing with the 16 bits ALU.
 
 
library IEEE;
use IEEE.STD_LOGIC_1164.all;
 
package ALU_INT is
	-- Op codes of the ALU
	type ALU_OPCODE is (bXOR, bAND, bOR, bNOT, SADD, UADD, SSUB, USUB, LSHIFT, RSHIFT, NOP);
 
	-- Limits of a 16 bit representation
	constant MAX_SIGNED:integer := (2**15)-1;
	constant MIN_SIGNED:integer := -(2**15);
 
	constant MAX_UNSIGNED:integer := (2**16)-1;
end ALU_INT;
 
package body ALU_INT is
end ALU_INT;
 
 

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.