URL
https://opencores.org/ocsvn/xmatchpro/xmatchpro/trunk
Subversion Repositories xmatchpro
[/] [xmatchpro/] [trunk/] [xmw4-comdec/] [xmatch_sim7/] [src/] [PIPELINE_R4.vhd] - Rev 9
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_R4 -- -- version = 2.0 -- -- last update = 1/08/99 -- -- author = Jose Nunez -- -------------------------------------- -- FUNCTION -- pipeline R4 for compression -- PIN LIST -- FLUSH_IN : the flush signal from the csm pipeline -- CODE_IN : the 33 maximum bit of compressed code -- LENGTH_IN : the length of the compressed code -- COMP_IN : the comp signal pipeline from the csm -- CLEAR : the asyncronous clear -- CLK : the clk signal -- FLUSH_OUT : the output signals start here -- CODE_OUT : -- LENGTH_OUT : -- COMP_OUT : library IEEE; use IEEE.std_logic_1164.all; entity PIPELINE_R4 is port ( FLUSH_IN : in bit; CODE_IN : in bit_vector (34 downto 0); LENGTH_IN : in bit_vector (5 downto 0); COMP_IN :in bit; CLEAR:in bit; CLK :in bit; FLUSH_OUT:out bit; CODE_OUT:out bit_vector(34 downto 0); LENGTH_OUT:out bit_vector( 5 downto 0); COMP_OUT: out bit ); end PIPELINE_R4; architecture STRUCTURAL of PIPELINE_R4 is -- signal FLUSH_OUT_aux : bit; -- signal CODE_OUT_aux : bit_vector (32 downto 0); -- signal COMP_OUT_aux : bit; -- signal LENGTH_OUT_aux: bit_vector(5 downto 0); begin -- process(CLK,CLEAR) -- begin -- if (CLEAR='0') then -- FLUSH_OUT_aux<='1'; -- CODE_OUT_aux<="000000000000000000000000000000000"; -- COMP_OUT_aux<='1'; -- LENGTH_OUT_aux<="000000"; -- elsif ((CLK'event) and (CLK='1')) then -- FLUSH_OUT_aux<=FLUSH_IN; -- CODE_OUT_aux<=CODE_IN; -- COMP_OUT_aux<=COMP_IN; -- LENGTH_OUT_aux<=LENGTH_IN; -- end if; -- end process; -- FLUSH_OUT<=FLUSH_OUT_aux; -- CODE_OUT<=CODE_OUT_aux; -- COMP_OUT<=COMP_OUT_aux; -- LENGTH_OUT<=LENGTH_OUT_aux; FLUSH_OUT<=FLUSH_IN; CODE_OUT<=CODE_IN; COMP_OUT<=COMP_IN; LENGTH_OUT<=LENGTH_IN; end structural;