\documentclass[journal, a4paper]{IEEEtran}
% some very useful LaTeX packages include:
%\usepackage{cite} % Written by Donald Arseneau
% V1.6 and later of IEEEtran pre-defines the format
% of the cite.sty package \cite{} output to follow
% that of IEEE. Loading the cite package will
% result in citation numbers being automatically
% sorted and properly "ranged". i.e.,
% [1], [9], [2], [7], [5], [6]
% (without using cite.sty)
% will become:
% [1], [2], [5]--[7], [9] (using cite.sty)
% cite.sty's \cite will automatically add leading
% space, if needed. Use cite.sty's noadjust option
% (cite.sty V3.8 and later) if you want to turn this
% off. cite.sty is already installed on most LaTeX
% systems. The latest version can be obtained at:
% http://www.ctan.org/tex-archive/macros/latex/contrib/supported/cite/
\usepackage{graphicx} % Written by David Carlisle and Sebastian Rahtz
% Required if you want graphics, photos, etc.
% graphicx.sty is already installed on most LaTeX
% systems. The latest version and documentation can
% be obtained at:
% http://www.ctan.org/tex-archive/macros/latex/required/graphics/
% Another good source of documentation is "Using
% Imported Graphics in LaTeX2e" by Keith Reckdahl
% which can be found as esplatex.ps and epslatex.pdf
% at: http://www.ctan.org/tex-archive/info/
%\usepackage{psfrag} % Written by Craig Barratt, Michael C. Grant,
% and David Carlisle
% This package allows you to substitute LaTeX
% commands for text in imported EPS graphic files.
% In this way, LaTeX symbols can be placed into
% graphics that have been generated by other
% applications. You must use latex->dvips->ps2pdf
% workflow (not direct pdf output from pdflatex) if
% you wish to use this capability because it works
% via some PostScript tricks. Alternatively, the
% graphics could be processed as separate files via
% psfrag and dvips, then converted to PDF for
% inclusion in the main file which uses pdflatex.
% Docs are in "The PSfrag System" by Michael C. Grant
% and David Carlisle. There is also some information
% about using psfrag in "Using Imported Graphics in
% LaTeX2e" by Keith Reckdahl which documents the
% graphicx package (see above). The psfrag package
% and documentation can be obtained at:
% http://www.ctan.org/tex-archive/macros/latex/contrib/supported/psfrag/
%\usepackage{subfigure} % Written by Steven Douglas Cochran
% This package makes it easy to put subfigures
% in your figures. i.e., "figure 1a and 1b"
% Docs are in "Using Imported Graphics in LaTeX2e"
% by Keith Reckdahl which also documents the graphicx
% package (see above). subfigure.sty is already
% installed on most LaTeX systems. The latest version
% and documentation can be obtained at:
% http://www.ctan.org/tex-archive/macros/latex/contrib/supported/subfigure/
\usepackage{url} % Written by Donald Arseneau
% Provides better support for handling and breaking
% URLs. url.sty is already installed on most LaTeX
% systems. The latest version can be obtained at:
% http://www.ctan.org/tex-archive/macros/latex/contrib/other/misc/
% Read the url.sty source comments for usage information.
%\usepackage{stfloats} % Written by Sigitas Tolusis
% Gives LaTeX2e the ability to do double column
% floats at the bottom of the page as well as the top.
% (e.g., "\begin{figure*}[!b]" is not normally
% possible in LaTeX2e). This is an invasive package
% which rewrites many portions of the LaTeX2e output
% routines. It may not work with other packages that
% modify the LaTeX2e output routine and/or with other
% versions of LaTeX. The latest version and
% documentation can be obtained at:
% http://www.ctan.org/tex-archive/macros/latex/contrib/supported/sttools/
% Documentation is contained in the stfloats.sty
% comments as well as in the presfull.pdf file.
% Do not use the stfloats baselinefloat ability as
% IEEE does not allow \baselineskip to stretch.
% Authors submitting work to the IEEE should note
% that IEEE rarely uses double column equations and
% that authors should try to avoid such use.
% Do not be tempted to use the cuted.sty or
% midfloat.sty package (by the same author) as IEEE
% does not format its papers in such ways.
\usepackage{amsmath} % From the American Mathematical Society
% A popular package that provides many helpful commands
% for dealing with mathematics. Note that the AMSmath
% package sets \interdisplaylinepenalty to 10000 thus
% preventing page breaks from occurring within multiline
% equations. Use:
%\interdisplaylinepenalty=2500
% after loading amsmath to restore such page breaks
% as IEEEtran.cls normally does. amsmath.sty is already
% installed on most LaTeX systems. The latest version
% and documentation can be obtained at:
% http://www.ctan.org/tex-archive/macros/latex/required/amslatex/math/
% Other popular packages for formatting tables and equations include:
%\usepackage{array}
% Frank Mittelbach's and David Carlisle's array.sty which improves the
% LaTeX2e array and tabular environments to provide better appearances and
% additional user controls. array.sty is already installed on most systems.
% The latest version and documentation can be obtained at:
% http://www.ctan.org/tex-archive/macros/latex/required/tools/
% V1.6 of IEEEtran contains the IEEEeqnarray family of commands that can
% be used to generate multiline equations as well as matrices, tables, etc.
% Also of notable interest:
% Scott Pakin's eqparbox package for creating (automatically sized) equal
% width boxes. Available:
% http://www.ctan.org/tex-archive/macros/latex/contrib/supported/eqparbox/
% *** Do not adjust lengths that control margins, column widths, etc. ***
% *** Do not use packages that alter fonts (such as pslatex). ***
% There should be no need to do such things with IEEEtran.cls V1.6 and later.
% Your document starts here!
\begin{document}
% Define document title and author
\title{Study truth table of Half Subtractor using Aim-Spice}
\author{Sunil P Nagare TE EXTC ROLL NO. 38}
\thanks{Advisor: Reena Sonsukare Madam}
\markboth{VLSI design Mini Project}{}
\maketitle
% Write abstract here
\begin{abstract}
The truth table of half subtractor is studied by using aims-spice software. The output of half subtracor is subtraction and borrow. The circuit for both subtraction and borrow is separately designed .
\end{abstract}
% Each section begins with a \section{title} command
\section{Introduction}
% \PARstart{}{} creates a tall first letter for this first paragraph
\PARstart{T}{he} Subtractor circuits take two binary numbers as input and subtract one binary number input from the other binary number input. Similar to adders, it gives out two outputs, difference and borrow (carry-in the case of Adder). There are two types of subtractors.
The half-subtractor is a combinational circuit which is used to perform subtraction of two bits. It has two inputs, X (minuend) and Y (subtrahend) and two outputs D (difference) and B (borrow).
An important point worth mentioning is that the half substractor diagram aside implements (b-a) and not (a-b) as borrow is calculated from equation
% Main Part
\section{Main Part}
% LaTeX takes complete care of your document layout ...
% ... but you can insert a line break manually with two backslashes, if needed: \\
Truth Table:-
\begin{figure}[!hbt]
% Center the figure.
\begin{center}
% Include the eps file, scale it such that it's width equals the column width. You can also put width=8cm for example...
\includegraphics[width=\columnwidth]{66_Truth_Table_no_1}
% Create a subtitle for the figure.
\caption{Truth Table of half subtractor}
% Define the label of the figure. It's good to use 'fig:title', so you know that the label belongs to a figure.
\label{fig:tf_plot}
\end{center}
\end{figure}
\section{Equation}
{By Using K-map for subtraction and borrow :-
}
{DIFFRENCE = A'.B + A.B'
}
{BORROW = A'.B}
{ The fig. of half subtractor's subtraction and borrow is
show in fig2
}
\begin{figure}[!hbt]
% Center the figure.
\begin{center}
% Include the eps file, scale it such that it's width equals the column width. You can also put width=8cm for example...
\includegraphics[width=\columnwidth]{sub}
% Create }
\caption{K-map for subtraction and borrow.}
% Define the label of the figure. It's good to use 'fig:title', so you know that the label belongs to a figure.
\label{fig:tf_plot}
\end{center}
\end{figure}
% You can cite a book or paper by using \cite{reference}.
% The references will be defined at the end of this .tex file in the bibliography
% Main Part
\section{Logic diagram}
% LaTeX takes complete care of your document layout ...
% ... but you can insert a line break manually with two backslashes, if needed: \\
{Logic diagram of half subtractor}
{The fig. of half subtractor is shown in fig3 }
\begin{figure}[!hbt]
% Center the figure.
\begin{center}
% Include the eps file, scale it such that it's width equals the column width. You can also put width=8cm for example...
\includegraphics[width=\columnwidth]{exor}
% Create a subtitle for the figure.
\caption{Logic diagram of half subtractor}
% Define the label of the figure. It's good to use 'fig:title', so you know that the label belongs to a figure.
\label{fig:tf_plot}
\end{center}
\end{figure}
% Main Part
\section{Cmos Circuit}
% LaTeX takes complete care of your document layout ...
% ... but you can insert a line break manually with two backslashes, if needed: \\
CMOS diagram of exor output
\begin{figure}[!hbt]
% Center the figure.
\begin{center}
% Include the eps file, scale it such that it's width equals the column width. You can also put width=8cm for example...
\includegraphics[width=\columnwidth]{CKT}
% Create a subtitle for the figure.
\caption{Cmos diagram of half subtractor exor}
% Define the label of the figure. It's good to use 'fig:title', so you know that the label belongs to a figure.
\label{fig:tf_plot}
\end{center}
\end{figure}
CODE for exor:-
cmos exor
vdd 1 0 dc 2
va 2 0 dc 0.0 pulse(0 2 0 0 0 20ns 60ns)
vb 3 0 dc 0.0 pulse(0 2 0 0 0 30ns 60ns)
vc 4 0 dc 0.0 pulse(0 2 0 0 0 20ns 60ns)
vd 5 0 dc 0.0 pulse(0 2 0 0 0 20ns 60ns)
m1 6 2 1 1 mp l=4u w=8u
m2 8 3 6 1 mp1 l=4u w=8u
m3 7 4 1 1 mp2 l=4u w=4u
m4 8 5 7 1 mp3 l=4u w=8u
m5 8 5 9 0 mn l=4u w=4u
m6 9 3 0 0 mn1 l=4u w=4u
m7 8 4 10 0 mn2 l=4u w=4u
m8 10 2 0 0 mn3 l=4u w=4u
.model mp pmos
.model mp1 pmos
.model mp2 pmos
.model mp3 pmos
.model mn nmos
.model mn1 nmos
.model mn2 nmos
.model mn3 nmos
\begin{figure}[!hbt]
% Center the figure.
\begin{center}
% Include the eps file, scale it such that it's width equals the column width. You can also put width=8cm for example...
\includegraphics[width=\columnwidth]{cmos_exor}
% Create a subtitle for the figure.
\caption{Transfer characteristics of exor}
% Define the label of the figure. It's good to use 'fig:title', so you know that the label belongs to a figure.
\label{fig:tf_plot}
\end{center}
\end{figure}
\begin{figure}[!hbt]
% Center the figure.
\begin{center}
% Include the eps file, scale it such that it's width equals the column width. You can also put width=8cm for example...
\includegraphics[width=\columnwidth]{dc1}
% Create a subtitle for the figure.
\caption{DC characteristics of exor}
% Define the label of the figure. It's good to use 'fig:title', so you know that the label belongs to a figure.
\label{fig:tf_plot}
\end{center}
\end{figure}
CMOS diagram of borrow output
\begin{figure}[!hbt]
% Center the figure.
\begin{center}
% Include the eps file, scale it such that it's width equals the column width. You can also put width=8cm for example...
\includegraphics[width=\columnwidth]{CKT1}
% Create a subtitle for the figure.
\caption{Cmos diagram of half subtractor borrow}
% Define the label of the figure. It's good to use 'fig:title', so you know that the label belongs to a figure.
\label{fig:tf_plot}
\end{center}
\end{figure}
CODE for borrow:-
cmos borrow
vdd 1 0 dc 2
va 2 0 dc 0.0 pulse(0 2 0 0 0 20ns 40ns)
vb 3 0 dc 0.0 pulse(0 2 0 0 0 20ns 40ns)
m1 4 2 1 1 mp l=4u w=8u
m2 5 3 4 1 mp1 l=4u w=8u
m3 5 2 0 0 mn l=4u w=4u
m4 5 3 0 0 mn1 l=4u w=4u
.model mp pmos
.model mp1 pmos
.model mn nmos
.model mn1 nmos
\begin{figure}[!hbt]
% Center the figure.
\begin{center}
% Include the eps file, scale it such that it's width equals the column width. You can also put width=8cm for example...
\includegraphics[width=\columnwidth]{trb}
% Create a subtitle for the figure.
\caption{Transfer characteristics of borrow}
% Define the label of the figure. It's good to use 'fig:title', so you know that the label belongs to a figure.
\label{fig:tf_plot}
\end{center}
\end{figure}
\begin{figure}[!hbt]
% Center the figure.
\begin{center}
% Include the eps file, scale it such that it's width equals the column width. You can also put width=8cm for example...
\includegraphics[width=\columnwidth]{dc2}
% Create a subtitle for the figure.
\caption{DC characteristics of borrow}
% Define the label of the figure. It's good to use 'fig:title', so you know that the label belongs to a figure.
\label{fig:tf_plot}
\end{center}
\end{figure}
% If you have questions about how to write mathematical formulas in LaTeX, please read a LaTeX book or the 'Not So Short Introduction to LaTeX': tobi.oetiker.ch/lshort/lshort.pdf
% This is how you include a eps figure in your document. LaTeX only accepts EPS or TIFF files.
\section{Conclusion}
We concluded that truth table of half subtractor is implemented by Aim-Spice.The no change in rise time,fall time and propagation time delay to scaling.
% Now we need a bibliography:
\begin{thebibliography}{5}
%Each item starts with a \bibitem{reference} command and the details thereafter.
\bibitem{HOP96} % Transaction paper
http://www.aimspice.com/
\bibitem{MJH06} % Conference paper
'Design a Low Power Half-Subtractor Using .90μm CMOS Technology'IOSR Journal of VLSI and Signal Processing (IOSR-JVSP)
Volume 2, Issue 3 (May. – Jun. 2013), PP 51-56
e-ISSN: 2319 – 4200, p-ISSN No. : 2319 – 4197
\bibitem{MJH06} % Conference paper
'Design and Analysis of Power Efficient PTL Half Subtractor
Using 120nm Technology'International Journal of Computer Trends and Technology (IJCTT) – volume 7 number 4– Jan 2014
\bibitem{MJH06} % Conference paper
'Reduction of Leakage Power in Half- Subtractor using AVL Technique based on 45nm CMOS Technology'International Journal of Computer Applications (0975 – 8887)
Volume 111 – No 1, February 2015
\end{thebibliography}
% Your document ends here!
\end{document}