REPORT LCD_CONTROLLER CORE DESIGN AND IMPORT THE CORE TO FPGA-BASED EMBEDDED SYSTEM INCLUDING 32-BIT SOFT CORE MICRO-CONTROLLER ON FPGA VIRTEX-5 XILINX OUTLINE:
A.
B.
LCD CONTROLLER DESIGN 1.
FPGA DESIGN FLOW
2.
REQUIREMENTS ANALYSIS
3.
ARCHITECTURE DESIGN
4.
HDL DESIGN ENTRY
5.
TEST ENVIRONMENT DESIGN
6.
BEHAVIORAL SIMULATION
7.
SYNTHESIS
8.
IMPLEMENTATION
9.
PROGRAMMING FILE AND DEMONSTRATION
IMPORT LCD_CONTROLLER CORE TO FPGA-BASED EMBEDDED SYSTEM INCLUDING 32-BIT SOFT CORE MICRO-CONTROLLER ON FPGA VIRTEX-5 XILINX
SUBJECT: FPGA AND CPLD DESIGN 3. ARCHITECTURE DESIGN
clk
LCD_RW
rst_n
LCD_RS
select_lin
LCD_E
but_clear
DB(3)
but_line
DB(2)
LCD CONTROLLER DB(1)
but_string
DB(0)
clk: clock 33MHz rst_n: reset states of FSM select_lin: button for selecting the 1st or 2nd line to display but_clear: button for clearing LCD but_line: button for changing the state to the display state but_string: button for choosing the string to display - 2 strings can be changed in the HDL code
Student’s name: Le Van Loi – Class 09DT1
Lecturer: Dr. Huynh Viet Thang
SUBJECT: FPGA AND CPLD DESIGN INITIALIZATION OF LCD 16x2 FOR 4-BIT INTERFACE
Prefer to “Dot Matrix Liquid Crystal Display Controller/Driver HD44780U” for more details. Student’s name: Le Van Loi – Class 09DT1
Prefer to “Dot Matrix Liquid Crystal Display Controller/Driver HD44780U” for more details.
Student’s name: Le Van Loi – Class 09DT1
Lecturer: Dr. Huynh Viet Thang
SUBJECT: FPGA AND CPLD DESIGN
FINITE-STATE MACHINE FOR WRITING DATA TO LCD’S REGISTER
Power on Reset
E_low_2 sub state of previous state
write_4bit_high
E_high_1
E_low_1
wait_for_next_4bit
write_4bit_low
E_high_2
E_low_2 Waiting time for execution
write_4bit_high
sub-state of next-state
Student’s name: Le Van Loi – Class 09DT1
Lecturer: Dr. Huynh Viet Thang
SUBJECT: FPGA AND CPLD DESIGN
Prefer to “Dot Matrix Liquid Crystal Display Controller/Driver HD44780U” for more details.
Follow the above table to get the binary data and write to the DDRAM of LCD: o S(0x53), T(0x54), A(0x41), R(0x52)…etc
Student’s name: Le Van Loi – Class 09DT1
Lecturer: Dr. Huynh Viet Thang
SUBJECT: FPGA AND CPLD DESIGN SUB-STATES INSIDE THE DISPLAY_STRING STATE
From the state SELECT_LINE
DISPLAY_CHAR1
DISPLAY_CHAR2
DISPLAY_CHAR3
DISPLAY_CHAR4
…… DISPLAY_CHAR14
.
DISPLAY_CHAR15
DISPLAY_CHAR16
IDLE
Student’s name: Le Van Loi – Class 09DT1
Lecturer: Dr. Huynh Viet Thang
SUBJECT: FPGA AND CPLD DESIGN 4.HDL DESIGN ENTRY LCD_FSM.vhd:
- LCD_states, LCD_subsates data type
- LCD_array, LCD_display_string data type LCD_Library.vhd: - Procedure of sub-FSM (writing data to LCD’s regs) - Function for converting a character to std_logic_vector(7 downto 0) LCD_Controller.vhd: - Top module VHDL 5.TEST ENVIRONMENT DESIGN LCD_testbench.vhd: - Behavioral Simulation. 6.BEHAVIORAL SIMULATION Run ISIM on ISE Xilinx.
Student’s name: Le Van Loi – Class 09DT1
Lecturer: Dr. Huynh Viet Thang
SUBJECT: FPGA AND CPLD DESIGN 7.SYNTHESIS Observe the synthesis report on ISE Xilinx. Synthesizing Unit . Related source file is "C:/Users/Loile/LCD_Controller_FPGA/LCD_Controller/LCD_Con troller.vhd". Found finite state machine for signal . -----------------------------------------------------| States | 27 | Transitions | 230 | Inputs | 13 | Outputs | 26 | Clock | clk (rising_edge) | Reset | rst_n(negative) | Reset type | asynchronous | Reset State | wait_15ms | Power Up State | wait_15ms | Encoding | automatic | Implementation | LUT -----------------------------------------------------Found finite state machine for signal . -----------------------------------------------------| States | 7 | Transitions | 357 | Inputs | 32 | Outputs | 7 | Clock | clk (rising_edge) | Reset | rst_n (negative) | Reset type | asynchronous | Reset State | write_4bit_high | Power Up State | write_4bit_high | Encoding | automatic | Implementation | LUT ---------------------------------------------------------------------Found 1-bit register for signal . Found 1-bit register for signal . Student’s name: Le Van Loi – Class 09DT1
Lecturer: Dr. Huynh Viet Thang
SUBJECT: FPGA AND CPLD DESIGN Found 4-bit register for signal . Found 32-bit register for signal . Found 32-bit adder for signal created at line 67. Summary: inferred 2 Finite State Machine(s). inferred 38 D-type flip-flop(s). inferred 1 Adder/Subtractor(s). Unit synthesized. ========================================================== HDL Synthesis Report Macro Statistics # Adders/Subtractors : 1 32-bit adder : 1 # Registers : 4 1-bit register : 2 32-bit register : 1 4-bit register : 1 ========================================================== * Advanced HDL Synthesis * ========================================================== Analyzing FSM for best encoding. Optimizing FSM on signal with one-hot encoding. -------------------------------State | Encoding -------------------------------write_4bit_high | 0000001 e_high_1 | 0000010 e_low_1 | 0000100 wait_for_next_4bit | 0001000 write_4bit_low | 0010000 e_high_2 | 0100000 e_low_2 | 1000000 -------------------------------Analyzing FSM for best encoding. Optimizing FSM on signal with one-hot encoding. Student’s name: Le Van Loi – Class 09DT1
SUBJECT: FPGA AND CPLD DESIGN * Low Level Synthesis * ========================================================== Optimizing unit ... Mapping all equations... Building and optimizing final netlist ... Found area constraint ratio of 100 (+ 5) on block LCD_Controller, actual ratio is 0. ========================================================== Final Register Report Macro Statistics # Registers : 72 Flip-Flops : 72 Device utilization summary: --------------------------Selected Device : 5vlx110tff1136-2 Slice Logic Utilization: Number of Slice Registers: 72 out of 69120 0% Number of Slice LUTs: 216 out of 69120 0% Number used as Logic: 216 out of 69120 0% Slice Logic Distribution: Number of LUT Flip Flop pairs used: 217 Number with an unused Flip Flop: 145 out of 217 66% Number with an unused LUT: 1 out of 217 0% Number of fully used LUT-FF pairs: 71 out of 217 32% Number of unique control sets: 3 IO Utilization: Number of IOs: 13 Number of bonded IOBs: 13 out of 640 2% Specific Feature Utilization: Number of BUFG/BUFGCTRLs: 1 out of 32 3%
Student’s name: Le Van Loi – Class 09DT1
Lecturer: Dr. Huynh Viet Thang
SUBJECT: FPGA AND CPLD DESIGN 8.IMPLEMENTATION Run implementation on ISE.
# CONSTRAINT FILE FOR LCD_CONTROLLER NET "clk"
LOC="AH17"; # clock 33MHz
NET "LCD_RS" LOC = "J17"; NET "LCD_RW" LOC = "AC10"; NET "LCD_E" LOC = "AC9"; NET "DB<3>" LOC = "T11"; NET "DB<2>" LOC = "G6"; NET "DB<1>" LOC = "G7" ; NET "DB<0>" LOC = "T9"; NET "rst_n" LOC ="U25"; NET "select_lin" LOC ="AG27"; NET "but_clear" LOC ="AF25"; NET "but_line" LOC ="AF26"; NET "but_string" LOC ="AE27";
Student’s name: Le Van Loi – Class 09DT1
Lecturer: Dr. Huynh Viet Thang
SUBJECT: FPGA AND CPLD DESIGN 9.PROGRAMMING FILE AND DEMONSTRATION Run generating programming file and in-circuit verification. Demonstration on FPGA Virtex-5 Xilinx.
Student’s name: Le Van Loi – Class 09DT1
Lecturer: Dr. Huynh Viet Thang
SUBJECT: FPGA AND CPLD DESIGN
B. IMPORT THE CORE TO FPGA-BASED EMBEDDED SYSTEM INCLUDING 32-BIT SOFT CORE MICRO-CONTROLLER ON FPGA VIRTEX-5 XILINX - Previous project : XUPV5-LX110T with system.xmp - Task: Convert LCD_Controller.vhd with string “ START” on 1st line and “LOI-09DT1 ” on 2nd line of LCD into an IP core and add the core to the above project, program and observe results. - Firstly, open the project and click Hardware, choose Create and Import Peripherals Wizard:
Student’s name: Le Van Loi – Class 09DT1
Lecturer: Dr. Huynh Viet Thang
SUBJECT: FPGA AND CPLD DESIGN Click Next,
Then click Import existing peripheral and press Next…
Student’s name: Le Van Loi – Class 09DT1
Lecturer: Dr. Huynh Viet Thang
SUBJECT: FPGA AND CPLD DESIGN Next…
Enter LCD_Controller….
Student’s name: Le Van Loi – Class 09DT1
Lecturer: Dr. Huynh Viet Thang
SUBJECT: FPGA AND CPLD DESIGN Next,
Next, then add LCD_Controller.vhd file and click Next…
Student’s name: Le Van Loi – Class 09DT1
Lecturer: Dr. Huynh Viet Thang
SUBJECT: FPGA AND CPLD DESIGN Uncheck select bus interface(s), then Next…
Continue to uncheck select and configure interrupt(s), then Next
Student’s name: Le Van Loi – Class 09DT1
Lecturer: Dr. Huynh Viet Thang
SUBJECT: FPGA AND CPLD DESIGN Next,
Then finish creating the IP core.
Student’s name: Le Van Loi – Class 09DT1
Lecturer: Dr. Huynh Viet Thang
SUBJECT: FPGA AND CPLD DESIGN Now, add the IP to the project …
Then click OK and choose the connection of the LCD_Controller…
Student’s name: Le Van Loi – Class 09DT1
Lecturer: Dr. Huynh Viet Thang
SUBJECT: FPGA AND CPLD DESIGN
Because the minimum frequency of Clock in previous project is 62.5 MHz and clk of LCD_Controller is 33MHz, we change values of delay in LCD_Controller.vhd file.
Then add new location for LCD pin to system.ucf file: # LCD_FPGA_DB4 Net LCD_Controller_0_DB_pin<0> LOC = T9 | IOSTANDARD=LVCMOS33 | PULLDOWN | SLEW=SLOW | DRIVE=2; # LCD_FPGA_DB5 Net LCD_Controller_0_DB_pin<1> LOC = G7 | IOSTANDARD=LVCMOS33 | PULLDOWN | SLEW=SLOW | DRIVE=2; # LCD_FPGA_DB6 Net LCD_Controller_0_DB_pin<2> LOC = G6 | IOSTANDARD=LVCMOS33 | PULLDOWN | SLEW=SLOW | DRIVE=2; # LCD_FPGA_DB7 Net LCD_Controller_0_DB_pin<3> LOC = T11 | IOSTANDARD=LVCMOS33 | PULLDOWN | SLEW=SLOW | DRIVE=2; # LCD_FPGA_RW Net LCD_Controller_0_LCD_RW_pin LOC = AC10 | IOSTANDARD=LVCMOS33 | PULLDOWN | SLEW=SLOW | DRIVE=2; # LCD_FPGA_RS Net LCD_Controller_0_LCD_RS_pin LOC = J17 | IOSTANDARD=LVCMOS25 | PULLDOWN | SLEW=SLOW | DRIVE=2; # LCD_FPGA_E Net LCD_Controller_0_LCD_E_pin LOC = AC9 | IOSTANDARD=LVCMOS33 | PULLDOWN | SLEW=SLOW | DRIVE=2; Then Generate bit stream and download bit stream into Virtex-5 FPGA and get the same string “START” on the first line and “LOI-09DT1” on the 2nd line. Student’s name: Le Van Loi – Class 09DT1
Lecturer: Dr. Huynh Viet Thang
SUBJECT: FPGA AND CPLD DESIGN
Demonstration on FPGA Virtex-5 Xilinx:
References: [1] Hitachi, “Dot Matrix Liquid Crystal Display Controller/Driver”,1998 [2] HARDI Electronics AB,” VHDL Handbook” ,1997-2000 [3] Surin Kittitornkun and Charles R. Kime,” FPGA Design Tutorial”, Fall 2001 [4] http://www.fpgacentral.com/docs/fpga-tutorial/fpga-design-flow-overview
Mar 7, 2016 - a cluttered bin, can be performed with hardly any advance planning, relying instead ... attempt, and a large-scale data collection framework for.
Mar 7, 2016 - objects by embedding the finger into the center of the ob- ject, while harder objects were .... national Conference on Robotics and Automation, pp. 1316â1322, 2015. ... Contact Wrench Space Metrics. In IEEE International.
Aug 15, 2017 - after the rising revenues outlook, while the hospital sector will ... 2Q17 aggregate net profit and normalized earnings of stocks under FSS ...
Nov 21, 2011 - Test Method: With reference to EN 717-1:2004, analysis was performed by UV-Vis. Test Item(s) ... Notes: (1) mg/m3 = milligram per cubic meter.
Nov 12, 2014 - This would make sense if Ametek had a high degree of customer demand visibility; ...... For a Year Despite âStrong Operating Cash Flowsâ ...... in a variety of applications, including automotive, aerospace, micro-electronics,.
Nov 12, 2014 - Since 2010, Ametek has acquired 11 companies from private equity (âPEâ) .... 2x and 10-11x EV / 2014E Sales and EBITDA, respectively, its share price ...... faced in the new accounting software and steps are being taken to ...
. 9. (2 points.) Suppose that David, a guy from Matthews Hall, fills out this form .... Back when David took CS50 in 1996, his laptop had only 4MB of RAM.
the rise of Flash and rich media interaction as an alternative mode of engagement. ... online advertising where the click-through is the only form of user interaction. ..... DoubleClick for Advertisers (DFA) and DoubleClick Rich Media platforms.
10. (3 points.) Suppose that Matthews Hall is tired of losing and decides that it is time .... Back when David took CS50 in 1996, his laptop had only 4MB of RAM.
screen and wait for the business to call you? ... searches on their phone for a local business, .... conversions occurring via a web form or online .... call scoring, contextual call routing, call management, and automated voice notifications.
Nov 21, 2011 - Conclusion: When tested as specified, the specified material of the submitted sample comply with the stated requirements of the European ...
the rise of Flash and rich media interaction as an alternative mode of ... online advertising where the click-through is the only form of user interaction. ..... planning, search management, rich media, video and mobile, DoubleClick products.
Loading⦠Whoops! There was a problem loading more pages. Whoops! There was a problem previewing this document. Retrying... Download. Connect more apps... School Repor ... 016-2017.pdf. School Repor ... 016-2017.pdf. Open. Extract. Open with. Sign I
Feb 27, 2006 - 2 Economic Impacts of Climate Change on California . ...... precipitation, and solar radiationâdrive the simulation. The model uses ..... California's water and hydropower energy resources are also vulnerable to climate change ...
This misconfiguration prevented changes to existing customer data for upgraded users. ... Eliminate the need for server restarts to recover from this type of error.
Mar 16, 2009 - The Weighted L1 norm minimization only gives a very good ... they try to minimize L1 norm which has a computational complexity of O(N3) using linear programming. ... (European Conf. on Computer Vision (ECCV), Mar-.
May 27, 2014 - generates an experimental structure factor directly from your data as ... sampling to give a good representation of your reconstructed map, and.
Chris Lam. Slides. Kai Yin Lam. Video Switcher. Alvin Vun .... Ben Seah. Cafe. Ivy Ai Ling Lee. Cafe. Sandra Kim. Cafe. Willy Goh. Cafe. PeiHua Cher. Books.
magnetostratigraphy-based chronostratigraphy of the Pliocene-Pleistocene deposits of the. Guadix-Baza Basin (Southern Spain) .... climate cyclicity. First defined in the mid 1990s (e.g. Berger and Jansen, 1994), the Early-Middle. Pleistocene transiti
SUBJECT IS NOT IN THESE SEGMENTS. VERY STRONG CHANCE THAT CLUE MEANS. SUBJECT IS NOT IN THESE SEGMENTS. VIRTUALLY 100% CERTAIN CLUE MEANS. SUBJECT IS NOT IN THESE SEGMENTS. COPIES. URGENT REPLY NEEDED, TEAM STANDING BY TIME. INFORMATION ONLY. 2. DATE