| 1 |
7 |
dbrochart |
----------------------------------------------------------------------
|
| 2 |
|
|
---- ----
|
| 3 |
|
|
---- cod3_e.vhd ----
|
| 4 |
|
|
---- ----
|
| 5 |
|
|
---- This file is part of the turbo decoder IP core project ----
|
| 6 |
|
|
---- http://www.opencores.org/projects/turbocodes/ ----
|
| 7 |
|
|
---- ----
|
| 8 |
|
|
---- Author(s): ----
|
| 9 |
|
|
---- - David Brochart(dbrochart@opencores.org) ----
|
| 10 |
|
|
---- ----
|
| 11 |
|
|
---- All additional information is available in the README.txt ----
|
| 12 |
|
|
---- file. ----
|
| 13 |
|
|
---- ----
|
| 14 |
|
|
----------------------------------------------------------------------
|
| 15 |
|
|
---- ----
|
| 16 |
|
|
---- Copyright (C) 2005 Authors ----
|
| 17 |
|
|
---- ----
|
| 18 |
|
|
---- This source file may be used and distributed without ----
|
| 19 |
|
|
---- restriction provided that this copyright statement is not ----
|
| 20 |
|
|
---- removed from the file and that any derivative work contains ----
|
| 21 |
|
|
---- the original copyright notice and the associated disclaimer. ----
|
| 22 |
|
|
---- ----
|
| 23 |
|
|
---- This source file is free software; you can redistribute it ----
|
| 24 |
|
|
---- and/or modify it under the terms of the GNU Lesser General ----
|
| 25 |
|
|
---- Public License as published by the Free Software Foundation; ----
|
| 26 |
|
|
---- either version 2.1 of the License, or (at your option) any ----
|
| 27 |
|
|
---- later version. ----
|
| 28 |
|
|
---- ----
|
| 29 |
|
|
---- This source is distributed in the hope that it will be ----
|
| 30 |
|
|
---- useful, but WITHOUT ANY WARRANTY; without even the implied ----
|
| 31 |
|
|
---- warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ----
|
| 32 |
|
|
---- PURPOSE. See the GNU Lesser General Public License for more ----
|
| 33 |
|
|
---- details. ----
|
| 34 |
|
|
---- ----
|
| 35 |
|
|
---- You should have received a copy of the GNU Lesser General ----
|
| 36 |
|
|
---- Public License along with this source; if not, download it ----
|
| 37 |
|
|
---- from http://www.opencores.org/lgpl.shtml ----
|
| 38 |
|
|
---- ----
|
| 39 |
|
|
----------------------------------------------------------------------
|
| 40 |
|
|
|
| 41 |
|
|
|
| 42 |
|
|
|
| 43 |
|
|
library ieee;
|
| 44 |
|
|
use ieee.std_logic_1164.all;
|
| 45 |
|
|
|
| 46 |
|
|
entity cod3 is -- 3-bit coder
|
| 47 |
|
|
port (
|
| 48 |
|
|
inSig : in std_logic_vector(6 downto 0); -- 7 1-bit input signals
|
| 49 |
|
|
outCod : out std_logic_vector(2 downto 0) -- 3-bit coded value
|
| 50 |
|
|
);
|
| 51 |
|
|
end cod3;
|