Dsd FILE mdu

17
1:- Design All logical Gates Using VHDL. VHDL PROGARM FOR OR GATE Sample WaveForm Output:- Akash Gera

Transcript of Dsd FILE mdu

Page 1: Dsd FILE mdu

1:- Design All logical Gates Using VHDL.

VHDL PROGARM FOR OR GATE

Sample WaveForm Output:-

Akash Gera

Page 2: Dsd FILE mdu

VHDL PROGARM FOR AND GATE

Sample WaveForm Output:-

Akash Gera

Page 3: Dsd FILE mdu

VHDL PROGARM FOR NOT GATE

Sample WaveForm Output:-

Akash Gera

Page 4: Dsd FILE mdu

VHDL PROGARM FOR NAND GATE

Sample WaveForm Output:-

Akash Gera

Page 5: Dsd FILE mdu

VHDL PROGARM FOR NOR GATE

Sample WaveForm Output:-

Akash Gera

Page 6: Dsd FILE mdu

VHDL PROGARM FOR XOR GATE

Sample WaveForm Output:-

Akash Gera

Page 7: Dsd FILE mdu

VHDL PROGARM FOR XNOR GATE

Sample WaveForm Output:-

Akash Gera

Page 8: Dsd FILE mdu

2:- VHDL Programs For the following and check the Simulation

1) Half Adder2) Full Adder.

VHDL PROGARM FOR HALF ADDER

Sample WaveForm Output:-

Akash Gera

Page 9: Dsd FILE mdu

VHDL PROGARM FOR FULL ADDER

LIBRARY IEEE;

use IEEE.STD_LOGIC_1164.ALL;

use IEEE.STD_LOGIC_ARITH.ALL;

use IEEE.STD_LOGIC_UNSIGNED.ALL;

entity fulladder is

port( a, b, cin : in STD_LOGIC;

sum, cout : out STD_LOGIC );

end fulladder;

architecture Behavioral of fulladder is

signal s1,s2,s3: STD_ULOGIC;

constant gate_delay: Time :=100 ps;

begin

s1<=(a xor b) after gate_delay;

s2<=(cin and s1) after gate_delay;

s3<=(a and b) after gate_delay;

sum<=(s1 xor cin) after gate_delay;

cout<=(s2 or s3) after gate_delay;

end Behavioral;

Sample WaveForm Output:-

Akash Gera

Page 10: Dsd FILE mdu

3:- VHDL Programs For the following and check the Simulation

1. Multiplexer2. Demultiplexer

VHDL PROGARM FOR MULTIPLEXER(4 X 1)

Sample WaveForm Output:-

Akash Gera

Page 11: Dsd FILE mdu

VHDL PROGARM FOR DEMULTIPLEXER(2 X4)

Sample WaveForm Output:-

Akash Gera

Page 12: Dsd FILE mdu

4:- VHDL Program For a Comparator and check the Simulation

Sample WaveForm Output:-

Akash Gera

Page 13: Dsd FILE mdu

5:- VHDL Program For a Code Converter and check the Simulation

Sample WaveForm Output:-

Akash Gera

Page 14: Dsd FILE mdu

6:- VHDL Program For a JK flip flop and check the Simulation

Sample WaveForm Output:-

Akash Gera

Page 15: Dsd FILE mdu

7:- VHDL Program For a Counter and check the Simulation

Sample WaveForm Output:-

Akash Gera