Sunday, 30 November 2014

3-BIT Array Multiplier

A Multiplier is a electronic circuit used in computers for multiplication of two numbers.

let us see how multiplication actually works.

Write the multiplication down and you'll know what to do. For example A1A2A3*B1B2B3

            A1   A2   A3
         x  B1   B2   B3
-------------------------
          B3A1 B3A2 B3A3
+    B2A1 B2A2 B2A3
B1A1 B1A2 B1A3
---------------------------------
as we can see in the above example that we are performing logical AND operation and addition of the partial products..... for which in digital electronics we have adder circuits such as Half adder and Full adder.

Verilog Code for the 3-Bit Multiplier is as follow:

module halfadder(sum,carry,a,b);
input a,b;
output sum,carry;
xor(sum,a,b);
and(carry,a,b);
endmodule

module multiply3bits(product,a,b);
input [2:0]a, b;
output [5:0] product;
wire s1,c1,s2,c2,s3,c3;
assign product[0]= (a[0] & b[0]);
halfadder ha1 (s1,c1,(a[1] & b[0]),(a[0] & b[1]));
fulladder fa1 ((a[2] & b[0]),(a[1] & b[1]),c1,s2,c2);
halfadder ha2 (s3,c3,(a[2] & b[1]),c2);
assign product[1]=s1;
halfadder ha3 (s4,c4,s2,(a[0] & b[2]));
fulladder fa2 (s3,(a[1] & b[2]),c4,s5,c5);

halfadder ha4 (s6,c6,c5,(a[2] & b[2]));
assign product[2]=s4;
assign product[3]=s5;
assign product[4]=s6;
assign product[5]=c4;
endmodule

CMOS Inverter using Verilog Switch level modelling


Truth Table:
 a
F
 0
1
 1
0

module cmos_inv(f,a);
//declaring the input and output variables
input a;                //'a' is the input and 'f' is the output
output f;
//syntax for declaring the power supply and ground
supply1 vdd;
supply0 gnd;
//instantiating pmos and nmos transistors (drain,source,gate)
pmos p1(f,vdd,a);
nmos n1(f,gnd,a);

endmodule

What is Binary?


Binary describes a numbering scheme in which there are only two possible values for each digit: 0 and 1. The term also refers to any digital encoding/decoding system in which there are exactly two possible states. In digital data memory, storage, processing, and communications, the 0 and 1 value are sometimes called "low" and "high," respectively.
http://favorpcrepair.yolasite.com/resources/binary-code-1024x768.jpg?timestamp=1345296032165
Discrete elements of information are represented in a digital system by physical quantities called signals. Electrical signals such as voltages and currents are the most common. Electronic devices called Transistors predominate in the circuitry that implements these signals. The signals in most present‐day electronic digital systems use just two discrete values and are therefore said to be binary. A binary digit, called a bit, has two values: 0 and 1. Discrete elements of information are represented with groups of bits called binary codes. For example, the decimal digits 0 through 9 are represented in a digital system with a code of four bits (e.g., the number 7 is represented by 0111).


Since binary is a base-2 system, each digit represents an increasing power of 2, with the rightmost digit representing 20, the next representing 21, then 22, and so on. To determine the decimal representation of a binary number simply take the sum of the products of the binary digits and the powers of 2 which they represent. For example, the binary number 100101 is converted to decimal form as follows:
1001012 = [ ( 1 ) × 25 ] + [ ( 0 ) × 24 ] + [ ( 0 ) × 23 ] + [ ( 1 ) × 22 ] + [ ( 0 ) × 21 ] + [ ( 1 ) × 20 ]
1001012 = [ 1 × 32 ] + [ 0 × 16 ] + [ 0 × 8 ] + [ 1 × 4 ] + [ 0 × 2 ] + [ 1 × 1 ]
1001012 = 3710

Octal number


The conversion from binary to octal is easily accomplished by partitioning the binary number into groups of three digits each, starting from the binary point and proceeding to the left and to the right.



Hexadecimal
Conversion from binary to hexadecimal is similar, except that the binary number is divided into groups of four digits:

Let us see the tabular column comparison to decimal number to its binary number, octal, hexadecimal.


Saturday, 29 November 2014

Analog VS Digital Signals


Analog and digital signals are used to transmit information, usually through electric signals. In both these technologies, the information, such as any audio or video, is transformed into electric signals. The difference between analog and digital technologies is that in analog technology, information is translated into electric pulses of varying amplitude. In digital technology, translation of information is into binary format (zero or one) where each bit is representative of two distinct amplitudes.


http://www.igcseict.info/theory/5/anadig/files/stacks_image_7978_1.png


Comparison chart

Analog
Digital
Signal
Analog signal is a continuous signal which represents physical measurements.
Digital signals are discrete time signals generated by digital modulation.
Waves
Denoted by sine waves
Denoted by square waves
Representation
Uses continuous range of values to represent information
Uses discrete or discontinuous values to represent information
Example
Human voice in air, analog electronic devices.
Computers, CDs, DVDs, and other digital electronic devices.
Technology
Analog technology records waveforms as they are.
Samples analog waveforms into a limited set of numbers and records them.
Data transmissions
Subjected to deterioration by noise during transmission and write/read cycle.
Can be noise-immune without deterioration during transmission and write/read cycle.
Response to Noise
More likely to get affected reducing accuracy
Less affected since noise response are analog in nature
Flexibility
Analog hardware is not flexible.
Digital hardware is flexible in implementation.
Uses
Can be used in analog devices only. Best suited for audio and video transmission.
Best suited for Computing and digital electronics.
Applications
Thermometer
PCs, PDAs
Bandwidth
Analog signal processing can be done in real time and consumes less bandwidth.
There is no guarantee that digital signal processing can be done in real time and consumes more bandwidth to carry out the same information.
Memory
Stored in the form of wave signal
Stored in the form of binary bit
Power
Analog instrument draws large power
Digital instrument draws only negligible power
Cost
Low cost and portable
Cost is high and not easily portable
Impedance
Low
High order of 100 megaohm
Errors
Analog instruments usually have a scale which is cramped at lower end and give considerable observational errors.
Digital instruments are free from observational errors like parallax and approximation errors.

Thursday, 27 November 2014

Diode : Name and Fame

C:\Users\Padma Reddy\Desktop\diode_symbol_svg.png




Beauty of Electronics lies in the Name !!
Let us consider a basic electronic device “Diode”
DI means TWO , ODE Means Terminals.
Diode is an Electronic device which consists of two terminals which are different from each other. There is a minute difference. Can you guess it?

Current flows from Anode to Cathode hence it is called as “Forward Biased”.
There is No Current Flow Cathode to Anode hence “Reverse Biased”.
This we can also see from the diode symbol which is a representation from anode to cathode (similar to an arrow) – forward biased (direction of arrow head)  shows current flow. Where as, a vertical bar symbol of representation is used at the cathode end which tells us that there is no current flow from cathode to anode.

The Beginning!!



Hello there !!
The question is why to start something which is already done by the avant-garde?
This new era we exist in, is something that's tremendously competitive. So what has to be done to overcome the hardships faced in the tiny, minuscule corners of day to day life? Is it the tiny shortcuts? Or is it the smart work that we do in order to conquer the miniature success that help in reaching our goals?

The answer is, referring to numerous books/journals/papers.
Students today have cultivated a habit of going through a particular set of “notes”.  Are you sure these notes contain all the information required to excel? NO !! and that's where we come in !!


Incase you have any doubts/queries lets us know in the comments below and we will get back to you!!