














































Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Prepara tus exámenes
Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Prepara tus exámenes con los documentos que comparten otros estudiantes como tú en Docsity
Encuentra los documentos específicos para los exámenes de tu universidad
Estudia con lecciones y exámenes resueltos basados en los programas académicos de las mejores universidades
Responde a preguntas de exámenes reales y pon a prueba tu preparación
Consigue puntos base para descargar
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Comunidad
Pide ayuda a la comunidad y resuelve tus dudas de estudio
Ebooks gratuitos
Descarga nuestras guías gratuitas sobre técnicas de estudio, métodos para controlar la ansiedad y consejos para la tesis preparadas por los tutores de Docsity
Estructura de datos donde se puede hacer algoritmos para programar
Tipo: Resúmenes
1 / 54
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!















































Altera DE0 Board
Version 1.00 Copyright © 2009 Terasic Technologies
ii
The DE0 package contains all the components needed to use the DE0 board in conjunction with a computer that runs the Microsoft Windows software.
Figure 1.1 shows a photograph of the DE0 package.
Figure 1.1. The DE0 package contents.
The DE0 package includes:
To assemble the included stands for the DE0 board:
Figure 1.2. The feet for the DE0 board.
Here are the addresses where you can get help if you encounter problems:
Slide Switches (10) User LEDs (10) PushButton Switches (3)
SDRAM (8 Mbytes)
Expansion Headers (2) Cyclone III EP3C16F
FLASH (4 Mbytes)
USB Blaster Circuit
7 - Segment Display (4) RUN/PROG Switch forJTAG/AS Modes
16 x 2 LCD Interface
Power ON/OFF Switch
Triple 4 - bit VGA DAC PS/2 Port SD Card Socket
RS - 232 Interface 50 - MHz Oscillator
Power Supply Input USB Blaster Connector
Altera EPCS 4Configuration Device
Figure 2.1. The DE0 board.
The DE0 board has many features that allow the user to implement a wide range of designed circuits, from simple circuits to various multimedia projects.
The following hardware is provided on the DE0 board:
Figure 2.2 gives the block diagram of the DE0 board. To provide maximum flexibility for the user, all connections are made through the Cyclone IIII FPGA device. Thus, the user can configure the FPGA to implement any system design.
RS-232 Transceiver
7-Segment Display (4)
EP3C16F
16X2 LCD Module Flash (4 Mbytes)
User LEDs (10)
PS/
Slide Switches (10)
PushButton Switches (3)
Expansion Headers (2)
SDRAM (8 Mbytes)
Triple 4-bit VGA DAC
SD Card Socket
EPCS Config Device
USB Blaster
16X2 LCD Interface
Figure 2.2. Block diagram of the DE0 board.
Following is more detailed information about the blocks in Figure 2.2:
Cyclone IIII 3C16 FPGA 15,408 LEs 56 M9K Embedded Memory Blocks 504K total RAM bits 56 embedded multipliers 4 PLLs 346 user I/O pins
Serial ports One RS-232 port (Without DB-9 serial connector) One PS/2 port (Can be used through a PS/2 Y Cable to allow you to connect a keyboard and mouse to one port)
Two 40-pin expansion headers 72 Cyclone III I/O pins, as well as 8 power and ground lines, are brought out to two 40-pin expansion connectors 40-pin header is designed to accept a standard 40-pin ribbon cable used for IDE hard drives
The DE0 board comes with a preloaded configuration bit stream to demonstrate some features of the board. This bit stream also allows users to see quickly if the board is working properly. To power-up the board perform the following steps:
At this point you should observe the following:
Figure 2.3. The default VGA output pattern.
Figure 3.1. The DE0 Control Panel.
Figure 3.2. The error message of the DE0 Control Panel.
The concept of the DE0 Control Panel is illustrated in Figure 3.3. The “Control Codes” that perform the control functions is implemented in the FPGA board. It communicates with the Control Panel window, which is active on the host computer, via the USB Blaster link. The graphical interface is used to issue commands to the control codes. It handles all requests and performs data transfers between the computer and the DE0 board.
FPGA/ SOPC
NIOS II
TIMER
JTAG
System Interconnect Fabric
PS2 Controller
SDRAM Controller SDRAM PS2 Keyboard
JTAG Blaster Hardware
SEG7 Controller 7-SEG Display
Flash Controller Avalon- MM Tris tate Bridge Flash
PIO Controller (^) Switch/ Seg7/LED/Button/ SD- Card
VGA Controller (^) VGA
Figure 3.3. The DE0 Control Panel concept.
The DE0 Control Panel can be used to light up the LEDs, change the values displayed on 7-segment, monitor buttons/switches status, read/write the SDRAM and Flash Memory, read data from a PS/ keyboard, output color pattern to LCD monitor via VGA connector, and read SD-CARD specification information. The feature of reading/writing a word or an entire file from/to the Flash Memory allows the user to develop multimedia application (Flash Picture Viewer) without worrying about how to build a Memory Programmer.
A simple function of the Control Panel is to allow setting the values displayed on LEDs and the 7-segment displays.
Choosing the LED tab leads to the window in Figure 3.4. Here, you can directly turn the individual LEDs on or off by selecting them individually or by clicking “Light All” or “Unlight All”.
The ability to set arbitrary values into simple display devices is not needed in typical design activities. However, it gives the user a simple mechanism for verifying that these devices are functioning correctly in case a malfunction is suspected. Thus, it can be used for troubleshooting purposes.
Choosing the Button tab leads to the window in Figure 3.6. The function is designed to monitor the status of switches and buttons in real time and show the status in a graphical user interface. It can be used to verify the functionality of the switches and buttons.
Press the Start button to start button/switch status monitoring process, and button caption is changed from Start to Stop. In the monitoring process, the status of buttons and switches on the board is shown in the GUI window and updated in real time. Press Stop to end the monitoring process.
Figure 3.6. Monitoring switches and buttons.
The ability to check the status of button and switch is not needed in typical design activities. However, it provides users a simple mechanism for verifying if the buttons and switches are functioning correctly. Thus, it can be used for troubleshooting purposes.
The Control Panel can be used to write/read data to/from the SDRAM and FLASH chips on the DE0 board. Click on the Memory tab and select “SDRAM” to reach the window in Figure 3.7. Please note to erase the flash memory before writing data to it.
Figure 3.7. Accessing the SDRAM
A 16-bit word can be written into the SDRAM by entering the address of the desired location, specifying the data to be written, and pressing the Write button. Contents of the location can be read by pressing the Read button. Figure 3.7 depicts the result of writing the hexadecimal value 7eff into location 000000, followed by reading the same location.
The Sequential Write function of the Control Panel is used to write the contents of a file into the SDRAM as follows:
Figure 3.8. Reading the PS2 Keyboards
The function is designed to read the identification and specification of the SD card. The 1-bit SD MODE is used to access the SD card. This function can be used to verify the functionality of SD-CARD Interface. Follow the steps below to exercise the SD card:
Figure 3.9. Reading the SD card Identification and Specification
DE0 control panel provides VGA pattern function that allows users to output color pattern to LCD/CRT monitor using the DE0 FPGA board. Please follow the steps below to generate the VGA pattern function: