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

Subversion Repositories dirac

[/] [dirac/] [trunk/] [src/] [testbench/] [ArithmeticCoderTestbench.vhd] - Diff between revs 8 and 9

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 8 Rev 9
Line 1... Line 1...
-- ***** BEGIN LICENSE BLOCK *****
-- ***** BEGIN LICENSE BLOCK *****
-- 
-- 
-- 
-- $Id: ArithmeticCoderTestbench.vhd,v 1.5 2006-09-06 18:41:06 petebleackley Exp $ $Name: not supported by cvs2svn $
--  Version: MPL 1.1/GPL 2.0/LGPL 2.1
-- *
-- 
-- * Version: MPL 1.1/GPL 2.0/LGPL 2.1
--  The contents of this file are subject to the Mozilla Public License
-- *
--  Version 1.1 (the "License"); you may not use this file except in compliance
-- * The contents of this file are subject to the Mozilla Public License
--  with the License. You may obtain a copy of the License at
-- * Version 1.1 (the "License"); you may not use this file except in compliance
--  http://www.mozilla.org/MPL/
-- * with the License. You may obtain a copy of the License at
-- 
-- * http://www.mozilla.org/MPL/
--  Software distributed under the License is distributed on an "AS IS" basis,
-- *
--  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
-- * Software distributed under the License is distributed on an "AS IS" basis,
--  the specific language governing rights and limitations under the License.
-- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
-- 
-- * the specific language governing rights and limitations under the License.
--  The Original Code is BBC Research and Development code.
-- *
-- 
-- * The Original Code is BBC Research and Development code.
--  The Initial Developer of the Original Code is the British Broadcasting
-- *
--  Corporation.
-- * The Initial Developer of the Original Code is the British Broadcasting
--  Portions created by the Initial Developer are Copyright (C) 2006.
-- * Corporation.
--  All Rights Reserved.
-- * Portions created by the Initial Developer are Copyright (C) 2004.
-- 
-- * All Rights Reserved.
--  Contributor(s): Peter Bleackley (Original author)
-- *
-- 
-- * Contributor(s): Peter Bleackley (Original author)
--  Alternatively, the contents of this file may be used under the terms of
-- *
--  the GNU General Public License Version 2 (the "GPL"), or the GNU Lesser
-- * Alternatively, the contents of this file may be used under the terms of
--  Public License Version 2.1 (the "LGPL"), in which case the provisions of
-- * the GNU General Public License Version 2 (the "GPL"), or the GNU Lesser
--  the GPL or the LGPL are applicable instead of those above. If you wish to
-- * Public License Version 2.1 (the "LGPL"), in which case the provisions of
--  allow use of your version of this file only under the terms of the either
-- * the GPL or the LGPL are applicable instead of those above. If you wish to
--  the GPL or LGPL and not to allow others to use your version of this file
-- * allow use of your version of this file only under the terms of the either
--  under the MPL, indicate your decision by deleting the provisions above
-- * the GPL or LGPL and not to allow others to use your version of this file
--  and replace them with the notice and other provisions required by the GPL
-- * under the MPL, indicate your decision by deleting the provisions above
--  or LGPL. If you do not delete the provisions above, a recipient may use
-- * and replace them with the notice and other provisions required by the GPL
--  your version of this file under the terms of any one of the MPL, the GPL
-- * or LGPL. If you do not delete the provisions above, a recipient may use
--  or the LGPL.
-- * your version of this file under the terms of any one of the MPL, the GPL
 
-- * or the LGPL.
-- * ***** END LICENSE BLOCK ***** */
-- * ***** END LICENSE BLOCK ***** */
 
 
LIBRARY ieee;
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
USE ieee.std_logic_1164.ALL;
USE ieee.numeric_std.ALL;
USE ieee.numeric_std.ALL;
Line 309... Line 310...
                                end if;
                                end if;
                        elsif STATE = EXP_GOLOMB then
                        elsif STATE = EXP_GOLOMB then
                                if EXP_GOLOMB_READY = '0' then
                                if EXP_GOLOMB_READY = '0' then
                                        STATE <= WRITE_DATA;
                                        STATE <= WRITE_DATA;
                                        INDEX := 0;
                                        INDEX := 0;
 
                                        if EGPOSITION /= 128 then
                                        write(coded_stream,character'val(WRITEVAL));
                                        write(coded_stream,character'val(WRITEVAL));
 
                                        end if;
                                        PLACE := 7;
                                        PLACE := 7;
                                else
                                else
                                        if EXP_GOLOMB_DATA = '1' then
                                        if EXP_GOLOMB_DATA = '1' then
                                                WRITEVAL := WRITEVAL + EGPOSITION;
                                                WRITEVAL := WRITEVAL + EGPOSITION;
                                        end if;
                                        end if;

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.