SlideShare ist ein Scribd-Unternehmen logo
1 von 34
FPGA Based RGB LED Tiling
System
Contents
• System Overview
• Digital Design
• Software Design
• Board Design
SYSTEM
OVERVIEW
UART
Block
Ram
Control
Block
GUI
Software for
decoding
and
transmission
FPGA
LED Matrix
FPGA MODULE
PC CONNECTIVITY STORAGE
COMMUNICATION LOGIC & CONTROL
FPGA
PC CONNECTIVITY
• Serial Transfer :UART MODULE
– RS 232 Protocol
– Asynchronous Transfer
– Full Duplex
– Tested at baud rate of 9600bps to 115200bps
UART MODULE IMPLEMENTATION
Marc STOP BIT
START
BIT
MARC
START
BIT
SIN=0
SIN=1
SIN=0
DATA
0
DATA
1
DATA
2
DATA
3
DATA
7
DATA
6
DATA
5
DATA
4
SIN=1
STOP
BIT
DATA
STORAGE
• Block RAM
– Dual Port
– Default : 256 X 32bit RAM
– Combined three to get 192 X 72bit RAM
STORAGE: ORGANISATION OF DATA
LED 1.1
RED
LSB(0)
LED 1.1
BLUE
LSB(0)
LED 1.1
GREEN
LSB(0)
LED 1.2
RED
LSB(0)
LED 1.2
BLUE
LSB(0)
LED 1.2
GREEN
LSB(0)
LED 1.1
RED
MSB(7)
LED 1.1
BLUE
MSB(7)
LED 1.1
GREEN
MSB(7)
LED 1.2
RED
MSB(7)
LED 1.2
BLUE
MSB(7)
LED 1.2
GREEN
MSB(7)
LED 2.1
RED
LSB(0)
LED 2.1
BLUE
LSB(0)
LED 2.1
GREEN
LSB(0)
LED 2.2
RED
LSB(0)
LED 2.2
BLUE
LSB(0)
LED 2.2
GREEN
LSB(0)
LED 2.1
RED
MSB(7)
LED 2.1
BLUE
MSB(7)
LED 2.1
GREEN
MSB(7)
LED 2.2
RED
MSB(7)
LED 2.2
BLUE
MSB(7)
LED 2.2
GREEN
MSB(7)
LED
1.1
LED
1.2
LED
2.1
LED
2.2
COMMUNICATION
• Inter-FPGA-Communication Module
– Modified I2C Bus Interface
• Two Wire Interface: Clock Signal and Data Signal
• Duplex with Single Master
• Connects 255 FPGAs
– Required to relay images to FPGAs
PC FPGA1 FPGA2
FPGA 4 FPGA 3
UART I2C
• Data transfer is initiated when data line is
pulled low while Clock stays high.
• The master puts new data on the falling edge
• The slave receives data on the rising edge
• Data Transfer is stopped by pulling the data
line high while clock is constantly high
Modified I2C : Timing
Start Signal
• Clock=‘1’
• Data 0-1
Device
Address
• 1-255
Command
Word
• Bulk Transfer
• Single
Transfer
• Address
DATA
• 576 Byte
• 1 Byte
Stop Signal
• Clock=‘1’
• Data 1-0
Modified I2C : Message Protocol
LOGIC & CONTROL
• PWM
RAM Read
Control
• UART
• I2C
RAM Write
Control
PWM Generation
• Example
– Generate 8 bit PWM
• 0 means 0% duty cycle
• 255 means 100% duty Cycle
– Let us try and find PWM level of 128
• 128=010000000
• Hold the value of output=
– bit 0 for 1 clock cycle
– bit 1 for 2 clock cycle
– bit 2 for 4 clock cycle
– bit 3 for 8 clock cycle
– bit 4 for 16 clock cycle
– bit 5 for 32 clock cycle
– bit 6 for 64 clock cycle
– bit 7 for 128 clock cycle
– Total clock cycles=255
• 128 would mean that we have 128 clock cycles for which the output is one and
127 cycles for which the output is 0 hence 50% duty cycle as required
PWM Generation + Read Control
LED 1.1
RED
LSB(0)
LED 1.1
BLUE
LSB(0)
LED 1.1
GREEN
LSB(0)
LED 1.2
RED
LSB(0)
LED 1.2
BLUE
LSB(0)
LED 1.2
GREEN
LSB(0)
LED 1.1
RED
MSB(7)
LED 1.1
BLUE
MSB(7)
LED 1.1
GREEN
MSB(7)
LED 1.2
RED
MSB(7)
LED 1.2
BLUE
MSB(7)
LED 1.2
GREEN
MSB(7)
LED 2.1
RED
LSB(0)
LED 2.1
BLUE
LSB(0)
LED 2.1
GREEN
LSB(0)
LED 2.2
RED
LSB(0)
LED 2.2
BLUE
LSB(0)
LED 2.2
GREEN
LSB(0)
LED 2.1
RED
MSB(7)
LED 2.1
BLUE
MSB(7)
LED 2.1
GREEN
MSB(7)
LED 2.2
RED
MSB(7)
LED 2.2
BLUE
MSB(7)
LED 2.2
GREEN
MSB(7)
LED
1.1
LED
1.2
LED
2.1
LED
2.2
Write Control
UART
9 Byte
Buffer
RAM
192X72
SOFTWARE DESIGN
•Python
•Pymedia
•TERMINAL v1.9b
•Serial Data
Transfer
•115200bps
•Matlab
Video
Decoding
Data
Transfer
GUI
Utilities
Video Decoding
• Any Image is a 3D array
– Image(; ;1) represents RED
– Image(; ;2) represents GREEN
– Image(; ;3) represents BLUE
• Any Video is a 4D array with time as the 4th
dimension
– Video(; ; ; N) where N represents the Nth frame
Our Mechanism
1 •Convert JPEG image to RGB Array
2 •Covert Array values to Binary Value
3 •Convert to RAM compatible format
4 •Generate a text file
5 •Transfer via Terminal at 115200bps
Our Mechanism
255 255
255 255
0 0
0 0
170 170
170 170
11111111 11111111
11111111 11111111
00000000 00000000
00000000 00000000
10101010 10101010
10101010 10101010
1 0 0 1 0 0 1 0 1 1 0
ASCII
VALUE for
10010010
Python in Progress
• Why Python?
– Open Source and Free ware
– Work:
• Image Decoding
• Data Transfer : PyUSB, PySerial
• GUI Development: PyCard
LED Board
• consists of matrix of RGB LEDs size –
24 X 24 RGB LEDs.
FPGA Board
• consists of power supply regulators,
RS-232 Port, JTAG, 7-segment displays,
buttons, and FPGA ( Spartan3AN-50K).
LED Board
• Separation between RGB LEDs – 20mm.
• Separate LEDs for each color because of cost
factors
• Board subdivided into 16 parts with 6 X 6 RGB
LEDs
• Board Specifications
– Clearance – 10 mil
– Width – 12mil
– Drill size – 24 mil
• Multiplexing of LED Columns using High Power
PMOS (FDC604P).
• Power Supply - 5 V (Blue LEDs require 3.3 V)
• NPN with every PMOS
Since FPGA only
Provides 3.3 V.
LED Board
LED Board Layout
FPGA Board
• Spartan3AN - XC3S50AN.
– Package - Thin QFP with 144 pins (TQ144).
• Power Supplies
– VCCINT - 1.2V
– VCCAUX – 3.3V
• CLKIN – 20 MHz
• Four Multiplexed - 7 Segment displays
• RS- 232 Port along with MAX232 IC for signal interface
with FPGA.
• Four Buttons and three DIL switches as configuration
selector.
FPGA Board Layout
Specifications of FPGA used
• Device Name - XC3S50AN
• System Gates -50K
• Equivalent Logic Cells - 1,584
• CLBs - 176
• Slices - 704
• Distributed RAM Bits – 11k
• Block RAM Bits - 54K
• Maximum User I/O -108
FPGA Based RGB LED Display
FPGA Based RGB LED Display
FPGA Based RGB LED Display
FPGA Based RGB LED Display
FPGA Based RGB LED Display
FPGA Based RGB LED Display

Weitere ähnliche Inhalte

Was ist angesagt?

Serial connectors, Protocols , USB (universal serial bus)
Serial connectors, Protocols , USB (universal serial bus)Serial connectors, Protocols , USB (universal serial bus)
Serial connectors, Protocols , USB (universal serial bus)A. Shamel
 
Spi master core verification
Spi master core verificationSpi master core verification
Spi master core verificationMaulik Suthar
 
Audio led bargraph equalizer
Audio led bargraph equalizerAudio led bargraph equalizer
Audio led bargraph equalizerdouglaslyon
 
Do you know what your digital pins are "really" saying
Do you know what your digital pins are "really" sayingDo you know what your digital pins are "really" saying
Do you know what your digital pins are "really" sayingLeroy Levin
 
74ls290datasheet
74ls290datasheet74ls290datasheet
74ls290datasheetneghy
 
RTC Interfacing and Programming
RTC Interfacing and ProgrammingRTC Interfacing and Programming
RTC Interfacing and ProgrammingDevashish Raval
 
PLNOG 18 - Leonir Hoxha - Traffic Engineering with Segment Routing
PLNOG 18 - Leonir Hoxha - Traffic Engineering with Segment RoutingPLNOG 18 - Leonir Hoxha - Traffic Engineering with Segment Routing
PLNOG 18 - Leonir Hoxha - Traffic Engineering with Segment RoutingPROIDEA
 
Slow peripheral interfaces (i2 c spi uart)
Slow peripheral interfaces (i2 c  spi uart)Slow peripheral interfaces (i2 c  spi uart)
Slow peripheral interfaces (i2 c spi uart)PREMAL GAJJAR
 

Was ist angesagt? (14)

Ccp
CcpCcp
Ccp
 
Serial connectors, Protocols , USB (universal serial bus)
Serial connectors, Protocols , USB (universal serial bus)Serial connectors, Protocols , USB (universal serial bus)
Serial connectors, Protocols , USB (universal serial bus)
 
Lec08
Lec08Lec08
Lec08
 
Spi master core verification
Spi master core verificationSpi master core verification
Spi master core verification
 
Audio led bargraph equalizer
Audio led bargraph equalizerAudio led bargraph equalizer
Audio led bargraph equalizer
 
Digital Clock
Digital ClockDigital Clock
Digital Clock
 
Gold Duo Servo Drive | ElmoMC
Gold Duo Servo Drive | ElmoMCGold Duo Servo Drive | ElmoMC
Gold Duo Servo Drive | ElmoMC
 
SPI Protocol in LPC2148
SPI  Protocol in LPC2148SPI  Protocol in LPC2148
SPI Protocol in LPC2148
 
Pro tools HD Systems
Pro tools HD SystemsPro tools HD Systems
Pro tools HD Systems
 
Do you know what your digital pins are "really" saying
Do you know what your digital pins are "really" sayingDo you know what your digital pins are "really" saying
Do you know what your digital pins are "really" saying
 
74ls290datasheet
74ls290datasheet74ls290datasheet
74ls290datasheet
 
RTC Interfacing and Programming
RTC Interfacing and ProgrammingRTC Interfacing and Programming
RTC Interfacing and Programming
 
PLNOG 18 - Leonir Hoxha - Traffic Engineering with Segment Routing
PLNOG 18 - Leonir Hoxha - Traffic Engineering with Segment RoutingPLNOG 18 - Leonir Hoxha - Traffic Engineering with Segment Routing
PLNOG 18 - Leonir Hoxha - Traffic Engineering with Segment Routing
 
Slow peripheral interfaces (i2 c spi uart)
Slow peripheral interfaces (i2 c  spi uart)Slow peripheral interfaces (i2 c  spi uart)
Slow peripheral interfaces (i2 c spi uart)
 

Ähnlich wie FPGA Based RGB LED Display

arm complete detail part 2
arm complete detail part 2arm complete detail part 2
arm complete detail part 2NOWAY
 
MYC-C7Z015 CPU Module
MYC-C7Z015 CPU ModuleMYC-C7Z015 CPU Module
MYC-C7Z015 CPU ModuleLinda Zhang
 
Introduction to FPGA and projects overview
Introduction to FPGA and projects overviewIntroduction to FPGA and projects overview
Introduction to FPGA and projects overviewVikrant Thakur
 
NXP i.MX6 Multi Media Processor & Peripherals
NXP i.MX6 Multi Media Processor & PeripheralsNXP i.MX6 Multi Media Processor & Peripherals
NXP i.MX6 Multi Media Processor & PeripheralsNEEVEE Technologies
 
Rtos for system integration
Rtos for system integrationRtos for system integration
Rtos for system integrationjaideep Dadi
 
Snapdragon SoC and ARMv7 Architecture
Snapdragon SoC and ARMv7 ArchitectureSnapdragon SoC and ARMv7 Architecture
Snapdragon SoC and ARMv7 ArchitectureSantosh Verma
 
Renesas RL78 The True Low Power Microcontroller Platform
 Renesas RL78 The True Low Power Microcontroller Platform Renesas RL78 The True Low Power Microcontroller Platform
Renesas RL78 The True Low Power Microcontroller PlatformRenesas Electronics Corporation
 
5. Features of the LPC214X Family.pptx
5. Features of the LPC214X Family.pptx5. Features of the LPC214X Family.pptx
5. Features of the LPC214X Family.pptxSivakumarG52
 
Precision microcontrolleroverview
Precision microcontrolleroverviewPrecision microcontrolleroverview
Precision microcontrolleroverviewGhazi BEN HMIDA
 
32bit Cortex Arduinoの布教とラパイド実験のススメ
32bit Cortex Arduinoの布教とラパイド実験のススメ32bit Cortex Arduinoの布教とラパイド実験のススメ
32bit Cortex Arduinoの布教とラパイド実験のススメYuya Yamada
 
Esp32 datasheet
Esp32 datasheetEsp32 datasheet
Esp32 datasheetMoises .
 
Not bridge south bridge archexture
Not bridge  south bridge archextureNot bridge  south bridge archexture
Not bridge south bridge archexturesunil kumar
 

Ähnlich wie FPGA Based RGB LED Display (20)

dsPIC33FJ06GSXXX DSCs
dsPIC33FJ06GSXXX DSCsdsPIC33FJ06GSXXX DSCs
dsPIC33FJ06GSXXX DSCs
 
arm complete detail part 2
arm complete detail part 2arm complete detail part 2
arm complete detail part 2
 
MarsBoard - NXP IMX6 Processor
MarsBoard - NXP IMX6 ProcessorMarsBoard - NXP IMX6 Processor
MarsBoard - NXP IMX6 Processor
 
MYC-C7Z015 CPU Module
MYC-C7Z015 CPU ModuleMYC-C7Z015 CPU Module
MYC-C7Z015 CPU Module
 
Introduction to FPGA and projects overview
Introduction to FPGA and projects overviewIntroduction to FPGA and projects overview
Introduction to FPGA and projects overview
 
NXP i.MX6 Multi Media Processor & Peripherals
NXP i.MX6 Multi Media Processor & PeripheralsNXP i.MX6 Multi Media Processor & Peripherals
NXP i.MX6 Multi Media Processor & Peripherals
 
Rtos for system integration
Rtos for system integrationRtos for system integration
Rtos for system integration
 
Dsp ajal
Dsp  ajalDsp  ajal
Dsp ajal
 
Snapdragon SoC and ARMv7 Architecture
Snapdragon SoC and ARMv7 ArchitectureSnapdragon SoC and ARMv7 Architecture
Snapdragon SoC and ARMv7 Architecture
 
Psoc3 text book
Psoc3 text book Psoc3 text book
Psoc3 text book
 
Renesas RL78 The True Low Power Microcontroller Platform
 Renesas RL78 The True Low Power Microcontroller Platform Renesas RL78 The True Low Power Microcontroller Platform
Renesas RL78 The True Low Power Microcontroller Platform
 
5. Features of the LPC214X Family.pptx
5. Features of the LPC214X Family.pptx5. Features of the LPC214X Family.pptx
5. Features of the LPC214X Family.pptx
 
Precision microcontrolleroverview
Precision microcontrolleroverviewPrecision microcontrolleroverview
Precision microcontrolleroverview
 
Parth xyz
Parth xyzParth xyz
Parth xyz
 
32bit Cortex Arduinoの布教とラパイド実験のススメ
32bit Cortex Arduinoの布教とラパイド実験のススメ32bit Cortex Arduinoの布教とラパイド実験のススメ
32bit Cortex Arduinoの布教とラパイド実験のススメ
 
Esp32 datasheet
Esp32 datasheetEsp32 datasheet
Esp32 datasheet
 
Doc32059
Doc32059Doc32059
Doc32059
 
32059 sistem
32059 sistem32059 sistem
32059 sistem
 
Not bridge south bridge archexture
Not bridge  south bridge archextureNot bridge  south bridge archexture
Not bridge south bridge archexture
 
Msp430
Msp430Msp430
Msp430
 

Kürzlich hochgeladen

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 

Kürzlich hochgeladen (20)

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 

FPGA Based RGB LED Display

  • 1. FPGA Based RGB LED Tiling System
  • 2. Contents • System Overview • Digital Design • Software Design • Board Design
  • 4. FPGA MODULE PC CONNECTIVITY STORAGE COMMUNICATION LOGIC & CONTROL FPGA
  • 5. PC CONNECTIVITY • Serial Transfer :UART MODULE – RS 232 Protocol – Asynchronous Transfer – Full Duplex – Tested at baud rate of 9600bps to 115200bps
  • 6. UART MODULE IMPLEMENTATION Marc STOP BIT START BIT MARC START BIT SIN=0 SIN=1 SIN=0 DATA 0 DATA 1 DATA 2 DATA 3 DATA 7 DATA 6 DATA 5 DATA 4 SIN=1 STOP BIT DATA
  • 7. STORAGE • Block RAM – Dual Port – Default : 256 X 32bit RAM – Combined three to get 192 X 72bit RAM
  • 8. STORAGE: ORGANISATION OF DATA LED 1.1 RED LSB(0) LED 1.1 BLUE LSB(0) LED 1.1 GREEN LSB(0) LED 1.2 RED LSB(0) LED 1.2 BLUE LSB(0) LED 1.2 GREEN LSB(0) LED 1.1 RED MSB(7) LED 1.1 BLUE MSB(7) LED 1.1 GREEN MSB(7) LED 1.2 RED MSB(7) LED 1.2 BLUE MSB(7) LED 1.2 GREEN MSB(7) LED 2.1 RED LSB(0) LED 2.1 BLUE LSB(0) LED 2.1 GREEN LSB(0) LED 2.2 RED LSB(0) LED 2.2 BLUE LSB(0) LED 2.2 GREEN LSB(0) LED 2.1 RED MSB(7) LED 2.1 BLUE MSB(7) LED 2.1 GREEN MSB(7) LED 2.2 RED MSB(7) LED 2.2 BLUE MSB(7) LED 2.2 GREEN MSB(7) LED 1.1 LED 1.2 LED 2.1 LED 2.2
  • 9. COMMUNICATION • Inter-FPGA-Communication Module – Modified I2C Bus Interface • Two Wire Interface: Clock Signal and Data Signal • Duplex with Single Master • Connects 255 FPGAs – Required to relay images to FPGAs PC FPGA1 FPGA2 FPGA 4 FPGA 3 UART I2C
  • 10. • Data transfer is initiated when data line is pulled low while Clock stays high. • The master puts new data on the falling edge • The slave receives data on the rising edge • Data Transfer is stopped by pulling the data line high while clock is constantly high Modified I2C : Timing
  • 11. Start Signal • Clock=‘1’ • Data 0-1 Device Address • 1-255 Command Word • Bulk Transfer • Single Transfer • Address DATA • 576 Byte • 1 Byte Stop Signal • Clock=‘1’ • Data 1-0 Modified I2C : Message Protocol
  • 12. LOGIC & CONTROL • PWM RAM Read Control • UART • I2C RAM Write Control
  • 13. PWM Generation • Example – Generate 8 bit PWM • 0 means 0% duty cycle • 255 means 100% duty Cycle – Let us try and find PWM level of 128 • 128=010000000 • Hold the value of output= – bit 0 for 1 clock cycle – bit 1 for 2 clock cycle – bit 2 for 4 clock cycle – bit 3 for 8 clock cycle – bit 4 for 16 clock cycle – bit 5 for 32 clock cycle – bit 6 for 64 clock cycle – bit 7 for 128 clock cycle – Total clock cycles=255 • 128 would mean that we have 128 clock cycles for which the output is one and 127 cycles for which the output is 0 hence 50% duty cycle as required
  • 14. PWM Generation + Read Control LED 1.1 RED LSB(0) LED 1.1 BLUE LSB(0) LED 1.1 GREEN LSB(0) LED 1.2 RED LSB(0) LED 1.2 BLUE LSB(0) LED 1.2 GREEN LSB(0) LED 1.1 RED MSB(7) LED 1.1 BLUE MSB(7) LED 1.1 GREEN MSB(7) LED 1.2 RED MSB(7) LED 1.2 BLUE MSB(7) LED 1.2 GREEN MSB(7) LED 2.1 RED LSB(0) LED 2.1 BLUE LSB(0) LED 2.1 GREEN LSB(0) LED 2.2 RED LSB(0) LED 2.2 BLUE LSB(0) LED 2.2 GREEN LSB(0) LED 2.1 RED MSB(7) LED 2.1 BLUE MSB(7) LED 2.1 GREEN MSB(7) LED 2.2 RED MSB(7) LED 2.2 BLUE MSB(7) LED 2.2 GREEN MSB(7) LED 1.1 LED 1.2 LED 2.1 LED 2.2
  • 16. SOFTWARE DESIGN •Python •Pymedia •TERMINAL v1.9b •Serial Data Transfer •115200bps •Matlab Video Decoding Data Transfer GUI Utilities
  • 17. Video Decoding • Any Image is a 3D array – Image(; ;1) represents RED – Image(; ;2) represents GREEN – Image(; ;3) represents BLUE • Any Video is a 4D array with time as the 4th dimension – Video(; ; ; N) where N represents the Nth frame
  • 18. Our Mechanism 1 •Convert JPEG image to RGB Array 2 •Covert Array values to Binary Value 3 •Convert to RAM compatible format 4 •Generate a text file 5 •Transfer via Terminal at 115200bps
  • 19. Our Mechanism 255 255 255 255 0 0 0 0 170 170 170 170 11111111 11111111 11111111 11111111 00000000 00000000 00000000 00000000 10101010 10101010 10101010 10101010 1 0 0 1 0 0 1 0 1 1 0 ASCII VALUE for 10010010
  • 20. Python in Progress • Why Python? – Open Source and Free ware – Work: • Image Decoding • Data Transfer : PyUSB, PySerial • GUI Development: PyCard
  • 21. LED Board • consists of matrix of RGB LEDs size – 24 X 24 RGB LEDs. FPGA Board • consists of power supply regulators, RS-232 Port, JTAG, 7-segment displays, buttons, and FPGA ( Spartan3AN-50K).
  • 22. LED Board • Separation between RGB LEDs – 20mm. • Separate LEDs for each color because of cost factors • Board subdivided into 16 parts with 6 X 6 RGB LEDs • Board Specifications – Clearance – 10 mil – Width – 12mil – Drill size – 24 mil
  • 23. • Multiplexing of LED Columns using High Power PMOS (FDC604P). • Power Supply - 5 V (Blue LEDs require 3.3 V) • NPN with every PMOS Since FPGA only Provides 3.3 V. LED Board
  • 25. FPGA Board • Spartan3AN - XC3S50AN. – Package - Thin QFP with 144 pins (TQ144). • Power Supplies – VCCINT - 1.2V – VCCAUX – 3.3V • CLKIN – 20 MHz • Four Multiplexed - 7 Segment displays • RS- 232 Port along with MAX232 IC for signal interface with FPGA. • Four Buttons and three DIL switches as configuration selector.
  • 27.
  • 28. Specifications of FPGA used • Device Name - XC3S50AN • System Gates -50K • Equivalent Logic Cells - 1,584 • CLBs - 176 • Slices - 704 • Distributed RAM Bits – 11k • Block RAM Bits - 54K • Maximum User I/O -108