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

Subversion Repositories jart

[/] [jart/] [branches/] [ver0branch/] [p1ax.vhd] - Rev 57

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

library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_signed.all;
 
entity p1ax is 
	generic (	W	: integer := 36 );
 
	port	(	
				clk,rst,enable		: in std_logic;	-- The usual control signals.
				dataa,datab,datac	: in std_logic_vector (W-1 downto 0);
				result				: out std_logic_vector (W-1 downto 0)
	);
 
end entity;
 
architecture rtl of p1ax is 
 
	signal sdresult0	: std_logic_vector (W-1 downto 0);
	--signal sdresult1	: std_logic_vector (W-1 downto 0);
 
 
begin
 
	sdresult0 <= dataa+datab+datac;
	--sdresult1 <= sdresult0+datac;
	process (clk,rst,enable)
	begin
 
		if rst = '0' then
 
			result <= (others =>'0');
 
		elsif rising_edge(clk) and enable ='1' then
 
 
			result <= sdresult0;
 
		end if;
 
	end process;
 
 
 
 
end rtl;
 
 
 
 
 
 
 
 
 
 

Go to most recent revision | 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.