EE4OI4 Engineering Design UP1core Library Functions.

Slides:



Advertisements
Similar presentations
INPUT-OUTPUT ORGANIZATION
Advertisements

Hardware that Enables Multimedia
Sumitha Ajith Saicharan Bandarupalli Mahesh Borgaonkar.
Programmable Interval Timer
Programmable Keyboard/ Display Interface: 8279
 2002 Prentice Hall Hardware Basics: Inside The Box Chapter 2.
© Paradigm Publishing, Inc. 2-1 Chapter 2 Input and Processing Chapter 2 Input and Processing.
Overview of Graphic Systems
EE 316 Computer Engineering Junior Lab Word Mastermind.
EE 316 Computer Engineering Junior Lab PS/2 Keyboard.
Display Technology  Images stolen from various locations on the web...
GamePal  Mark Fedorak  Vera Casteel  Ron Smith  Kris Pucci.
modules--perform I/O “housekeeping” functions use in project: example VHDL package—UP3pack.vhd modules must be “visible” in your path or included.
Theoretical Foundations of Multimedia Chapter 3 Theoretical Foundations of Multimedia Dr. Robert S. Tannenbaum Director, Academic Computing Services University.
1 Some Embedded Processor Alternatives; Processors for this course: Introduction to Altera FPGAs.
Screen Display Module M15.2 Sections 9.5, 13.1, 13.2.
1 programmable logic Altera devices and the Altera tools major tasks in the silicon programming process using a “.vec” file for testing UP3 core library.
COMP541 Input Devices: Keyboards, Mice and Joysticks
EE 316 Computer Engineering Junior Lab Digital Hangman.
Interface circuits I/O interface consists of the circuitry required to connect an I/O device to a computer bus. Side of the interface which connects to.
1 KEYBOARD. 2 Structure  Is standard input device Arrangement of keys IC Integrated Circuit.
PS2 Keyboard Interface Using Spartan-3 Starter Kit Board
INPUT-OUTPUT ORGANIZATION
Dr. Sanatan Chattopadhyay Dr. Sudipta Bandopahyaya
Video Monitor Uses raster scanning to display images
IE433 CAD/CAM Computer Aided Design and Computer Aided Manufacturing Part-2 CAD Systems Industrial Engineering Department King Saud University.
1 COMP541 Input Devices: Keyboards, Mice and Joysticks Montek Singh Apr 16, 2012.
Basics of a Computer Graphics System Introduction to Computer Graphics CSE 470/598 Arizona State University Dianne Hansford.
© Paradigm Publishing Inc. 2-1 Chapter 2 Input and Processing.
COE4OI5 Engineering Design Chapter 2: UP2/UP3 board.
ECE291 Computer Engineering II Lecture 9 Josh Potts University of Illinois at Urbana- Champaign.
Lecture No. 3.  Screen resolution  Color  Blank space between the pixels  Intentional image degradation  Brightness  Contrast  Refresh rate  Sensitivity.
Video Monitor Uses raster scanning to display images –Beam of electrons illuminates phosphorus dots on the screen called pixels. Starting at the top of.
ECE 448: Lab 6 VGA Display (mini chess game). Video Graphic Array (VGA) Resolution: 640x480 Display: 16 colors (4 bits), 256 colors (8 bits) Refresh Rate:
Virginia Commonwealth University School of Engineering DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING Embedded Systems-EGRE 631 TECHNO* Toward an Interactive.
© Paradigm Publishing Inc. 2-1 Chapter 2 Input and Processing.
Introduction to Experiment 5 VGA Signal Generator ECE 448 Spring 2009.
 PLASMA DISPLAY MONITOR  RASTOR VS RANDOM SCAN  INTERLACING AND NON- INTERLACING.
Video Monitor CRT: Cathode Ray Tube
8279 KEYBOARD AND DISPLAY INTERFACING
ECE FPGA Microprocessor Design Erik Lee, Edward Jones, Emily Kan.
Lecture # 4 Output Devices. Output Devices Devices that convert machine language into human understandable form. Output can be in display form, on paper.
Introduction to Graphical Hardware Display Technologies
2/1 A Look at Monitors Roll call Video: monitors Step-by-step lecture.
Reaction Timer Project
1 COMP541 Input Devices: Keyboards, Mice and Joysticks Montek Singh Apr 6, 2015.
ECE 448: Lab 4 VGA Display. Bouncing Ball.. Organization and Grading.
Beam Penetration & Shadow Mask Method
ECE VHDL Microprocessor Design Final Student Project August 14 th, 2012 Emily Kan Erik Lee Edward Jones.
ECE 448: Lab 5 VGA Display. Breaking-Bricks..
Figure 10.1 Color CRT and Phosphor Dots on Face of Display.
Computer Fundamentals MSCH 233 Lecture 5. The Monitor A Monitor is a video screen that looks like a TV. It displays both the input data and instructions,
8279 KEYBOARD AND DISPLAY INTERFACING
PS/2 Mouse/Keyboard Port
Computer parts Kara Ross. Mother board A motherboard (sometimes alternatively known as the mainboard, system board, planar board or logic board[1]) is.
Week 9 Monitors and output to the screen. Monitors, also known as Visual display units (V.D.Us) Desktop computers contain a Cathode Ray Tube (C.R.T.)
1 CHAPTER 2 Hardware. 2 CPU : Central Processing Unit -Every PC system unit contains at least one chip called microprocessor (cpu) attached on motherboard.
Lecture 11 Text mode video
Table 5.1 The UP3core Functions. UP3core NameDescription LCD_Display Displays ASCII Characters and Hex Data on the UP3’s LCD Panel Deboune Pushbutton Debounce.
1 COMP541 Video Monitors Montek Singh Mar 11, 2016.
KEYBOARD/DISPLAY CONTROLLER - INTEL Features of 8279 The important features of 8279 are, Simultaneous keyboard and display operations. Scanned keyboard.
Input & Output devices. Input Device :keyboard a keyboard is an input device, partially modeled after the typewriter keyboard, which uses an arrangement.
~How PC Parts Work~ (30 MARKS). List 4 External components you can see on the PC in front of you and describe the basic function of each one. 1) DVD Drive.
Flowchart of basic interrupt mechanism
Peripherals – Keypad The Keypad provides a simple means of numerical data or control input. The keys can be attributed whatever data or control values.
COMP541 Input Devices: Keyboards, Mice and Joysticks
Input Device :keyboard Types of key switch Components of Keyboard Keyboard switches Keyboard processor or circuitry Key matrix Types of key Switches.
Microprocessor and Assembly Language
Figure 9.1 Color CRT and Phosphor Dots on Face of Display.
EE4OI4 Engineering Design
Presentation transcript:

EE4OI4 Engineering Design UP1core Library Functions

2 UP1 core library functions In complex designs, intellectual property (IP) cores are frequently used. An IP core is a previously developed synthesizable hardware design that provides a widely used functions. Some of IP cores are commercially licensed IP cores reduce development time by providing common hardware functions for use in a new design.

3 UP1 core library DEC_7SEGHexadecimal to Seven-segment decoder DEBOUNCEPushbutton debounce circuit ONEPULSEPushbutton single pulse circuit CLK_DIV25MHz clock divider with 7 frequency outputs VGA_SYNCVGA synch signal generator for UP1 CHAR_ROMCharacter font ROM for video character generations KEYBOARDReads keyboard scan codes from the UP1 MOUSEReads mouse data and outputs cursor row and column address

4 UP1 core library COMPONENT VGA_SYNC PORT(clock_25Mhz, red, green, blue: INSTD_LOGIC; red_out, green_out, blue_out, horiz_sync_out, vert_sync_out: OUTSTD_LOGIC; pixel_row, pixel_column: OUT STD_LOGIC_VECTOR(9 DOWNTO 0)); END COMPONENT;

5 Video display VGA video signal: 5 active signals –Horizontal Sync. & Vertical Sync.: TTL logic levels –RGB: analog signals (0.7 to 1 volt peak to peak) Screen has 640x480 pixels Video signal redraws the entire screen 60 times per second

6 Video display Major component inside a VGA computer monitor is the color CRT. Electron beam is scanned over the screen in a sequence of horizontal lines to generate an image The deflection yoke deflects the electron beam to the appropriate position on the face of CRT Light is generated when the beam is turned on by a video signal and it strikes a color phosphor on the CRT. Face of CRT contains three different phosphors one type for each primary color (red, green, blue)

7 VGA Image by 480 Pixel Layout.

8 UP1core VGA_SYNC

9 VGA display Generation of colors of pixels based on their location on the display

10 Video LED Design Example

11 Video Color Bar Design Example

12 Character Display Displaying textual data: a pixel pattern or font is needed to display each different character Character font can be stored in a ROM implemented inside the FLEX. A memory initialization file (.mif) is used to initialize the ROM CHAR_ROM function in UP1core functions is a character ROM. Characters are stored in consecutive memory cells. Each character is stored in eight memory cells (each memory cell 8 bits) Each character consists of an 8x8 dot map

13 Character Display A B C

14 UP1core CHAR_ROM

15 Character Display The function char_rom has three inputs: –character_address: the starting address of memory location containing the character we want to be displayed –font_row and font_col: inputs that determine which bit of the memory partition containing the character should be displayed at a particular time (which dot of the character font should be displayed) If each dot in a character font is mapped to pixel on the display, each character requires 8x8 pixels on the display. If each dot in a character font is mapped to a 2x2 pixel area on the display, each character requires 16x16 pixels on the display.

16

17 Character Test Design Example

18 Interfacing to the PS/2 keyboard Altra UP-1 supports the use of either a mouse or keyboard using the PS/2 connector on the board The connector provides electrical connection between the keyboard/mouse and the board It is necessary to design a hardware interface using FLEX to communication with a keyboard or mouse. UP1core library has the required VHDL codes for a keyboard interface (keyboard.vhd) and mouse interface (mouse.vhd)

19 Keyboard scan codes Keyboards are normally encoded by placing the key switches in a matrix of rows and columns All rows and columns are periodically scanned to find any key state changes. Key data is passed serially to the computer from the keyboard using scan code. Each key has a unique scan code based on the key switch matrix row and column address

20 Keyboard scan codes Scan code consists of Make and Break codes. One make code is sent every time a key is pressed When several keys are hit at the same time several make codes are sent (this happens in fast typing and in using shift and ctrl) When a key is released, a break code is sent. By using this break code if several keys are pressed at the same time it can be distinguished which one was released If a key is held down, the make code is continuously sent at typematic (autorepeat) rate.

21 Key Numbers for Scan Code.

22

23

24 UP1 Keyboard function UP1core library has a VHDL code that reads the scan code bytes for the keyboard keyboard.vhd has five inputs and two outputs: Inputs: –keyboard_clk: connected to keyboard clock pin keyboard_data: connected to keyboard data pin –clock_25Mhz: connected to UP1 clock pin –reset: clears the internal registers and buffers –read: a handshaking signal. It’s rising edge clears the scan_ready signal Outputs: –scan_code: scan code of the key pressed –scan_ready: is high when the scan code is ready.

25 Keyboard UP1core

26 Example design using the Keyboard UP1core.

27

28 Symbol for MOUSE UP1core.

29 UP1 Mouse function Inputs: –clock_25Mhz: connected to UP1 clock pin –Reset: clears the internal registers and buffers Bi-directional data lines: –mouse_clk: connected to mouse clock pin –Mouse_data: connected to keyboard data pin Outputs: –left_button: high if the left button is pressed –right_button: high if the right button is pressed –mouse_cursor_row[9..0], mouse_cursor_column[9..0]: contain the current address of the mouse cursor in 640x480 screen area

30 Example Design Using Mouse UP1core