Top Banner
7/25/2019 DHD Lab File work http://slidepdf.com/reader/full/dhd-lab-file-work 1/21 1 Experiment No. 1 Object: To design and simulate the AND gate circuit using DATAFLOW Modeling. Apparatus: Xilinx ISE !." so#t$are %it& Acti'e( )DL& Student Edition Theory: Input Output A B Y=A.B * * * * * * * Fig+ Truth ta,le o# AND -ATE  13EEBCS004 Amit Kumar
21

DHD Lab File work

Feb 27, 2018

Download

Documents

Amit Poonia
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: DHD Lab File work

7/25/2019 DHD Lab File work

http://slidepdf.com/reader/full/dhd-lab-file-work 1/21

1

Experiment No. 1

Object:

To design and simulate the AND gate circuit using DATAFLOW Modeling.

Apparatus:

Xilinx ISE !." so#t$are %it& Acti'e( )DL& Student Edition

Theory:

Input Output

A B Y=A.B

* * *

* *

* *

Fig+ Truth ta,le o# AND -ATE

 

13EEBCS004

Amit Kumar

Page 2: DHD Lab File work

7/25/2019 DHD Lab File work

http://slidepdf.com/reader/full/dhd-lab-file-work 2/21

2

V!" #o$e:

li,rar ieee/

use ieee.std0logic012.all/

entit and0gate is

  3ort 4 a + in std0logic/

  , + in std0logic/

  + out std0logic5/

end and0gate/

architecture data#lo$ o# and0gate is

  ,egin

  67 a and ,/

end architecture/

Test Bench :entit and0t, is

end and0t,/ 

architecture test,ench o# and0t, is

com3onent and0gate

  3ort4 a + in std0logic/

  , + in std0logic/

  + out std0logic 5/

 end com3onent/ 

signal a + std0logic +7 8*8/  signal , + std0logic +7 8*8/

  signal + std0logic/

 ,egin

  uut+ and0gate 3ort ma34a&,&5/

 3rocess

  ,egin

  a678*8/ ,678*8/

  $ait #or "9 ns/

  a678*8/ ,6788/

  $ait #or "9 ns/

  a6788/ ,678*8/  $ait #or "9 ns/

  a6788/ ,6788/

$ait #or "9 ns/

  end 3rocess/

end/

13EEBCS004

Amit Kumar

Page 3: DHD Lab File work

7/25/2019 DHD Lab File work

http://slidepdf.com/reader/full/dhd-lab-file-work 3/21

3

Fig+ Simulation o# AND -ate

Fig+ To3 :ie$ o# AND -ate

  Fig+ ;TL Schematic o# AND -ate

%esu&t :

The AND gate circuit is designed and simulated success#ull.

13EEBCS004

Amit Kumar

Page 4: DHD Lab File work

7/25/2019 DHD Lab File work

http://slidepdf.com/reader/full/dhd-lab-file-work 4/21

4

Experiment No. '

Object:

To design and simulate the O; gate circuit using DATAFLOW Modeling.

Apparatus:

Xilinx ISE !." so#t$are %it& Acti'e( )DL& Student Edition

Theory:

Input Output

A B Y=A(B

* * *

*

*

Fig+ Truth ta,le o# O; -ATE

13EEBCS004

Amit Kumar

Page 5: DHD Lab File work

7/25/2019 DHD Lab File work

http://slidepdf.com/reader/full/dhd-lab-file-work 5/21

5

V!" #o$e:

li,rar ieee/

use ieee.std0logic012.all/

entit or0gate is

  3ort 4 a + in std0logic/

  , + in std0logic/

  + out std0logic5/

end or0gate/

architecture data#lo$ o# or0gate is

  ,egin

  67 a or ,/

end architecture/

test bench:

entit or0t, is

end or0t,/ 

architecture test,ench o# or0t, is

com3onent or0gate

  3ort4 a + in std0logic/

  , + in std0logic/

  + out std0logic 5/

 end com3onent/

 signal a + std0logic +7 8*8/

  signal , + std0logic +7 8*8/

  signal + std0logic/

 ,egin

  uut+ or0gate 3ort ma34a&,&5/

 3rocess

  ,egin

  a678*8/ ,678*8/

  $ait #or "9 ns/

  a678*8/ ,6788/

  $ait #or "9 ns/  a6788/ ,678*8/

  $ait #or "9 ns/

  a6788/ ,6788/

  $ait #or "9 ns/

  end 3rocess/

end/

13EEBCS004

Amit Kumar

Page 6: DHD Lab File work

7/25/2019 DHD Lab File work

http://slidepdf.com/reader/full/dhd-lab-file-work 6/21

6

Fig+ Simulation o# O; -ate

Fig+ To3 :ie$ o# O; -ate

Fig+ ;TL Schematic o# O; -ate

%esu&t :

The O; gate circuit is designed and simulated success#ull.

13EEBCS004

Amit Kumar

Page 7: DHD Lab File work

7/25/2019 DHD Lab File work

http://slidepdf.com/reader/full/dhd-lab-file-work 7/21

7

Experiment No. )

Object:

To design and simulate the NOT gate circuit using DATAFLOW Modeling.

Apparatus:

Xilinx ISE !." so#t$are %it& Acti'e( )DL& Student Edition

Theory:

Input Output

A Y=not*A+

*

*

Fig+ Truth ta,le o# NOT -ATE

13EEBCS004

Amit Kumar

Page 8: DHD Lab File work

7/25/2019 DHD Lab File work

http://slidepdf.com/reader/full/dhd-lab-file-work 8/21

8

V!" #o$e:

li,rar ieee/

use ieee.std0logic012.all/

entit not0gate is

  3ort 4 a + in std0logic/

  + out std0logic5/

end not0gate/

architecture data#lo$ o# not0gate is

  ,egin

  67 not a/

end architecture/

test bench:entit not0t, is

end not0t,/ 

architecture test,ench o# not0t, is

com3onent not0gate

  3ort4a + in std0logic/

  + out std0logic 5/

end com3onent/ 

signal a + std0logic +7 8*8/

  signal + std0logic/ ,egin

  uut+ not0gate 3ort ma34a&5/

 3rocess

  ,egin

  a678*8/

$ait #or "9 ns/

  a6788/

$ait #or "9 ns/

  end 3rocess/

end/

13EEBCS004

Amit Kumar

Page 9: DHD Lab File work

7/25/2019 DHD Lab File work

http://slidepdf.com/reader/full/dhd-lab-file-work 9/21

9

Fig+ Simulation o# NOT -ate

Fig+ To3 :ie$ o# NOT -ate

Fig+ ;TL Schematic o# NOT -ate

%esu&t :

The NOT gate circuit is designed and simulated success#ull.

13EEBCS004

Amit Kumar

Page 10: DHD Lab File work

7/25/2019 DHD Lab File work

http://slidepdf.com/reader/full/dhd-lab-file-work 10/21

10

Experiment No. ,

Object:

To design and simulate the NAND gate circuit using DATAFLOW Modeling.

Apparatus:

Xilinx ISE !." so#t$are %it& Acti'e( )DL& Student Edition

Theory:

Input Output

A B Y=not*A.B+

* *

*

*

*

Fig+ Truth ta,le o# NAND -ATE

 

13EEBCS004

Amit Kumar

Page 11: DHD Lab File work

7/25/2019 DHD Lab File work

http://slidepdf.com/reader/full/dhd-lab-file-work 11/21

11

V!" #o$e:

li,rar ieee/

use ieee.std0logic012.all/

entit nand0gate is

  3ort 4 a + in std0logic/

  , + in std0logic/

  + out std0logic 5/

end nand0gate/

architecture data#lo$ o# nand0gate is

  ,egin

  67 a nand ,/

end architecture/

Test Bench:entit nand0t, is

end nand0t,/ 

architecture test,ench o# nand0t, is

com3onent nand0gate

  3ort4a + in std0logic/

  , + in std0logic/

  + out std0logic 5/

end com3onent/

 signal a + std0logic +7 8*8/

  signal , + std0logic +7 8*8/

  signal + std0logic/

 ,egin

  uut+ nand0gate 3ort ma34a&,&5/

 3rocess

  ,egin

  a678*8/ ,678*8/

  $ait #or "9 ns/

  a678*8/ ,6788/

  $ait #or "9 ns/

  a6788/ ,678*8/

  $ait #or "9 ns/

  a6788/ ,6788/

  $ait #or "9 ns/

  end 3rocess/

end/

13EEBCS004

Amit Kumar

Page 12: DHD Lab File work

7/25/2019 DHD Lab File work

http://slidepdf.com/reader/full/dhd-lab-file-work 12/21

12

Fig+ Simulation o# NAND -ate

Fig+ To3 :ie$ o# NAND -ate

Fig+ ;TL Schematic o# NAND -ate

%esu&t :

The NAND gate circuit is designed and simulated success#ull.

13EEBCS004

Amit Kumar

Page 13: DHD Lab File work

7/25/2019 DHD Lab File work

http://slidepdf.com/reader/full/dhd-lab-file-work 13/21

13

Experiment No. -

Object:

To design and simulate the NO; gate circuit using DATAFLOW Modeling.

Apparatus:

Xilinx ISE !." so#t$are %it& Acti'e( )DL& Student Edition

Theory:

Input Output

A B Y=not*A(B+

* *

* *

* *

*

Fig+ Truth ta,le o# NO; -ATE

13EEBCS004

Amit Kumar

Page 14: DHD Lab File work

7/25/2019 DHD Lab File work

http://slidepdf.com/reader/full/dhd-lab-file-work 14/21

14

V!" #o$e:

li,rar ieee/

use ieee.std0logic012.all/

entit nor0gate is

  3ort 4 a + in std0logic/

  , + in std0logic/

  + out std0logic5/

end nor0gate/

architecture data#lo$ o# nor0gate is

 ,egin

  67 a nor ,/

end architecture/

test bench:

entit nor0t, is

end nor0t,/ 

architecture test,ench o# nor0t, is

com3onent nor0gate

  3ort4 a + in std0logic/

  , + in std0logic/

  + out std0logic 5/

end com3onent/

 signal a + std0logic +7 8*8/

  signal , + std0logic +7 8*8/

  signal + std0logic/

 ,egin

  uut+ nor0gate 3ort ma34a&,&5/

  3rocess

  ,egin

  a678*8/ ,678*8/

  $ait #or "9 ns/

  a678*8/ ,6788/

  $ait #or "9 ns/  a6788/ ,678*8/

  $ait #or "9 ns/

  a6788/ ,6788/

  $ait #or "9 ns/

  end 3rocess/

end/

13EEBCS004

Amit Kumar

Page 15: DHD Lab File work

7/25/2019 DHD Lab File work

http://slidepdf.com/reader/full/dhd-lab-file-work 15/21

15

Fig+ Simulation o# NO; -ate

Fig+ To3 :ie$ o# NO; -ate

Fig+ ;TL Schematic o# NO; -ate

%esu&t :

The NO; gate circuit is designed and simulated success#ull.

13EEBCS004

Amit Kumar

Page 16: DHD Lab File work

7/25/2019 DHD Lab File work

http://slidepdf.com/reader/full/dhd-lab-file-work 16/21

16

Experiment No.

Object:

To design and simulate the XO; gate circuit using DATAFLOW Modeling.

Apparatus:

Xilinx ISE !." so#t$are %it& Acti'e( )DL& Student Edition

Theory:

Input Output

A B Y=A xor B

* * *

*

*

*

Fig+ Truth ta,le o# XO; -ATE

13EEBCS004

Amit Kumar

Page 17: DHD Lab File work

7/25/2019 DHD Lab File work

http://slidepdf.com/reader/full/dhd-lab-file-work 17/21

17

V!" #o$e:

li,rar ieee/

use ieee.std0logic012.all/

entit xor0gate is

  3ort 4 a + in std0logic/

  , + in std0logic/

  + out std0logic5/

end xor0gate/

architecture data#lo$ o# xor0gate is

  ,egin

  67 a xor ,/

end architecture/

Test Bench:entit xor0t, is

end xor0t,/ 

architecture test,ench o# xor0t, is

com3onent xor0gate

  3ort4a + in std0logic/

  , + in std0logic/

  + out std0logic 5/

end com3onent/

 signal a + std0logic +7 8*8/

  signal , + std0logic +7 8*8/

  signal + std0logic/

 ,egin

  uut+ xor0gate 3ort ma34a&,&5/

 3rocess

  ,egin

  a678*8/ ,678*8/

  $ait #or "9 ns/

  a678*8/ ,6788/

  $ait #or "9 ns/

  a6788/ ,678*8/

  $ait #or "9 ns/

  a6788/ ,6788/

  $ait #or "9 ns/

  end 3rocess/

end/

13EEBCS004

Amit Kumar

Page 18: DHD Lab File work

7/25/2019 DHD Lab File work

http://slidepdf.com/reader/full/dhd-lab-file-work 18/21

18

Fig+ Simulation o# XO; -ate

Fig+ To3 :ie$ o# XO; -ate

Fig+ ;TL Schematic o# XO; -ate

%esu&t :

The XO; gate circuit is designed and simulated success#ull.

13EEBCS004

Amit Kumar

Page 19: DHD Lab File work

7/25/2019 DHD Lab File work

http://slidepdf.com/reader/full/dhd-lab-file-work 19/21

19

Experiment No. /

Object:

To design and simulate the XNO; gate circuit using DATAFLOW Modeling.

Apparatus:

Xilinx ISE !." so#t$are %it& Acti'e( )DL& Student Edition

Theory:

Input Output

A B Y=not*A xor B+

* *

* *

* *

Fig+ Truth ta,le o# XNO; -ATE

13EEBCS004

Amit Kumar

Page 20: DHD Lab File work

7/25/2019 DHD Lab File work

http://slidepdf.com/reader/full/dhd-lab-file-work 20/21

20

V!" #o$e:

li,rar ieee/

use ieee.std0logic012.all/

entit xnor0gate is

  3ort 4 a + in std0logic/

  , + in std0logic/

  + out std0logic5/

end xnor0gate/

architecture data#lo$ o# xnor0gate is

 ,egin

  67 a xnor ,/

end architecture/

test bench:

entit xor0t, is

end xor0t,/ 

architecture test,ench o# xor0t, is

com3onent xor0gate

  3ort4a + in std0logic/

  , + in std0logic/

  + out std0logic 5/

end com3onent/

 signal a + std0logic +7 8*8/

  signal , + std0logic +7 8*8/

  signal + std0logic/

 ,egin

  uut+ xor0gate 3ort ma34a&,&5/

 3rocess

  ,egin

  a678*8/ ,678*8/

  $ait #or "9 ns/

  a678*8/ ,6788/

  $ait #or "9 ns/  a6788/ ,678*8/

  $ait #or "9 ns/

  a6788/ ,6788/

  $ait #or "9 ns/

  end 3rocess/

end/

13EEBCS004

Amit Kumar

Page 21: DHD Lab File work

7/25/2019 DHD Lab File work

http://slidepdf.com/reader/full/dhd-lab-file-work 21/21

21

Fig+ Simulation o# XNO; -ate

Fig+ To3 :ie$ o# XNO; -ate

Fig+ ;TL Schematic o# XNO; -ate

%esu&t :

The XNO; gate circuit is designed and simulated success#ull.