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

Subversion Repositories simple_fm_receiver

[/] [simple_fm_receiver/] [trunk/] [source/] [adder_18bit.vhdl] - Blame information for rev 36

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 14 arif_endro
-- $Id: adder_18bit.vhdl,v 1.3 2005-03-04 08:06:17 arif_endro Exp $
2 2 arif_endro
-------------------------------------------------------------------------------
3
-- Title       : Adder 18 bit
4
-- Project     : FM Receiver 
5
-------------------------------------------------------------------------------
6
-- File        : adder_18bit.vhdl
7
-- Author      : "Arif E. Nugroho" <arif_endro@yahoo.com>
8
-- Created     : 2004/12/01
9
-- Last update : 
10 13 arif_endro
-- Simulators  : 
11 2 arif_endro
-- Synthesizers: 
12
-- Target      : 
13
-------------------------------------------------------------------------------
14
-- Description : Ripple carry adder 18 bit with output 18 bit
15
-------------------------------------------------------------------------------
16 13 arif_endro
-- Copyright (C) 2004 Arif E. Nugroho
17 2 arif_endro
-- This VHDL design file is an open design; you can redistribute it and/or
18
-- modify it and/or implement it after contacting the author
19
-------------------------------------------------------------------------------
20 13 arif_endro
-------------------------------------------------------------------------------
21
-- 
22
--      THIS SOURCE FILE MAY BE USED AND DISTRIBUTED WITHOUT RESTRICTION
23
-- PROVIDED THAT THIS COPYRIGHT STATEMENT IS NOT REMOVED FROM THE FILE AND THAT
24
-- ANY DERIVATIVE WORK CONTAINS THE ORIGINAL COPYRIGHT NOTICE AND THE
25
-- ASSOCIATED DISCLAIMER.
26
-- 
27
-------------------------------------------------------------------------------
28
-- 
29
--      THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
30
-- IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
31
-- MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
32
-- EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
33
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
34
-- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
35
-- OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
36
-- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
37
-- OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
38
-- ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39
-- 
40
-------------------------------------------------------------------------------
41 2 arif_endro
 
42
library IEEE;
43
use IEEE.STD_LOGIC_1164.ALL;
44
 
45
entity adder_18bit is
46
   port (
47
      addend_18bit  : in  bit_vector (17 downto 0);
48
      augend_18bit  : in  bit_vector (17 downto 0);
49
      adder18_output: out bit_vector (17 downto 0)
50
      );
51
end adder_18bit;
52
 
53
architecture structural of adder_18bit is
54
 
55
   component fulladder
56
      port (
57
      addend        : in   bit;
58
      augend        : in   bit;
59
      carry_in      : in   bit;
60
      sum           : out  bit;
61
      carry         : out  bit
62
      );
63
   end component;
64
 
65
-- internal signal
66
signal c00 : bit;
67
signal c01 : bit;
68
signal c02 : bit;
69
signal c03 : bit;
70
signal c04 : bit;
71
signal c05 : bit;
72
signal c06 : bit;
73
signal c07 : bit;
74
signal c08 : bit;
75
signal c09 : bit;
76
signal c10 : bit;
77
signal c11 : bit;
78
signal c12 : bit;
79
signal c13 : bit;
80
signal c14 : bit;
81
signal c15 : bit;
82
signal c16 : bit;
83
signal c17 : bit;
84
signal c18 : bit;
85
 
86
begin
87
 
88
c00 <= '0';
89
 
90
fa17 : fulladder
91
   port map (
92
      addend     => addend_18bit(17),
93
      augend     => augend_18bit(17),
94
      carry_in   => c17,
95
      sum        => adder18_output(17),
96
      carry      => c18
97
      );
98
 
99
fa16 : fulladder
100
   port map (
101
      addend     => addend_18bit(16),
102
      augend     => augend_18bit(16),
103
      carry_in   => c16,
104
      sum        => adder18_output(16),
105
      carry      => c17
106
      );
107
 
108
fa15 : fulladder
109
   port map (
110
      addend     => addend_18bit(15),
111
      augend     => augend_18bit(15),
112
      carry_in   => c15,
113
      sum        => adder18_output(15),
114
      carry      => c16
115
      );
116
 
117
fa14 : fulladder
118
   port map (
119
      addend     => addend_18bit(14),
120
      augend     => augend_18bit(14),
121
      carry_in   => c14,
122
      sum        => adder18_output(14),
123
      carry      => c15
124
      );
125
 
126
fa13 : fulladder
127
   port map (
128
      addend     => addend_18bit(13),
129
      augend     => augend_18bit(13),
130
      carry_in   => c13,
131
      sum        => adder18_output(13),
132
      carry      => c14
133
      );
134
 
135
fa12 : fulladder
136
   port map (
137
      addend     => addend_18bit(12),
138
      augend     => augend_18bit(12),
139
      carry_in   => c12,
140
      sum        => adder18_output(12),
141
      carry      => c13
142
      );
143
 
144
fa11 : fulladder
145
   port map (
146
      addend     => addend_18bit(11),
147
      augend     => augend_18bit(11),
148
      carry_in   => c11,
149
      sum        => adder18_output(11),
150
      carry      => c12
151
      );
152
 
153
fa10 : fulladder
154
   port map (
155
      addend     => addend_18bit(10),
156
      augend     => augend_18bit(10),
157
      carry_in   => c10,
158
      sum        => adder18_output(10),
159
      carry      => c11
160
      );
161
 
162
fa09 : fulladder
163
   port map (
164
      addend     => addend_18bit(09),
165
      augend     => augend_18bit(09),
166
      carry_in   => c09,
167
      sum        => adder18_output(09),
168
      carry      => c10
169
      );
170
 
171
fa08 : fulladder
172
   port map (
173
      addend     => addend_18bit(08),
174
      augend     => augend_18bit(08),
175
      carry_in   => c08,
176
      sum        => adder18_output(08),
177
      carry      => c09
178
      );
179
 
180
fa07 : fulladder
181
   port map (
182
      addend     => addend_18bit(07),
183
      augend     => augend_18bit(07),
184
      carry_in   => c07,
185
      sum        => adder18_output(07),
186
      carry      => c08
187
      );
188
 
189
fa06 : fulladder
190
   port map (
191
      addend     => addend_18bit(06),
192
      augend     => augend_18bit(06),
193
      carry_in   => c06,
194
      sum        => adder18_output(06),
195
      carry      => c07
196
      );
197
 
198
fa05 : fulladder
199
   port map (
200
      addend     => addend_18bit(05),
201
      augend     => augend_18bit(05),
202
      carry_in   => c05,
203
      sum        => adder18_output(05),
204
      carry      => c06
205
      );
206
 
207
fa04 : fulladder
208
   port map (
209
      addend     => addend_18bit(04),
210
      augend     => augend_18bit(04),
211
      carry_in   => c04,
212
      sum        => adder18_output(04),
213
      carry      => c05
214
      );
215
 
216
fa03 : fulladder
217
   port map (
218
      addend     => addend_18bit(03),
219
      augend     => augend_18bit(03),
220
      carry_in   => c03,
221
      sum        => adder18_output(03),
222
      carry      => c04
223
      );
224
 
225
fa02 : fulladder
226
   port map (
227
      addend     => addend_18bit(02),
228
      augend     => augend_18bit(02),
229
      carry_in   => c02,
230
      sum        => adder18_output(02),
231
      carry      => c03
232
      );
233
 
234
fa01 : fulladder
235
   port map (
236
      addend     => addend_18bit(01),
237
      augend     => augend_18bit(01),
238
      carry_in   => c01,
239
      sum        => adder18_output(01),
240
      carry      => c02
241
      );
242
 
243
fa00 : fulladder
244
   port map (
245
      addend     => addend_18bit(00),
246
      augend     => augend_18bit(00),
247
      carry_in   => c00,
248
      sum        => adder18_output(00),
249
      carry      => c01
250
      );
251
 
252
end structural;

powered by: WebSVN 2.1.0

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