lcd controller ip · 2018-08-26 · lcd controller ip by marcos oliveira in january 12th, 2017....
TRANSCRIPT
![Page 1: LCD controller IP · 2018-08-26 · LCD controller IP by Marcos Oliveira in January 12th, 2017. Slide: 6 Constraints Maximum frame refresh rate: • Control signals synchronous with](https://reader034.vdocuments.us/reader034/viewer/2022042303/5ecf019783768110360b33df/html5/thumbnails/1.jpg)
LCD controller IP
Marcos Vinicius Silva Oliveira
![Page 2: LCD controller IP · 2018-08-26 · LCD controller IP by Marcos Oliveira in January 12th, 2017. Slide: 6 Constraints Maximum frame refresh rate: • Control signals synchronous with](https://reader034.vdocuments.us/reader034/viewer/2022042303/5ecf019783768110360b33df/html5/thumbnails/2.jpg)
Slide: 2LCD controller IP by Marcos Oliveira in January 12th, 2017.
SummaryLab3 block diagram
Modes of operation
Constraints
LCD controlleer IP
Freatures
Register Map
Top level connections
ILI 4391 connections
Block diagam
Simulation Results
Logic Analyser results
Demo
![Page 3: LCD controller IP · 2018-08-26 · LCD controller IP by Marcos Oliveira in January 12th, 2017. Slide: 6 Constraints Maximum frame refresh rate: • Control signals synchronous with](https://reader034.vdocuments.us/reader034/viewer/2022042303/5ecf019783768110360b33df/html5/thumbnails/3.jpg)
Slide: 3LCD controller IP by Marcos Oliveira in January 12th, 2017.
Lab3 block diagram
![Page 4: LCD controller IP · 2018-08-26 · LCD controller IP by Marcos Oliveira in January 12th, 2017. Slide: 6 Constraints Maximum frame refresh rate: • Control signals synchronous with](https://reader034.vdocuments.us/reader034/viewer/2022042303/5ecf019783768110360b33df/html5/thumbnails/4.jpg)
Slide: 4LCD controller IP by Marcos Oliveira in January 12th, 2017.
Mode of operation A
![Page 5: LCD controller IP · 2018-08-26 · LCD controller IP by Marcos Oliveira in January 12th, 2017. Slide: 6 Constraints Maximum frame refresh rate: • Control signals synchronous with](https://reader034.vdocuments.us/reader034/viewer/2022042303/5ecf019783768110360b33df/html5/thumbnails/5.jpg)
Slide: 5LCD controller IP by Marcos Oliveira in January 12th, 2017.
Mode of operation B
![Page 6: LCD controller IP · 2018-08-26 · LCD controller IP by Marcos Oliveira in January 12th, 2017. Slide: 6 Constraints Maximum frame refresh rate: • Control signals synchronous with](https://reader034.vdocuments.us/reader034/viewer/2022042303/5ecf019783768110360b33df/html5/thumbnails/6.jpg)
Slide: 6LCD controller IP by Marcos Oliveira in January 12th, 2017.
Constraints
Maximum frame refresh rate:
• Control signals
synchronous with Avalon
clock -> 50 MHz
• Writing cycles should last 4
clock cycles fo meet the
min twc of 66 ns.
• Read cycles should last at
least 9 cycles to reach the
trcfm of 450 ns.
• Dummy data in read cycle• Handled in SW as performance
not important for read accesses
![Page 7: LCD controller IP · 2018-08-26 · LCD controller IP by Marcos Oliveira in January 12th, 2017. Slide: 6 Constraints Maximum frame refresh rate: • Control signals synchronous with](https://reader034.vdocuments.us/reader034/viewer/2022042303/5ecf019783768110360b33df/html5/thumbnails/7.jpg)
Slide: 7LCD controller IP by Marcos Oliveira in January 12th, 2017.
FreaturesLCD controller IP features
Modes of operationA: Processor writes data to ILI9341
B: DMA engine writes data to ILI9341
ILI9341 write access Yes
ILI9341 read access Yes
Multiple buffering Implemented in SW
Number of buffers Not limited by the IP (limited by off-chip memory)
Max Frame rate 162.76 Hz
Minimal interval
between framesconfigurable by PUSHBUTTONS / SW
Frame receiveid Ack Accessible by the Arduino interface D0 pin
FIFO size 256 words (1 M4K)
StartAdress configurable by SW
EndAddress configurable by SW
DMA Request Mode New request only after current is finished
DMA burst length configurable by SW (2-256) (could be 1024 if FIFO up)
FIFO threshold configurable by SW
IRQ support Yes
IRQ masking configurable by SW
DMA sync rst set by SW
Debug LCD FSM Yes
Debug DMA FSM Yes
Debug DMA Addr Yes
Debug DMA RX DATA Yes
Debug Pushbuttons Yes
![Page 8: LCD controller IP · 2018-08-26 · LCD controller IP by Marcos Oliveira in January 12th, 2017. Slide: 6 Constraints Maximum frame refresh rate: • Control signals synchronous with](https://reader034.vdocuments.us/reader034/viewer/2022042303/5ecf019783768110360b33df/html5/thumbnails/8.jpg)
Slide: 8LCD controller IP by Marcos Oliveira in January 12th, 2017.
Register Map
![Page 9: LCD controller IP · 2018-08-26 · LCD controller IP by Marcos Oliveira in January 12th, 2017. Slide: 6 Constraints Maximum frame refresh rate: • Control signals synchronous with](https://reader034.vdocuments.us/reader034/viewer/2022042303/5ecf019783768110360b33df/html5/thumbnails/9.jpg)
Slide: 9LCD controller IP by Marcos Oliveira in January 12th, 2017.
LCD controller IP
![Page 10: LCD controller IP · 2018-08-26 · LCD controller IP by Marcos Oliveira in January 12th, 2017. Slide: 6 Constraints Maximum frame refresh rate: • Control signals synchronous with](https://reader034.vdocuments.us/reader034/viewer/2022042303/5ecf019783768110360b33df/html5/thumbnails/10.jpg)
Slide: 10LCD controller IP by Marcos Oliveira in January 12th, 2017.
ILI9341 <-> LCD controller IP
![Page 11: LCD controller IP · 2018-08-26 · LCD controller IP by Marcos Oliveira in January 12th, 2017. Slide: 6 Constraints Maximum frame refresh rate: • Control signals synchronous with](https://reader034.vdocuments.us/reader034/viewer/2022042303/5ecf019783768110360b33df/html5/thumbnails/11.jpg)
Slide: 11LCD controller IP by Marcos Oliveira in January 12th, 2017.
LCD controller IP block diagram
PS: KEY_N and IRQAck are not shown here, and some of the pin names maybe slightly different
![Page 12: LCD controller IP · 2018-08-26 · LCD controller IP by Marcos Oliveira in January 12th, 2017. Slide: 6 Constraints Maximum frame refresh rate: • Control signals synchronous with](https://reader034.vdocuments.us/reader034/viewer/2022042303/5ecf019783768110360b33df/html5/thumbnails/12.jpg)
Slide: 12LCD controller IP by Marcos Oliveira in January 12th, 2017.
LCD control
![Page 13: LCD controller IP · 2018-08-26 · LCD controller IP by Marcos Oliveira in January 12th, 2017. Slide: 6 Constraints Maximum frame refresh rate: • Control signals synchronous with](https://reader034.vdocuments.us/reader034/viewer/2022042303/5ecf019783768110360b33df/html5/thumbnails/13.jpg)
Slide: 13LCD controller IP by Marcos Oliveira in January 12th, 2017.
Avalon Slave Signals
![Page 14: LCD controller IP · 2018-08-26 · LCD controller IP by Marcos Oliveira in January 12th, 2017. Slide: 6 Constraints Maximum frame refresh rate: • Control signals synchronous with](https://reader034.vdocuments.us/reader034/viewer/2022042303/5ecf019783768110360b33df/html5/thumbnails/14.jpg)
Slide: 14LCD controller IP by Marcos Oliveira in January 12th, 2017.
DMA engine
![Page 15: LCD controller IP · 2018-08-26 · LCD controller IP by Marcos Oliveira in January 12th, 2017. Slide: 6 Constraints Maximum frame refresh rate: • Control signals synchronous with](https://reader034.vdocuments.us/reader034/viewer/2022042303/5ecf019783768110360b33df/html5/thumbnails/15.jpg)
Slide: 15LCD controller IP by Marcos Oliveira in January 12th, 2017.
Asymetric FIFO
• Quartus IP
• Asymetric FIFO
• WIDTH IN = 32 bits
• WIDTH OUT = 16 bits
• Show-ahead synchronous
• WR used word flag
• RD used word flag
![Page 16: LCD controller IP · 2018-08-26 · LCD controller IP by Marcos Oliveira in January 12th, 2017. Slide: 6 Constraints Maximum frame refresh rate: • Control signals synchronous with](https://reader034.vdocuments.us/reader034/viewer/2022042303/5ecf019783768110360b33df/html5/thumbnails/16.jpg)
Slide: 16LCD controller IP by Marcos Oliveira in January 12th, 2017.
IRQ interface
PS: According to Avalon Interface Specification, IRQ Acknowledge has to be implementation
specific, that is implemented by the user.
![Page 17: LCD controller IP · 2018-08-26 · LCD controller IP by Marcos Oliveira in January 12th, 2017. Slide: 6 Constraints Maximum frame refresh rate: • Control signals synchronous with](https://reader034.vdocuments.us/reader034/viewer/2022042303/5ecf019783768110360b33df/html5/thumbnails/17.jpg)
Slide: 17LCD controller IP by Marcos Oliveira in January 12th, 2017.
Modelsim Simulation Write Cycle
![Page 18: LCD controller IP · 2018-08-26 · LCD controller IP by Marcos Oliveira in January 12th, 2017. Slide: 6 Constraints Maximum frame refresh rate: • Control signals synchronous with](https://reader034.vdocuments.us/reader034/viewer/2022042303/5ecf019783768110360b33df/html5/thumbnails/18.jpg)
Slide: 18LCD controller IP by Marcos Oliveira in January 12th, 2017.
Modelsim Simulation Read Cycle
![Page 19: LCD controller IP · 2018-08-26 · LCD controller IP by Marcos Oliveira in January 12th, 2017. Slide: 6 Constraints Maximum frame refresh rate: • Control signals synchronous with](https://reader034.vdocuments.us/reader034/viewer/2022042303/5ecf019783768110360b33df/html5/thumbnails/19.jpg)
Slide: 19LCD controller IP by Marcos Oliveira in January 12th, 2017.
Modelsim Simulation DMA Engine
PS: KEY_N and IRQAck are not shown here, and some of the pin names maybe slightly different
![Page 20: LCD controller IP · 2018-08-26 · LCD controller IP by Marcos Oliveira in January 12th, 2017. Slide: 6 Constraints Maximum frame refresh rate: • Control signals synchronous with](https://reader034.vdocuments.us/reader034/viewer/2022042303/5ecf019783768110360b33df/html5/thumbnails/20.jpg)
Slide: 20LCD controller IP by Marcos Oliveira in January 12th, 2017.
Logic Analyser
![Page 21: LCD controller IP · 2018-08-26 · LCD controller IP by Marcos Oliveira in January 12th, 2017. Slide: 6 Constraints Maximum frame refresh rate: • Control signals synchronous with](https://reader034.vdocuments.us/reader034/viewer/2022042303/5ecf019783768110360b33df/html5/thumbnails/21.jpg)
Slide: 21LCD controller IP by Marcos Oliveira in January 12th, 2017.
Demo
![Page 22: LCD controller IP · 2018-08-26 · LCD controller IP by Marcos Oliveira in January 12th, 2017. Slide: 6 Constraints Maximum frame refresh rate: • Control signals synchronous with](https://reader034.vdocuments.us/reader034/viewer/2022042303/5ecf019783768110360b33df/html5/thumbnails/22.jpg)
Slide: 22LCD controller IP by Marcos Oliveira in January 12th, 2017.
Demo