##// END OF EJS Templates
Fusion avec JC
Fusion avec JC

File last commit:

r147:22d60c2dfe8c martin
r156:2d172732dabf merge martin
Show More
Matrix.vhd
68 lines | 2.9 KiB | text/x-vhdl | VhdlLexer
martin
APB_MATRIX added, first version
r70 ------------------------------------------------------------------------------
-- This file is a part of the LPP VHDL IP LIBRARY
-- Copyright (C) 2009 - 2010, Laboratory of Plasmas Physic - CNRS
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-------------------------------------------------------------------------------
-- Author : Martin Morlot
-- Mail : martin.morlot@lpp.polytechnique.fr
-------------------------------------------------------------------------------
library IEEE;
use IEEE.numeric_std.all;
use IEEE.std_logic_1164.all;
martin
Modif ALU...
r147 library lpp;
martin
Light Leon version "TEST-LEON-M7-LPP"...
r79 use lpp.lpp_matrix.all;
martin
Modif ALU...
r147 use lpp.general_purpose.all;
martin
APB_MATRIX added, first version
r70
--! Programme de calcule de Matrice Spectral, compos� d'une ALU et de son Driver
entity Matrix is
generic(
Input_SZ : integer := 16);
port(
martin
APB_MATRIX, second version /!\ not stable /!\
r75 clk : in std_logic; --! Horloge du composant
raz : in std_logic; --! Reset general du composant
IN1 : in std_logic_vector(Input_SZ-1 downto 0); --! Donn�e d'entr�e
IN2 : in std_logic_vector(Input_SZ-1 downto 0); --! Donn�e d'entr�e
Take : in std_logic; --! Flag, op�rande r�cup�r�
Received : in std_logic; --! Flag, R�sultat bien ressu
Conjugate : in std_logic; --! Flag, Calcul sur un complexe et son conjugu�
Valid : out std_logic; --! Flag, R�sultat disponible
Read : out std_logic; --! Flag, op�rande disponible
Result : out std_logic_vector(2*Input_SZ-1 downto 0) --! R�sultat du calcul
martin
APB_MATRIX added, first version
r70 );
end Matrix;
architecture ar_Matrix of Matrix is
martin
Modif ALU...
r147 signal CTRL : std_logic_vector(2 downto 0);
signal COMP : std_logic_vector(1 downto 0);
martin
APB_MATRIX added, first version
r70 signal OP1 : std_logic_vector(Input_SZ-1 downto 0);
signal OP2 : std_logic_vector(Input_SZ-1 downto 0);
begin
martin
Light Leon version "TEST-LEON-M7-LPP"...
r79
DRIVE : ALU_Driver
martin
APB_MATRIX added, first version
r70 generic map(Input_SZ,Input_SZ)
martin
Modif ALU...
r147 port map(clk,raz,IN1,IN2,Take,Received,Conjugate,Valid,Read,CTRL,COMP,OP1,OP2);
martin
APB_MATRIX added, first version
r70
martin
Modif ALU...
r147 ALU0 : ALU
martin
APB_MATRIX added, first version
r70 generic map(1,0,Input_SZ,Input_SZ)
martin
Modif ALU...
r147 port map(clk,raz,CTRL,COMP,OP1,OP2,Result);
martin
APB_MATRIX added, first version
r70
end ar_Matrix;