PROGRAMMABLE LOGIC DEVICES contd'' - PowerPoint PPT Presentation

Loading...

PPT – PROGRAMMABLE LOGIC DEVICES contd'' PowerPoint presentation | free to view - id: 1bb376-ZDc1Z



Loading


The Adobe Flash plugin is needed to view this content

Get the plugin now

View by Category
About This Presentation
Title:

PROGRAMMABLE LOGIC DEVICES contd''

Description:

if (sa='1' or sb='0') then nextstate = 12; end if; ... we know that Sa Sa' =1 and Sb Sb' =1. Thus we see the final value of. D1 = Q1Q2' Q2Q3Q4 ... – PowerPoint PPT presentation

Number of Views:69
Avg rating:3.0/5.0
Slides: 27
Provided by: Har127
Category:

less

Write a Comment
User Comments (0)
Transcript and Presenter's Notes

Title: PROGRAMMABLE LOGIC DEVICES contd''


1
PROGRAMMABLE LOGIC DEVICES contd..
shobha_shankar_at_yahoo.com
SHOBHA K.R MSRIT
2
ORGANISATION
  • Basics of Programmable Array Logic(PAL)
  • Implementation of BCD to EXCESS-3 using PAL
  • Traffic light controller using 22v10

3
COMBINATIONAL PAL SEGMENT
4
SEGMENT OF A SEQUENTIAL PAL
Q D ABQABQ
5
SIMPLIFIED EQUATION FOR BCD TO EXCESS-3 CONVERTER
IMPLEMENTATION
6
LOGIC DIAGRAM FOR 16R4 PAL Contd..
7
LOGIC DIAGRAM FOR 16R4 PAL
8
BLOCK DIAGRAM FOR 22V10
9
OUTPUT MACROCELL
10
OUTPUT MACROCELL
11
BLOCK DIAGRAM OF TRAFFIC-LIGHT CONTROLLER using
PAL22V10
12
STATE GRAPH FOR TRAFFIC-LIGHT CONTROLLER
13
VHDL CODE TO IMPLEMENT TRAFFIC CONTROLLER contd..
library ieee use ieee.std_logic_1164.all entity
traffic_light is port (clk, sa, sb in bit ra,
rb, ga, gb, ya, yb inout bit) end
traffic_light architecture behave of
traffic_light is signal state, nextstate integer
range 0 to 12 type light is (r, y, g) signal
lighta, lightb light begin
14
VHDL CODE TO IMPLEMENT TRAFFIC CONTROLLER
process(state, sa, sb) begin ra lt '0' rb lt
'0' ga lt '0' gb lt '0' ya lt '0' yb lt
'0' case state is when 0 to 4 gt ga lt '1' rb
lt '1' nextstate lt state1 when 5 gt ga lt
'1' rb lt '1' if sb '1' then nextstate lt 6
end if when 6 gt ya lt '1' rb lt '1' nextstate
lt 7 when 7 to 10 gt ra lt '1' gb lt '1'
nextstate lt state1 when 11 gt ra lt '1' gb lt
'1' if (sa'1' or sb'0') then nextstate lt 12
end if when 12 gt ra lt '1' yb lt '1'
nextstate lt 0 end case end process
15
VHDL CODE TO IMPLEMENT TRAFFIC CONTROLLER
process(clk) begin if clk '1' then state lt
nextstate end if end process lighta lt r when
ra'1' else y when ya'1' else g
when ga'1' lightb lt r when rb'1' else y when
yb'1' else g when gb'1' end
behave
16
TEST RESULTS FOR TRAFFIC-LIGHT CONTROLLER
17
STATE TABLE FOR TRAFFIC-LIGHT CONTROLLER
18
BINARY VALUE ASSIGNMENT FOR DIFFERENT STATES
Q1Q2Q3Q4
  • S0 0000
  • S1 0001
  • S2 0010
  • S3 0011
  • S4 0100
  • S5 0101
  • S6 0110

S7 0111 S8 1000 S9 1001 S10 1010 S11
1011 S12 1100
S13 XXXX S14 XXXX S15 XXXX
19
STATE TABLE FOR TRAFFIC-LIGHT CONTROLLER
SaSb
20
K-MAP REALIZATION FOR D1
AT SaSb01 D1 Q1Q2 Q2Q3Q4
AT SaSb00 D1 Q1Q2 Q2Q3Q4
21
K-MAP REALIZATION FOR D1
AT SaSb10 D1 Q1Q2 Q2Q3Q4
AT SaSb11 D1 Q1Q2 Q2Q3Q4
22
THE OUTPUT EQUATIONS FOR D1
  • D1 Q1Q2 Q2Q3Q4 at SaSb (i.e Sa0 and
    Sb0)
  • D1 Q1Q2 Q2Q3Q4 at SaSb (i.e Sa0 and
    Sb1)
  • D1 Q1Q2 Q2Q3Q4 at SaSb (i.e Sa1 and
    Sb0)
  • D1 Q1Q2 Q2Q3Q4 at SaSb (i.e Sa1 and
    Sb1)
  •  
  • So in order to solve for D in every case we need
    to AND the result and then OR the final minterms
    which is the basic principle of PLA. So we see

23
THE OUTPUT EQUATIONS
  •  Solving for the first case i.e. D1
  • D1 (Q1Q2 Q2Q3Q4) SaSb
  • (Q1Q2 Q2Q3Q4) SaSb
  • (Q1Q2 Q2Q3Q4) SaSb
  • (Q1Q2 Q2Q3Q4) SaSb
  •  

24
THE OUTPUT EQUATIONS
  • Simplifying further
  • D1 (Q1Q2 Q2Q3Q4) (SaSb SaSb SaSb
    SaSb)
  • D1 (Q1Q2 Q2Q3Q4) (Sa (Sb Sb) Sa(Sb
    Sb) )
  • we know that Sa Sa 1 and Sb Sb 1
  • Thus we see the final value of
  • D1 Q1Q2 Q2Q3Q4

25
K-MAP REALIZATION FOR Ga
GaQ1Q3Q1Q2
26
EQUATIONS TO IMPLEMENT TRAFFIC CONTROLLER
Similarly the below equations are implemented
About PowerShow.com