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

Subversion Repositories turbocodes

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 7 dbrochart
----------------------------------------------------------------------
2
----                                                              ----
3
----  min8_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 min8 is
44
    signal tmp      : ARRAY6a;
45
    signal res_s    : std_logic_vector(6 downto 0);
46
begin
47
    res <= res_s;
48
    cmp2_i0 : cmp2  port map    (
49
                                op1     => op(0),
50
                                op2     => op(1),
51
                                res     => res_s(0)
52
                                );
53
    cmp2_i1 : cmp2  port map    (
54
                                op1     => op(2),
55
                                op2     => op(3),
56
                                res     => res_s(1)
57
                                );
58
    cmp2_i2 : cmp2  port map    (
59
                                op1     => op(4),
60
                                op2     => op(5),
61
                                res     => res_s(2)
62
                                );
63
    cmp2_i3 : cmp2  port map    (
64
                                op1     => op(6),
65
                                op2     => op(7),
66
                                res     => res_s(3)
67
                                );
68
    mux2_i0 : mux2  port map    (
69
                                in1     => op(0),
70
                                in2     => op(1),
71
                                sel     => res_s(0),
72
                                outSel  => tmp(0)
73
                                );
74
    mux2_i1 : mux2  port map    (
75
                                in1     => op(2),
76
                                in2     => op(3),
77
                                sel     => res_s(1),
78
                                outSel  => tmp(1)
79
                                );
80
    mux2_i2 : mux2  port map    (
81
                                in1     => op(4),
82
                                in2     => op(5),
83
                                sel     => res_s(2),
84
                                outSel  => tmp(2)
85
                                );
86
    mux2_i3 : mux2  port map    (
87
                                in1     => op(6),
88
                                in2     => op(7),
89
                                sel     => res_s(3),
90
                                outSel  => tmp(3)
91
                                );
92
    cmp2_i4 : cmp2  port map    (
93
                                op1     => tmp(0),
94
                                op2     => tmp(1),
95
                                res     => res_s(4)
96
                                );
97
    cmp2_i5 : cmp2  port map    (
98
                                op1     => tmp(2),
99
                                op2     => tmp(3),
100
                                res     => res_s(5)
101
                                );
102
    mux2_i4 : mux2  port map    (
103
                                in1     => tmp(0),
104
                                in2     => tmp(1),
105
                                sel     => res_s(4),
106
                                outSel  => tmp(4)
107
                                );
108
    mux2_i5 : mux2  port map    (
109
                                in1     => tmp(2),
110
                                in2     => tmp(3),
111
                                sel     => res_s(5),
112
                                outSel  => tmp(5)
113
                                );
114
    cmp2_i6 : cmp2  port map    (
115
                                op1     => tmp(4),
116
                                op2     => tmp(5),
117
                                res     => res_s(6)
118
                                );
119
end;

powered by: WebSVN 2.1.0

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