Wednesday, 7 September 2016

How To Write a IEEE Paper in LaTeX? Part-3

Step-7: Insert text

\section{name of the section} - To create new section.
\subsection{name of the subsection} - To create subsection.
\subsubsection{name of the subsubsection} - To create subsubsection.

Step-8: Insert Images

\begin{figure}[!h]   %[!h] to place in exact location. To place figure in top use [!t] nd [!b] for bottom.
\centering                  
\includegraphics[width=2in,height=2in]{figure} %Figure should be in the same folder, where .txt file is stored. You can also use [scale= 1] instead if width and height.
\caption{Figure caption}
\label{fig_name} %Label to the figure. It is optional

\end{figure}

Step-9 Insert Tables

\begin{table}[!h]
\centering
\caption{Students name and age}
\label{table}
\centering

\begin{tabular}{|c|c|c|}  %%  Number of Columns
\hline                              %%  Horizontal Line
S.no & name & age \\    %% "&" Separates Columns
\hline
\hline
1  &  Krishna & 22 \\
\hline
2 & Madhu & 33 \\
\hline
3 & Deepak & 25 \\
\hline
\end{tabular}


\end{table}

Now if you RUN this, you can see
if you don't want the gap between heading and rest of the table. Simply remove one \hline
You can see 
If you want Bold text in headings. use {\bf text} as shown below
{\bf S.no} & {\bf Name} &{\bf Age } \\

With this you will complete your paper.
Multi row, multi column figures and tables will be discussed in next part.



Monday, 5 September 2016

How To Write a IEEE Paper in LaTeX? Part-2

Step-4:
After installing MiKTeX 2.9, open IEEE zip file
Choose bare-conf.tex  for conference or bare-jrnl.tex for journal.

  • Create one folder anywhere on your PC
  • Open bare-conf.tex 
  • Click on "File", Click on "Save as"and save in the folder you created.
  • Open that .txt file
  • To change Syntax of the code ==> Click on "Format", choose "Syntax Coloring" in that Choose "LaTex". 
  • To change Font of the code ==>  Click on "Format", choose "Font", I prefer to choose "Callibri" and size 12".

Step-5
  1. Click on "RUN" symbol .
  2. You will see this 
3. Click on "Change".



4. Choose "Packages shall be installed from the internet" and click on "Next".

5. Choose any country in that list, I prefer China HTTP or FTP. Then click on Finish and wait 1 min to install those packages.
6. You will see Demo paper by now.



Step-6: Install Packages
These packages are necessary to use images, equations, symbols and tables etc.
Below are some packages shown, we have to write before begin document as shown.
Syntax is "\usepackage{name}"


\usepackage{graphicx} - To use images
\usepackage{amsmath} - To use Math equations
\usepackage{amssymb} - To use Symbols
\usepackage{bbding} - To use Bullets
\usepackage{multirow} - To use multirows in Tables
\usepackage{balance} - To balance paper
and many more..

Repeat Step-5 to install these packages from internet.

Tuesday, 26 July 2016

How To Write a IEEE Paper in LaTeX? Part-1

STEP-1:
After completing your existing and proposed work. Start writing in A4 papers in the order shown below
1) Proposed work.
2) Literature/ Existing work.
3) Introduction and finally
4) Abstract and Conclusion.

STEP-2:
Start writing it in Microsoft Word document. It is not necessary but it will be helpful to convert into LaTeX. If you are able to write directly in LaTeX you can skip this step. My suggestion is to write.

STEP-3:
Downloads: 
1) Microsoft Office Visio    %% To Draw Figures, Flowcharts etc

After drawing figures, remember lines should be "thick" and choose font as "Bold".

To save images from Visio, follow these steps
  a) Ctrr+A and Ctrl+g    %%selects all and cuts the images exactly. 
  b) Click on "Save as"
  c) A new window will open, scroll down "save as type" and choose "Portable network graphics (PNG)".
      Give any name and click on "save".
  d) A new window will open, in that choose Resolution as "Printer" and Size as "Screen".

2) Math Type                       %% For Equations

After writing equations in Math Type, we just need to copy and paste in LaTex. For that the Math Type should be genuine version.

After downloading Math Type Trial version, we can make it into genuine by following these steps
  a) Open Math Type and Click on Help ==> Choose Unlock/Register Math Type
  b) A new window will open, in that
        write First name: tam
                 Last name: CORE
                Organisation: type any
                Serial number: MTWE691-011044-5222g
                Email: type any
c) Click Apply/Ok

To paste equations into LaTeX,
Click on Preferences  ==> Cut and Copy Preferences
                                   ==> Choose MathML or Tex in that LaTeX 2.09 and later
                                   ==> Click OK

3) MiKTeX 2.9
 http://miktex.org/2.9/setup Download Basic Version  %% LaTeX

4) IEEE Templates for Conference/Journal  https://www.ieee.org/conferences_events/conferences/publishing/templates.html
Under accessing the templates choose LaTeX.
We will get a zip folder which contains IEEE Templates.


Saturday, 30 April 2016

Weight measurement of a 12 bit binary codeword using Verilog


The weight of a codeword implicates the number nonzero elements in a binary block.Weight measurement structure shown in above figure, counts number of 1's in a 12-bit binary codeword.
Verilog code for weight measurement of a 12 bit binary codeword is given below


//verilog code for weight measurement of a 12 bit binary input

//Full Adder
module fad(a,b,c,s,cout);
input a,b,c;
output s,cout;
assign s=a^b^c;
assign cout=(a&b)|(b&c)|(c&a);
endmodule

//Two-bit Adder
module twoad1(a,b,s,c);
input [1:0]a,b;
output [1:0]s,c;
assign s[0]=a[0]^b[0];
assign c[0]=a[0]&b[0];
assign s[1]=c[0]^a[1]^b[1];
assign c[1]=(a[1]&b[1])|(b[1]&c[0])|(c[0]&a[1]);
endmodule

//Three-bit Adder
module threead1(a,b,s,c);
input [2:0]a,b;
output [2:0]s,c;
assign s[0]=a[0]^b[0];
assign c[0]=a[0]&b[0];
assign s[1]=c[0]^a[1]^b[1];
assign c[1]=(a[1]&b[1])|(b[1]&c[0])|(c[0]&a[1]);
assign s[2]=c[1]^a[2]^b[2];
assign c[2]=(a[2]&b[2])|(b[2]&c[1])|(c[1]&a[2]);
endmodule

//Weight Measurement
module wt1(s,x);
input [11:0]s;
output [3:0]x;
wire s0,s1,s2,s3,c0,c1,c2,c3;
wire [1:0]d,e,f,g,s4,s5,c4,c5;
wire [2:0]h,i,s6,c6;

fad a1(s[11],s[10],s[9],s3,c3);
fad a2(s[8],s[7],s[6],s2,c2);
fad a3(s[5],s[4],s[3],s1,c1);
fad a4(s[2],s[1],s[0],s0,c0);

assign d={c3,s3};
assign e={c2,s2};
assign f={c1,s1};
assign g={c0,s0};

twoad1 a5(d,e,s4[1:0],c4[1:0]);
twoad1 a6(f,g,s5[1:0],c5[1:0]);

assign h={c4[1],s4[1:0]};
assign i={c5[1],s5[1:0]};

threead1 a7(h,i,s6[2:0],c6[2:0]);

assign x={c6[2],s6};
endmodule

//Test bench
module wt1_tb();
reg [11:0]s;
wire [3:0]x;
wt1 dut(s,x);
initial begin
s=12'b1000_0000_0001;
#50 $stop;
end
endmodule

//This code counts the number of 1's in a 12 bit binary codeword.
For example input message is s = 1010_0010_0001;
then output will be x=0100 (4).