URL
https://opencores.org/ocsvn/xmatchpro/xmatchpro/trunk
Subversion Repositories xmatchpro
[/] [xmatchpro/] [trunk/] [xmw4-comdec/] [src/] [PIPELINE_R1_D.vhd] - Rev 8
Compare with Previous | Blame | View Log
--This library is free software; you can redistribute it and/or --modify it under the terms of the GNU Lesser General Public --License as published by the Free Software Foundation; either --version 2.1 of the License, or (at your option) any later version. --This library 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 --Lesser General Public License for more details. --You should have received a copy of the GNU Lesser General Public --License along with this library; if not, write to the Free Software --Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -- e_mail : j.l.nunez-yanez@byacom.co.uk -------------------------------------- -- ENTITY = PIPELINE_R1_D -- -- version = 1.0 -- -- last update = 1/08/99 -- -- author = Jose Nunez -- -------------------------------------- -- FUNCTION -- pipeline R1_D for decompression library IEEE; use IEEE.std_logic_1164.all; entity PIPELINE_R1_D is port( FULL_HIT_IN:in bit; MATCH_TYPE_IN:in bit_vector(3 downto 0); MATCH_LOC_IN:in bit_vector(3 downto 0); LIT_DATA_IN:in bit_vector(31 downto 0); LIT_MASK_IN : in bit_vector(4 downto 0); MOVE_ENABLE_D_IN:in bit; CLEAR:in bit; RESET : in bit; CLK:in bit; FULL_HIT_OUT:out bit; MATCH_TYPE_OUT:out bit_vector(3 downto 0); MATCH_LOC_OUT:out bit_vector(3 downto 0); LIT_DATA_OUT:out bit_vector(31 downto 0); LIT_MASK_OUT : out bit_vector(4 downto 0); MOVE_ENABLE_D_OUT:out bit ); end PIPELINE_R1_D; architecture STRUCTURAL of PIPELINE_R1_D is signal MOVE_ENABLE_D_OUT_aux : bit; begin process(CLK,CLEAR) begin if (CLEAR='0') then MOVE_ENABLE_D_OUT_aux<='1'; elsif ((CLK'event) and (CLK='1')) then if (RESET='0') then MOVE_ENABLE_D_OUT_aux<='1'; else MOVE_ENABLE_D_OUT_aux<=MOVE_ENABLE_D_IN; end if; end if; end process; MOVE_ENABLE_D_OUT<=MOVE_ENABLE_D_OUT_aux; FULL_HIT_OUT<=FULL_HIT_IN; MATCH_TYPE_OUT<=MATCH_TYPE_IN; MATCH_LOC_OUT<=MATCH_LOC_IN; LIT_DATA_OUT<=LIT_DATA_IN; LIT_MASK_OUT<= LIT_MASK_IN; end structural;