1 |
9 |
arif_endro |
%%%%% $Id: simple_fm_receiver.tex,v 1.1 2005-01-25 04:46:05 arif_endro Exp $
|
2 |
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
3 |
|
|
%%%%% Title : Simple FM Receiver DOCS
|
4 |
|
|
%%%%% Project : FM Receiver
|
5 |
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
6 |
|
|
%%%%% Author : Arif E. Nugroho
|
7 |
|
|
%%%%%
|
8 |
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
9 |
|
|
%%%%% Description : Simple FM Receiver documentations file
|
10 |
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
11 |
|
|
%%%%% Copyright (c) 2005 Arif E. Nugroho
|
12 |
|
|
%%%%% This VHDL design file is an open design; you can redistribute it and/or
|
13 |
|
|
%%%%% modify it and/or implement it after contacting the author
|
14 |
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
15 |
|
|
|
16 |
|
|
\documentclass[a4paper,10pt]{article}
|
17 |
|
|
\usepackage[dvips]{graphics}
|
18 |
|
|
\usepackage[english]{babel}
|
19 |
|
|
\usepackage{doublespace}
|
20 |
|
|
\usepackage{epsf}
|
21 |
|
|
\usepackage{fancybox}
|
22 |
|
|
\usepackage{fancyheadings}
|
23 |
|
|
\usepackage{float}
|
24 |
|
|
\usepackage{graphicx}
|
25 |
|
|
\usepackage{here}
|
26 |
|
|
\usepackage{rotate}
|
27 |
|
|
\usepackage{isolatin1}
|
28 |
|
|
\usepackage{palatino}
|
29 |
|
|
\usepackage{picinpar}
|
30 |
|
|
\usepackage{psfig}
|
31 |
|
|
\usepackage{rotate}
|
32 |
|
|
\usepackage{subfigure}
|
33 |
|
|
\usepackage{sverb}
|
34 |
|
|
\usepackage{t1enc}
|
35 |
|
|
\usepackage{wrapfig}
|
36 |
|
|
|
37 |
|
|
\setlength{\topmargin} {0cm}
|
38 |
|
|
\setlength{\headheight} {1cm}
|
39 |
|
|
\setlength{\textheight} {21cm}
|
40 |
|
|
\setlength{\textwidth} {16cm}
|
41 |
|
|
\setlength{\oddsidemargin} {0cm}
|
42 |
|
|
\setlength{\evensidemargin}{0cm}
|
43 |
|
|
\setlength{\columnsep} {0.125in}
|
44 |
|
|
\setlength{\columnseprule} {0.5pt}
|
45 |
|
|
\setlength{\footskip} {1cm}
|
46 |
|
|
\renewcommand{\headrulewidth}{0.4pt}
|
47 |
|
|
\renewcommand{\footrulewidth}{0.4pt}
|
48 |
|
|
\setstretch{1}
|
49 |
|
|
|
50 |
|
|
\newlength{\verbatimbox}
|
51 |
|
|
\settowidth{\verbatimbox}{\scriptsize\tt
|
52 |
|
|
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
53 |
|
|
}
|
54 |
|
|
|
55 |
|
|
\newlength{\verbatimboxhalf}
|
56 |
|
|
\settowidth{\verbatimboxhalf}{\scriptsize\tt
|
57 |
|
|
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
58 |
|
|
}
|
59 |
|
|
|
60 |
|
|
\newenvironment{sourcelisting}
|
61 |
|
|
{\VerbatimEnvironment\par\noindent\scriptsize
|
62 |
|
|
\begin{Sbox}\begin{minipage}{\verbatimbox}\begin{Verbatim}}%
|
63 |
|
|
{\end{Verbatim}\end{minipage}\end{Sbox}
|
64 |
|
|
\setlength{\fboxsep}{3mm}\center
|
65 |
|
|
\shadowbox{\TheSbox}\normalsize\par\noindent}
|
66 |
|
|
|
67 |
|
|
\newenvironment{sourcelistingtiny}
|
68 |
|
|
{\VerbatimEnvironment\par\noindent\tiny
|
69 |
|
|
\begin{Sbox}\begin{minipage}{\verbatimboxhalf}\begin{Verbatim}}%
|
70 |
|
|
{\end{Verbatim}\end{minipage}\end{Sbox}
|
71 |
|
|
\setlength{\fboxsep}{3mm}\center
|
72 |
|
|
\shadowbox{\TheSbox}\normalsize\par\noindent}
|
73 |
|
|
|
74 |
|
|
\newenvironment{commandline}
|
75 |
|
|
{\VerbatimEnvironment\par\vspace*{2mm}\noindent\footnotesize
|
76 |
|
|
\begin{Sbox}\begin{minipage}{\verbatimbox}\begin{Verbatim}}%
|
77 |
|
|
{\end{Verbatim}\end{minipage}\end{Sbox}\setlength{\shadowsize}{2pt}%
|
78 |
|
|
\shadowbox{\TheSbox}\normalsize\par\noindent}
|
79 |
|
|
|
80 |
|
|
\renewcommand {\thefigure}{\arabic{section}-\arabic{figure}}
|
81 |
|
|
|
82 |
|
|
\pagestyle{fancy}
|
83 |
|
|
\chead{}
|
84 |
|
|
\lhead{\Large \bfseries \texttt{Simple FM Receiver}}
|
85 |
|
|
\rhead{\bfseries \texttt{\leftmark} \hspace{0.5cm}}
|
86 |
|
|
\rfoot{\bfseries \texttt{Arif E. Nugroho}}
|
87 |
|
|
\cfoot{www.opencores.org}
|
88 |
|
|
\lfoot{\bfseries \texttt{\thepage}}
|
89 |
|
|
\newcommand { \ssection } [1] { %
|
90 |
|
|
{\section [#1] {\centering \sc \bf \\ #1 } } }
|
91 |
|
|
\begin{document}
|
92 |
|
|
\pagenumbering{roman}
|
93 |
|
|
\thispagestyle{empty}
|
94 |
|
|
\begin{center}
|
95 |
|
|
\Huge \textbf {\textit{Simple FM Receiver}}\\
|
96 |
|
|
\vspace{3.0cm}
|
97 |
|
|
%\large \textbf {\texttt{Arif E. Nugroho \\<arif\_endro@yahoo.com>}}
|
98 |
|
|
\large \textbf {\texttt{Arif E. Nugroho \\<arif\_endro@opencores.org>}}
|
99 |
|
|
\vspace{3.0cm}
|
100 |
|
|
\end{center}
|
101 |
|
|
|
102 |
|
|
\begin{figure}[H]
|
103 |
|
|
\center
|
104 |
|
|
\includegraphics[width=7.5cm,height=7.5cm]{fm_cores.eps}
|
105 |
|
|
\end{figure}
|
106 |
|
|
|
107 |
|
|
\vspace{0.50cm}
|
108 |
|
|
\begin{tabular}{p{3.0cm}p{10cm}}
|
109 |
|
|
& VLSI Research Group ITB\\
|
110 |
|
|
& LabTek VIII Institut Teknologi Bandung\\
|
111 |
|
|
& Jl. Ganesha 10 Bandung 40141 West Java Indonesia\\
|
112 |
|
|
\end{tabular}
|
113 |
|
|
|
114 |
|
|
|
115 |
|
|
\vspace{1.00cm}
|
116 |
|
|
\begin{center}
|
117 |
|
|
|
118 |
|
|
\Large \textbf{\texttt{2005}}
|
119 |
|
|
\end{center}
|
120 |
|
|
|
121 |
|
|
\newpage
|
122 |
|
|
|
123 |
|
|
\tableofcontents
|
124 |
|
|
\newpage
|
125 |
|
|
|
126 |
|
|
\listoffigures
|
127 |
|
|
\newpage
|
128 |
|
|
\pagenumbering{arabic}
|
129 |
|
|
\setcounter{figure}{0}
|
130 |
|
|
|
131 |
|
|
\section{Circuit Block}
|
132 |
|
|
Simple FM Receiver is based on PLL operation to capture FM input
|
133 |
|
|
data. The design architecture is like ordinary PLL using basic component
|
134 |
|
|
like phase detector, vco (realize using an nco), loop filter, and other
|
135 |
|
|
supporting component.
|
136 |
|
|
\begin{figure}[H]
|
137 |
|
|
\center
|
138 |
|
|
\includegraphics[width=15cm,height=12cm]{fm_receiver.eps}
|
139 |
|
|
\caption {Architecture Schematics}
|
140 |
|
|
\end{figure}
|
141 |
|
|
This design is based on example circuit in
|
142 |
|
|
\textbf{Mr. Wada} homepage with some modification.
|
143 |
|
|
|
144 |
|
|
\setcounter{figure}{0}
|
145 |
|
|
\section{Circuit Explanation}
|
146 |
|
|
\subsection{Core Component}
|
147 |
|
|
\begin{itemize}
|
148 |
|
|
\item \textbf{fm}\\
|
149 |
|
|
It's the main component, it's purpose is to connect
|
150 |
|
|
many other component to form an PLL. It's function is to
|
151 |
|
|
demodulate the FM data.
|
152 |
|
|
|
153 |
|
|
\begin{figure}[H]
|
154 |
|
|
\center
|
155 |
|
|
\includegraphics[width=10.0cm,height=5.0cm]{fm.eps}
|
156 |
|
|
\caption {FM core component}
|
157 |
|
|
\end{figure}
|
158 |
|
|
|
159 |
|
|
\end{itemize}
|
160 |
|
|
\subsection{Main Component}
|
161 |
|
|
\begin{itemize}
|
162 |
|
|
\item \textbf{nco}\\
|
163 |
|
|
The NCO functions it's like VCO in analog PLL.
|
164 |
|
|
This NCO works like variable binary up-counter that controlled
|
165 |
|
|
by input. Because its controlled by input then it's output
|
166 |
|
|
frequency is change along with it's input value.
|
167 |
|
|
|
168 |
|
|
\begin{figure}[H]
|
169 |
|
|
\center
|
170 |
|
|
\includegraphics[width=10.0cm,height=5.0cm]{nco.eps}
|
171 |
|
|
\caption {NCO block diagram}
|
172 |
|
|
\end{figure}
|
173 |
|
|
|
174 |
|
|
\item \textbf{phase\_detector}\\
|
175 |
|
|
It's functions is to detect the phase
|
176 |
|
|
different between input signal and signal from nco. This
|
177 |
|
|
component is operate by multiplying input signal and output NCO.
|
178 |
|
|
|
179 |
|
|
\begin{figure}[H]
|
180 |
|
|
\center
|
181 |
|
|
\includegraphics[width=10.0cm,height=5.0cm]{phase_detector.eps}
|
182 |
|
|
\caption {Phase detector block diagram}
|
183 |
|
|
\end{figure}
|
184 |
|
|
|
185 |
|
|
\item \textbf{loop\_filter}\\
|
186 |
|
|
The filter that exists in the PLL loop. It's mathematical
|
187 |
|
|
functions look like this.
|
188 |
|
|
\begin{displaymath}
|
189 |
|
|
Y(z) = X(z) \frac{z^{-1}}{1-(1-\frac{1}{16})z^{-1}}
|
190 |
|
|
\end{displaymath}
|
191 |
|
|
|
192 |
|
|
\begin{figure}[H]
|
193 |
|
|
\center
|
194 |
|
|
\includegraphics[width=10.0cm,height=5.0cm]{loop_filter.eps}
|
195 |
|
|
\caption {Loop filter block diagram}
|
196 |
|
|
\end{figure}
|
197 |
|
|
|
198 |
|
|
\item \textbf{fir}\\
|
199 |
|
|
This is the Low Pass filter type FIR.
|
200 |
|
|
Realization of filter using direct FIR Transform 16 tap.
|
201 |
|
|
\begin{displaymath}
|
202 |
|
|
Y(z) = X(z) \frac{1}{16}\sum_{i=0}^{15}z^{-i}
|
203 |
|
|
\end{displaymath}
|
204 |
|
|
\end{itemize}
|
205 |
|
|
\subsection{Basic Component}
|
206 |
|
|
\begin{itemize}
|
207 |
|
|
\item \textbf{adder}\\
|
208 |
|
|
Many customized adder have been used on this design.
|
209 |
|
|
This adder is used for many aritmetic operation, special
|
210 |
|
|
purpose adder were used for aritmetics operation in
|
211 |
|
|
2's complement or unsigned number.
|
212 |
|
|
\item \textbf{subtractor}\\
|
213 |
|
|
The subtractor that used on the loop filter,
|
214 |
|
|
we realize the loop filter constant multiplier e.g. (15/16) by
|
215 |
|
|
(1 - 1/16) so we need a substractor to do this task. Actually we
|
216 |
|
|
implement the substractor by using ordinary adder, but the
|
217 |
|
|
augend is 2's complement of subtractor.
|
218 |
|
|
|
219 |
|
|
\begin{sourcelisting}
|
220 |
|
|
- X = 2's (X) (negatif value is equal to 2's of it's value)
|
221 |
|
|
X - Y = X + 2's (Y)
|
222 |
|
|
\end{sourcelisting}
|
223 |
|
|
|
224 |
|
|
\item \textbf{multiplier}\\
|
225 |
|
|
Multiplier is used on the phase detector to
|
226 |
|
|
multiply input signal and signal nco to get the phase different.
|
227 |
|
|
This multiplier is implemented using simple addition of two
|
228 |
|
|
operand, this multiplier need 8 stage of addition to perform
|
229 |
|
|
operation on 8 bit input operand. This multiplier is the
|
230 |
|
|
slowest component in this design, because this operations
|
231 |
|
|
takes 8 stages of additions to complete single multiplications.
|
232 |
|
|
\begin{sourcelisting}
|
233 |
|
|
operand0 = XXXX_XXXX
|
234 |
|
|
operand1 = XXXX_XXXX
|
235 |
|
|
_____________________________
|
236 |
|
|
...
|
237 |
|
|
... -> 8 stage addition
|
238 |
|
|
...
|
239 |
|
|
_____________________________
|
240 |
|
|
result = XXXX_XXXX__XXXX_XXXX
|
241 |
|
|
^^^^^^^^^--> 8 bit output
|
242 |
|
|
\end{sourcelisting}
|
243 |
|
|
\item \textbf{full adder}\\
|
244 |
|
|
The very basic component that build all module.
|
245 |
|
|
This component is implemented using this relations.\\
|
246 |
|
|
\begin{sourcelisting}
|
247 |
|
|
sum <= ((addend xor augend) xor carry_in);
|
248 |
|
|
carry <= ((addend xor augend) or (carry_in and (addend or augend)));
|
249 |
|
|
\end{sourcelisting}
|
250 |
|
|
\end{itemize}
|
251 |
|
|
|
252 |
|
|
\setcounter{figure}{0}
|
253 |
|
|
\newpage
|
254 |
|
|
\section{Information}
|
255 |
|
|
%\subsection{Cover Image}
|
256 |
|
|
%Figure in the cover of this docs is the looks of wafer layout of simple\_fm\_receiver
|
257 |
|
|
%core design (e.g. only the core not includes ROM, NCO, Phase detector, FIR),
|
258 |
|
|
%this figure is generated using \texttt{\textbf{Alliance}} tools.
|
259 |
|
|
|
260 |
|
|
%\subsection{HDL Source}
|
261 |
|
|
%The source codes is available at:
|
262 |
|
|
%\begin{itemize}
|
263 |
|
|
%\item \textbf{\texttt{WWW}}\\
|
264 |
|
|
% The HDL source is available using World Wide Web access located at:\\
|
265 |
|
|
% \texttt{http://students.ee.itb.ac.id/\~\ arif\_endro/simple\_fm\_receiver/}
|
266 |
|
|
%\item \textbf{\texttt{CVS}}\\
|
267 |
|
|
% The HDL development source is available using cvs server:\\
|
268 |
|
|
% \texttt{cvs -z3 -d :pserver:anonymous@cvs.opencores.org:/cvsroot/anonymous}\\
|
269 |
|
|
% the password for anonymous user is empty (e.g. blank password). and
|
270 |
|
|
% the cvs modules is: \\\textbf{simple\_fm\_receiver}
|
271 |
|
|
%\end{itemize}
|
272 |
|
|
|
273 |
|
|
\subsection{Warranty}
|
274 |
|
|
\begin{center}
|
275 |
|
|
\textbf {\texttt{NO WARRANTY}}\\
|
276 |
|
|
\end{center}
|
277 |
|
|
\scriptsize
|
278 |
|
|
\textbf{\textrm{
|
279 |
|
|
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
280 |
|
|
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
281 |
|
|
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
282 |
|
|
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
283 |
|
|
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
284 |
|
|
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
285 |
|
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
286 |
|
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
287 |
|
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
288 |
|
|
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.}}
|
289 |
|
|
\normalsize
|
290 |
|
|
|
291 |
|
|
\subsection{TOOLS}
|
292 |
|
|
\begin{itemize}
|
293 |
|
|
\item \textbf{\texttt{ALLIANCE CAD SYSTEM}} developed by \textbf{\texttt{ASIM}}
|
294 |
|
|
team at \copyright \textbf{\texttt{LIP6}}/Universit\'{e} Pierre et
|
295 |
|
|
Marie Curie,
|
296 |
|
|
\texttt{http://asim.lip6.fr/recherche/alliance}
|
297 |
|
|
- \textbf{\textit{The primary VHDL Analyser for Synthesize}}
|
298 |
|
|
\item \textbf{\texttt{ModelSim 6.0}} - \textbf{\textit{The Simulator}}
|
299 |
|
|
\item \textbf{\texttt{ISE Xilinx 6.3i}} - \textbf{\textit{The Synthesizer}}
|
300 |
|
|
\item \textbf{\texttt{FPGA Xilinx XC2V2000-6-FF896}} - \textbf{\textit{The Implementor}}
|
301 |
|
|
\item \textbf{\texttt{VIM - Vi IMproved}}
|
302 |
|
|
- \textbf{\textit{The Editor}}
|
303 |
|
|
\item \LaTeX - \textbf{\textit{The Typesetter}}
|
304 |
|
|
\end{itemize}
|
305 |
|
|
|
306 |
|
|
\begin{thebibliography}{1}
|
307 |
|
|
%\bibitem{Navabi} Zainalabedin Navabi,
|
308 |
|
|
% \textbf{\textit{ VHDL Analysis and Modeling of Digital Systems}}, Mc Graw Hill,
|
309 |
|
|
% 1993
|
310 |
|
|
%\bibitem{Wanhammar} Lars Wanhammar,
|
311 |
|
|
% \textbf{\textit{ DSP Integrated Circuits}}, Academic Press, 1999,
|
312 |
|
|
% ISBN: 0-12-734530-2
|
313 |
|
|
%\bibitem{Gajski} Daniel D. Gajski,
|
314 |
|
|
% \textbf{\textit{ Principles of Digital Design}}, Prentice Hall Inc, 1997,
|
315 |
|
|
% ISBN: 0-13-242397-9
|
316 |
|
|
\bibitem{Wada} Tom Wada,
|
317 |
|
|
\textbf{\textit{ All Digital FM Receiver}}, at
|
318 |
|
|
http://www.ie.u-ryukyu.ac.jp/\~\ wada/design05/
|
319 |
|
|
\end{thebibliography}
|
320 |
|
|
|
321 |
|
|
\vspace{01cm}
|
322 |
|
|
\begin{tabbing}
|
323 |
|
|
\textbf{Version: 1.0} \` \textbf{\today}
|
324 |
|
|
\end{tabbing}
|
325 |
|
|
|
326 |
|
|
\end{document}
|