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

Subversion Repositories turbocodes

[/] [turbocodes/] [trunk/] [src/] [vhdl/] [accDistSel_synth.vhd] - Blame information for rev 7

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 7 dbrochart
----------------------------------------------------------------------
2
----                                                              ----
3
----  accDistSel_synth.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
architecture synth of accDistSel is
44
    signal comp         : std_logic_vector(23 downto 0);
45
    signal accDistCod_s : ARRAY8b;
46
begin
47
    accDistCod <= accDistCod_s;
48
    min4_g : for i in 0 to 7 generate
49
        min4_i : min4   port map    (
50
                                    op1     => accDist(FROM2TO(4 * i)),
51
                                    op2     => accDist(FROM2TO(4 * i + 1)),
52
                                    op3     => accDist(FROM2TO(4 * i + 2)),
53
                                    op4     => accDist(FROM2TO(4 * i + 3)),
54
                                    res1    => comp(3 * i),
55
                                    res2    => comp(3 * i + 1),
56
                                    res3    => comp(3 * i + 2)
57
                                    );
58
    end generate;
59
    cod2_g : for i in 0 to 7 generate
60
        cod2_i : cod2   port map    (
61
                                    in1     => comp(3 * i),
62
                                    in2     => comp(3 * i + 1),
63
                                    in3     => comp(3 * i + 2),
64
                                    outCod  => accDistCod_s(i)
65
                                    );
66
    end generate;
67
    mux4_g : for i in 0 to 7 generate
68
        mux4_i : mux4   port map    (
69
                                    in1     => accDist(FROM2TO(4 * i)),
70
                                    in2     => accDist(FROM2TO(4 * i + 1)),
71
                                    in3     => accDist(FROM2TO(4 * i + 2)),
72
                                    in4     => accDist(FROM2TO(4 * i + 3)),
73
                                    sel     => accDistCod_s(i),
74
                                    outSel  => accDistOut(i)
75
                                    );
76
    end generate;
77
end;

powered by: WebSVN 2.1.0

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