Altera Temperature Sensor IP Core User Guide

Similar documents
Altera Error Message Register Unloader IP Core User Guide

Using Altera MAX Series as Microcontroller I/O Expanders

Using the Altera Serial Flash Loader Megafunction with the Quartus II Software

ModelSim-Altera Software Simulation User Guide

USB-Blaster Download Cable User Guide

PROFINET IRT: Getting Started with The Siemens CPU 315 PLC

MAX 10 Analog to Digital Converter User Guide

USB-Blaster II Download Cable User Guide

Using the Agilent 3070 Tester for In-System Programming in Altera CPLDs

Quartus II Handbook Volume 3: Verification

MAX II ISP Update with I/O Control & Register Data Retention

Qsys System Design Tutorial

MAX 10 Clocking and PLL User Guide

Quartus II Software and Device Support Release Notes Version 15.0

Quartus II Software Download and Installation Quick Start Guide

Altera SoC Embedded Design Suite User Guide

15. Introduction to ALTMEMPHY IP

Avalon Interface Specifications

Altera Advanced SEU Detection IP Core User Guide

Video and Image Processing Suite

13. Publishing Component Information to Embedded Software

White Paper Utilizing Leveling Techniques in DDR3 SDRAM Memory Interfaces

Configuration via Protocol (CvP) Implementation in Altera FPGAs User Guide

Quartus Prime Standard Edition Handbook Volume 3: Verification

Quartus II Introduction for VHDL Users

Using the On-Chip Signal Quality Monitoring Circuitry (EyeQ) Feature in Stratix IV Transceivers

Quartus II Software Design Series : Foundation. Digitale Signalverarbeitung mit FPGA. Digitale Signalverarbeitung mit FPGA (DSF) Quartus II 1

Download the Design Files

9. Configuration, Design Security, and Remote System Upgrades in the Cyclone III Device Family

OTU2 I.7 FEC IP Core (IP-OTU2EFECI7Z) Data Sheet

Using Nios II Floating-Point Custom Instructions Tutorial

Introduction to the Altera Qsys System Integration Tool. 1 Introduction. For Quartus II 12.0

White Paper FPGA Performance Benchmarking Methodology

1. Overview of Nios II Embedded Development

Arria 10 Avalon-MM DMA Interface for PCIe Solutions

1. Overview of Nios II Embedded Development

Enhancing High-Speed Telecommunications Networks with FEC

FPGAs for High-Performance DSP Applications

MorphIO: An I/O Reconfiguration Solution for Altera Devices

For Quartus II Software. This Quick Start Guide will show you. how to set up a Quartus. enter timing requirements, and

Engineering Change Order (ECO) Support in Programmable Logic Design

Applying the Benefits of Network on a Chip Architecture to FPGA System Design

White Paper Understanding Metastability in FPGAs

Arria V Device Handbook

Nios II Software Developer s Handbook

BitBlaster Serial Download Cable

Quick Start Guide. for Installing vnios Software on. VMware Platforms

White Paper Using LEDs as Light-Level Sensors and Emitters

MAX 10 FPGA Configuration User Guide

Hybrid Memory Cube Controller Design Example User Guide

Introduction to the Quartus II Software. Version 10.0

Guidelines for Developing a Nios II HAL Device Driver

How To Design A Chip Layout

Quartus II Introduction Using VHDL Design

Arria 10 Core Fabric and General Purpose I/Os Handbook

ISP Engineering Kit Model 300

Internal Memory (RAM and ROM) User Guide

December 2002, ver. 1.0 Application Note 285. This document describes the Excalibur web server demonstration design and includes the following topics:

Implementation of Web-Server Using Altera DE2-70 FPGA Development Kit

Designing with High-Density BGA Packages for Altera Devices

White Paper Military Productivity Factors in Large FPGA Designs

MasterBlaster Serial/USB Communications Cable User Guide

SPI Flash Programming and Hardware Interfacing Using ispvm System

FPGA-based Safety Separation Design Flow for Rapid IEC Certification

What Determines FPGA Power Requirements?

Smart Control Center. User Guide. 350 East Plumeria Drive San Jose, CA USA. November v1.0

2. Scope of the DE0 Board and Supporting Material

3D Restoration (Kine3D -3)

TimeQuest Timing Analyzer Quick Start Tutorial

A Verilog HDL Test Bench Primer Application Note

Internal Memory (RAM and ROM) User Guide

Quartus II Handbook Volume 2: Design Implementation and Optimization

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Building an Embedded Processor System on a Xilinx Zync FPGA (Profiling): A Tutorial

WA Manager Alarming System Management Software Windows 98, NT, XP, 2000 User Guide

8B10B Encoder/Decoder MegaCore Function User Guide

Xilinx ISE. <Release Version: 10.1i> Tutorial. Department of Electrical and Computer Engineering State University of New York New Paltz

Lab 1: Introduction to Xilinx ISE Tutorial

Transceiver Signal Integrity Development Kit, Stratix IV GT Edition User Guide

Video and Image Processing Suite User Guide

Nios II System Architect Design Tutorial

GTS-4E Hardware User Manual. Version: V1.1.0 Date:

A New Paradigm for Synchronous State Machine Design in Verilog

LatticeECP3 High-Speed I/O Interface

a8251 Features General Description Programmable Communications Interface

Adobe Acrobat 9 Deployment on Microsoft Windows Group Policy and the Active Directory service

Scanning Comparator (ScanComp) Features. General Description. Input/Output Connections. When to Use a Scanning Comparator. clock - Digital Input* 1.

Digital Multiplexer and Demultiplexer. Features. General Description. Input/Output Connections. When to Use a Multiplexer. Multiplexer 1.

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

USBSPYDER08 Discovery Kit for Freescale MC9RS08KA, MC9S08QD and MC9S08QG Microcontrollers User s Manual

Getting Started with the LabVIEW Mobile Module

Altera Fault Injection IP Core User Guide

Hands-On Lab: WSUS. Lab Manual Expediting WSUS Service for XP Embedded OS

Software Version 10.0d Mentor Graphics Corporation All rights reserved.

Nios II Development Kit Version 5.1 SP1 Release Notes

IP Compiler for PCI Express User Guide

RMHost Unix Installation Notes

HP Service Manager. Software Version: 9.40 For the supported Windows and Linux operating systems. Application Setup help topics for printing

Using the NicheStack TCP/IP Stack - Nios II Edition Tutorial

Arbitration and Switching Between Bus Masters

Transcription:

2015.05.04 UG-01074 Subscribe The Altera Temperature Sensor IP core configures the temperature sensing diode (TSD) block to utilize the temperature measurement feature in the FPGA. Note: Beginning from the Quartus II software version 14.0, the name of this IP core has been changed from ALTTEMP_SENSE to Altera Temperature Sensor IP core. Related Information Introduction to Altera IP Cores Provides general information about Altera IP cores. Altera Temperature Sensor Features The following table lists the Altera Temperature Sensor IP core features. Table 1: Altera Temperature Sensor Features Device Stratix V, Stratix IV, Arria V, and Arria V GZ Features An internal TSD with built-in 8-bit analog-to-digital converter (ADC) circuitry to monitor die temperature A clock divider to reduce the frequency of the clock signal to 1 MHz or less before clocking the ADC An asynchronous clear signal to reset the TSD block Arria 10 An internal TSD with built-in 10-bit ADC circuitry clocked by 1 MHz internal oscillator to monitor die temperature Does not require external clock source An asynchronous clear signal to reset the TSD block Note: The Altera Temperature Sensor IP core does not have simulation model files and cannot be simulated. 2015. All rights reserved. ALTERA, ARRIA, CYCLONE, ENPIRION, MAX, MEGACORE, NIOS, QUARTUS and STRATIX words and logos are trademarks of and registered in the U.S. Patent and Trademark Office and in other countries. All other words and logos identified as trademarks or service marks are the property of their respective holders as described at www.altera.com/common/legal.html. Altera warrants performance of its semiconductor products to current specifications in accordance with Altera's standard warranty, but reserves the right to make changes to any products and services at any time without notice. Altera assumes no responsibility or liability arising out of the application or use of any information, product, or service described herein except as expressly agreed to in writing by Altera. Altera customers are advised to obtain the latest version of device specifications before relying on any published information and before placing orders for products or services. ISO 9001:2008 Registered www.altera.com 101 Innovation Drive, San Jose, CA 95134

2 Altera Temperature Sensor Functional Description UG-01074 2015.05.04 Altera Temperature Sensor Functional Description Temperature Sensing Operation for Arria 10 Devices Figure 1: Altera Temperature Sensor IP Core Top-Level Diagram for Arria 10 Devices The following lists the features for Altera Temperature Sensor IP core for Arria 10 devices: For Arria 10 devices, the Altera Temperature Sensor IP core supports the instantiation of temperature sensor block in your design from the IP Catalog. The Arria 10 temperature sensor block runs at 1 MHz, where the clock signal is coming from the internal oscillator. Within the block, 10-bit ADC circuitry is included for converting sensor s reading to digital output. The corectl signal is used as an enable signal. When asserting the corectl signal, the ADC starts the conversion and 10-bit data is available at tempout after 1,024 clock cycles. The eoc signal goes high for one clock cycle indicating end of conversion. You can latch the data on tempout at the falling edge of eoc. You can reset the temperature sensor anytime by asserting the reset signal. Related Information Transfer Function for Internal TSD Provides more information on how to calculate the temperature from the tempout[9:0] value.

UG-01074 2015.05.04 Temperature Sensing Operation for Arria V, Arria V GZ, Stratix IV, and Stratix V Devices Temperature Sensing Operation for Arria V, Arria V GZ, Stratix IV, and Stratix V Devices Figure 2: Altera Temperature Sensor Block Diagram 3 This figure shows the top-level ports and the basic building blocks of the Altera Temperature Sensor IP core. Altera Temperature Sensor IP Core clk CLOCK DIVIDER oe adcclk ce TEMPERATURE SENSOR ADC tsdcalo[7:0] tsdcaldone clr The Altera Temperature Sensor IP core runs at the frequency of the clk signal. The clk signal can run at a frequency of 80 MHz and below. The clock divider divides the clk signal to 1 MHz or less to feed the ADC. You can set the value of the clock divider using the Altera Temperature Sensor IP core parameter editor. The ce signal connects to the output enable (oe) port of the clock divider block. Assert the ce signal to enable the Altera Temperature Sensor IP core. When you deassert the ce signal, the IP core disables the ADC, and maintains the previous values of the tsdcalo[7..0] and tsdcaldone signals unless you assert the clr signal, or reset the device. The clr signal is asynchronous, and you must assert the clr signal at least one clock cycle of the adcclk signal to clear the output ports. Enabling the ADC allows you to measure the device temperature only once. To perform another temperature measurement, assert the clr signal, or reset the device. The clr signal is asynchronous, and you must assert the clr signal at least one clock cycle of the ADC clk signal to clear the output ports. Note: When you choose not to create the ce port, the IP core connects the ce port to VCC. In this case, the ADC circuitry is always enabled. Altera recommends that you disable the ADC by deasserting the ce signal when the ADC is not in use to reduce power consumption. During device power-up or when you assert the asynchronous clr signal, the Altera Temperature Sensor IP core sets the tsdcaldone port to 0 and the tsdcalo[7:0] signal to 11010101 or 0xD5. After 10 clock cycles of the adcclk signal, the Altera Temperature Sensor IP core asserts the tsdcaldone signal to indicate that the temperature sensing operation is complete and that the value of the tsdcalo[7:0] signal is valid. The value of the tsdcalo[7:0] signal corresponds to the device temperature range. For more information about the value of tsdcalo[7:0] signals, refer to the Related Information. To start another temperature sensing operation, assert the clr signal for at least one clock cycle of the adcclk signal, or reset the device.

4 Generating the Altera Temperature Sensor IP Note: When you choose not to create the clr port, the Altera Temperature Sensor IP core connects the clr port to GND. In this case, you must reset the device to clear the output signals or start a temperature sensing operation. Altera recommends that you generate the clr port if you are planning to run the temperature sensing operation more than once. If a derived PLL output clock is used to drive the Altera Temperature Sensor IP core, a minimum pulse violation might occur. When using the Altera Temperature Sensor IP core, you must ensure the clock applied must be less than or equal to 1 MHz. If you are using a higher frequency clock, the Altera Temperature Sensor IP core allows you use the 40 or 80 clock divider to reduce the clock frequency to be less than or equal to 1.0MHz. Related Information Altera Temperature Sensor Signals on page 8 Provides more information about the value of tsdcalo[7:0] that corresponds to the device temperature range. Generating the Altera Temperature Sensor IP To generate the Altera Temperature Sensor IP core, follow these steps: 1. Open the alttemp_sense_ex1.zip file and extract alttemp_sense_ex1.qar. 2. In the Quartus II software, open the alttemp_sense_ex1.qar file and restore the archive file into your working directory. 3. On the IP Catalog window, search and click Altera Temperature Sensor. 4. In the New IP Instance dialog box, type tsd_s4 as your top-level file name. 5. In the Device family field, select Stratix IV. 6. Then, select your FPGA device family from the Device Family pull-down list. Click OK. 7. In the Parameter Editor, set the following parameter settings. Table 2: Configuration Settings for the Altera Temperature Sensor IP Core UG-01074 2015.05.04 Option What is the input frequency? What is the clock divider value? Create a clock enable port Create an asynchronous clear port 8. Click Finish. The tsd_s4 module is built. 40 MHz 80 MHz Turned on Turned on Value Compiling the Altera Temperature Sensor IP To compile the Altera Temperature Sensor IP core in the Quartus II software, follow these steps: 1. Open the top-level file alttemp_sense_ex1.bdf in the Quartus II Block Editor software. This file contains the input and output assignments and a placeholder for the tsd_s4 module. 2. To insert the tsd_s4 module, double-click on the Block Editor window. The Symbol window appears. 3. Under Name, browse to the tsd_s4.bsf file. 4. Click OK. 5. Place the tsd_s4 module onto the INSERT TSD_S4 BLOCK HERE placeholder so that the module aligns with the input and output ports.

UG-01074 2015.05.04 Using Clear Box Generator 5 Figure 3: Complete Design File This figure shows the complete design file. tsd_s4 clr clk ce INPUT VCC INPUT VCC INPUT VCC clr clk ce tsdcalo[7..0] tsdcaldone OUTPUT OUTPUT tsdcalo[7..0] tsdcaldone inst1 6. On the Processing menu, click Start Compilation. 7. When the Full Compilation was successful message box appears, click OK. Using Clear Box Generator You can use clear box generator, a command-line executable, to configure parameters that are in the Altera Temperature Sensor IP core parameter editor. The clear box generator creates or modifies custom IP core variations, which you can instantiate in a design file. The clear box generator generates IP core variation file in Verilog HDL or VHDL format. Note: Arria 10 Altera Temperature Sensor IP core does not support clear box generation format. To generate the Altera Temperature Sensor IP core using the clear box generator, perform the following steps: 1. Create a text file (.txt) that contains your clear box ports and parameter settings in your working directory. For example, c:\altera\10.0\quartus\work\sample_param_test.txt. This figure shows a sample text file to generate the Altera Temperature Sensor IP core. Figure 4: Sample Text File for Clear Box Generator

6 Altera Temperature Sensor Device Support Note: Ensure that you enclose String-type values with double-quotes. 2. Access the command prompt of your operating system, and change the current directory to your working directory by typing the following command: cd c:\altera\10.0\quartus\work\ The clear box executable file name is clearbox.exe. Note: When you install the Quartus II software, the %QUARTUS_ROOTDIR%\bin is added into your system s environment variables. Therefore, you can run the clear box command from any directory. 3. To view the available ports and parameters for this IP core, type the following command at the command prompt of your operating system: clearbox alttemp_sense -h 4. To generate the Altera Temperature Sensor IP core variation file based on the ports and parameter settings in the text file, type the following command: clearbox alttemp_sense -f *.txt For example, clearbox alttemp_sense -f sample_param_test.txt 5. After the clear box generator generates the IP core variation files, you can instantiate the IP core module in a HDL file or a block diagram file in the Quartus II software. 6. To view the estimated hardware resources that the Altera Temperature Sensor IP core uses, type the following command: clearbox alttemp_sense -f sample_param_test.txt -resc_count Note: This command does not generate a HDL file. UG-01074 2015.05.04 Altera Temperature Sensor Device Support The Altera Temperature Sensor IP core supports the following device family: Stratix V Stratix IV Arria 10 Arria V Arria V GZ Altera Temperature Sensor Parameters The parameters are applicable for all supported devices except Arria 10 devices. There are no available parameters for Arria 10 devices. You can parameterize the Altera Temperature Sensor IP core using the IP Catalog and parameter editor, or with the command-line interface (CLI). Use the parameter editor to quickly specify parameters in a GUI. Expert users may choose to instantiate and parameterize the IP core through the command-line interface using the clear box generator command. This method requires you to have command-line scripting knowledge.

UG-01074 2015.05.04 Altera Temperature Sensor Parameters 7 This table lists the parameter editor and CLI parameter settings for the Altera Temperature Sensor IP core. Table 3: Altera Temperature Sensor IP core Parameter Settings Name Parameter General Options Tab What is the input frequency? Legal Values 1.0 80.0 MHz Name CLI Parameter Legal Values Description clk_frequency 1.0 80.0 Specifies the input frequency of the clk signal. The input frequency value is type string, and the value must be less than or equal to the clock divider value. The default value is 1.0 What is the clock divider value? Create a clock enable port 40, 80 clock_divider_value 40, 80 Specifies the clock divider value. The IP core divides the clock frequency value with the clock divider value before feeding the ADC. This option is only enabled when the clk signal frequency is more than 1 MHz. Altera recommends clocking the ADC with a 500 khz signal. The CLI parameter is type integer. Ensure that you enable the clock divider by setting the clock_divider_ enable parameter value to on. The default value is 40. On/Off ce Specifies whether to turn on the asynchronous clock enable (ce) port. Turn on this option when you want to enable the Altera Temperature Sensor IP core. When you turn off this option, the clock enable port automatically connects to VCC.

8 Altera Temperature Sensor Signals UG-01074 2015.05.04 Name Parameter Create an asynchronous clear port Legal Values Name CLI Parameter Legal Values Description On/Off clr Specifies whether to turn on the asynchronous clear (clr) port. Turn on this option when you want to reset the Altera Temperature Sensor IP core. When you turn off this option, the clear port automatically connects to GND. Altera Temperature Sensor Signals The following tables list the Altera Temperature Sensor IP core signals. Table 4: Altera Temperature Sensor IP Core Signals for Arria 10 Devices Signals Direction Width (Bit) Description corectl Input 1 Enables the temperature sensing feature by the IP core. reset Input 1 Resets the temperature sensing block. tempout[9:0] Output 10 10-bit output data from internal ADC circuitry of temperature sensor block. eoc Output 1 Indicates end of internal ADC conversion. This signal goes high for one clock cycles and you can latch the data on tempout at the falling edge of EOC. Table 5: Altera Temperature Sensor IP Core Signals for Suppported Devices Signals Direction Width (Bit) Description clk Input 1 Input clock signal that runs at a frequency of 80 MHz and below. The internal clock divider reduces the frequency of the clk signal to 1 MHz or less before clocking the ADC. ce Input 1 The asynchronous clock enable signal for the clk signal. This signal turns on/off the Altera Temperature Sensor IP core that implements the TSD block. This is an active-high signal. By default, this port connects to VCC.

UG-01074 2015.05.04 Altera Temperature Sensor Signals 9 Signals Direction Width (Bit) Description clr Input 1 The asynchronous clear signal. When you assert the clr signal, the IP core sets the tsdcalo[7:0] signal to 11010101 (0xD5) and the tsdcaldone signal to 0. This is an active-high signal. By default, this port connects to GND. tsdcalo[7:0] Output 8 8-bit output signal that contains the analog-todigital-conversion temperature value. The 8-bit value maps to a unique temperature value. During device power-up or when you assert the clr signal, the IP core sets the tsdcalo[7:0] to 11010101 (0xD5). tsdcaldone Output 1 This signal indicates the completion of the temperature sensing process. The IP core asserts this signal when the process is complete. During device powerup or when you assert the clr signal, the IP core sets the tsdcaldone to 0. Table 6: The Mapping of tsdcalo [7..0] Value to Arria V, Arria V GZ, Stratix IV, and Stratix V Devices Temperature This table shows the value of tsdcalo[7:0] that corresponds to the device temperature range. The temperature specification ranges from -70 C to 127 C. Value of tsdcalo[7:0] in Hexadecimal Temperature in Degree Celsius ( C) FF 127 E4 100 D5 85 D0 80 B2 50 9E 30 8A 10 80 0 76-10

10 Altera Temperature Sensor Prototypes and Component Declarations UG-01074 2015.05.04 Value of tsdcalo[7:0] in Hexadecimal Temperature in Degree Celsius ( C) 6C -20 62-30 4E -50 3A -70 C Altera Temperature Sensor Prototypes and Component Declarations Verilog HDL Prototype The Verilog HDL prototype is located in the <Quartus II installation directory>\eda\synthesis\ altera_mf.v VHDL Component Declaration The VHDL component declaration is located in the <Quartus II installation directory>\libraries\vhdl \altera_mf\ directoryaltera_mf_components.vhd. Document Revision History This table lists the changes made to the document. Table 7: Document Revision History Date Document Version Changes Made May 2015 2015.05.04 Added a link on how to calculate the temperature from the tempout[9:0] value. Editorial updates. December 2014 2014.12.15 Added Arria 10, Arria V, and Arria V GZ devices to the Device Support section. Editorial changes to the warning message in Temperature Sensing Operation section. Added Arria 10 devices information. Updated template.

UG-01074 2015.05.04 Document Revision History 11 Date Document Version Changes Made June 2013 3.1 Updated the Temperature Sensing Operation on page 3 1 to clarify that enabling the ADC allows you to measure the temperature of the device only once and to include a warning about a minimum pulse violation when input clock derived from a PLL. Updated Features on page 1 1 to notify that this IP core does not provide simulation feature. September 2010 3.0 Updated the Parameter Settings chapter. Added the Prototypes and Component Declarations section. Added the Clear Box Generator chapter. February 2010 2.0 Updated the Temperature Sensing Operation section. November 2009 1.0 Initial release.