Thursday, April 12, 2012

Experiment-AND Gate & NAND Gate


Experiment No.-2

Aim: Synthesis and simulation of AND and NAND gate

Apparatus Used:-


S.No
Items




Specification
Quantity
1
Computer set




P-4, 2GB DDR
01
2
Software (Tool)




Xilinx 10.1
01


Theory:-
AND Gate:

The AND gate is an electronic circuit that gives a high output (1) only if all its inputs are high. A dot (.) is used to show the AND operation i.e. A.B. Bear in mind that this dot is sometimes omitted i.e. AB
NAND Gate:


This is a NOT-AND gate which is equal to an AND gate followed by a NOT gate. The outputs of all NAND gates are high if any of the inputs are low. The symbol is an AND gate with a small circle on the output. The small circle represents inversion

HDL Coding:
AND Gate implementation:-


library IEEE;

use IEEE.STD_LOGIC_1164.ALL;

entity ANDGATE is

Port ( A : in STD_LOGIC;

B : in STD_LOGIC;

Y : out STD_LOGIC);

end ANDGATE;

architecture Behavioral of ANDGATE is

begin

Y<= A AND B;

end Behavioral;


NAND Gate implementation:-

library IEEE;

use IEEE.STD_LOGIC_1164.ALL;

entity NANDGATE is

Port

( A : in STD_LOGIC;

B : in STD_LOGIC;

Y : out STD_LOGIC);

end NANDGATE;


architecture Behavioral of NANDGATE is

begin

Y<= A NAND B;

end

Behavioral;

Observation/ Analysis:-
RTL schematic of AND Gate

RTL schematic of NAND Gate

Results:
AND GATE SIMULATION


NAND GATE SIMULATION

Wednesday, April 11, 2012

Experiment-NOT, OR, & NOT GATES

Experiment No.-1

Aim: Synthesis and simulation of NOT, OR, NOR GATE.

Apparatus Used:-

S.No

Items

Specification

Quantity

1

Computer set

P-4, 2GB DDR

01

2

Software (Tool)

Xilinx 10.1

01

Theory:-

NOT Gate:

The NOT gate is an electronic circuit that produces an inverted version of the input at its output. It is also known as an inverter. If the input variable is A, the inverted output is known as NOT A. This is also shown as A', or A with a bar over the top, as shown at the outputs. The diagrams below show two ways that the NAND logic gate can be configured to produce a NOT gate. It can also be done using NOR logic gates in the same way.


OR Gate:

The OR gate is an electronic circuit that gives a high output (1) if one or more of its inputs are high. A plus (+) is used to show the OR operation.


NOR Gate:

This is a NOT-OR gate which is equal to an OR gate followed by a NOT gate. The outputs of all NOR gates are low if any of the inputs are high.The symbol is an OR gate with a small circle on the output. The small circle represents inversion.

HDL Coding:

          NOT Gate implementation:

library ieee;

use ieee.std_logic_1164.all;

entity NOTGATE is

port( A: in std_logic;

C: out std_logic);

end NOTGATE;

architecture func of NOTGATE is

begin

C <= NOT A;

end func;

  
OR Gate implementation: 

library ieee;

use ieee.std_logic_1164.all;

entity orGate is

port( A, B : in std_logic;

F : out std_logic);

end orGate;

architecture func of orGate is

begin

F <= A or B;

end func;

NOR Gate implementation:-

library ieee;

use ieee.std_logic_1164.all;

entity norGate is

port( A, B : in std_logic;

F : out std_logic);

end norGate;

architecture func of norGate is

begin

F <= A nor B;

end func;


Observation/ Analysis

RTL schematic of NOT Gate


RTL schematic of OR Gate


RTL schematic of NOR Gate


Results:

NOT GATE SIMULATION


OR GATE SIMULATION


NOR GATE SIMULATION