Xilinx Analog Mixed Signal Solution
HDL Design Flow
Note: Agile Mixed Signal is Now Analog Mixed Signal
Xilinx Training
Welcome
If you are a FPGA designer, this module introduces the HDL flow
for Xilinx Agile Mixed Signal solutions
This module will list some key features of the XADC core that are
enabled by Xilinx Agile Mixed Signal solutions
To Learn More About Xilinx Agile Mixed Signal
Related Videos
– What is the Xilinx Agile Mixed Signal Solution?
• For beginners and enthusiasts
– Xilinx AMS EDK Design Flow
• For embedded designers who want to become familiar with the EDK flow
– Xilinx AMS XADC Evaluation
• For designers who want to know how the XADC interface can be evaluated for
their mixed signal application
Implementing XADC in your Design
1. Evaluate
• XADC
evaluation kit is
bundled with all
7 series TDPs
• Choose required
XADC settings
and evaluate
2. Instantiate
3. Simulate
• Set attributes
based on
evaluation and
connect I/O
• Customize
analog interface
using XADC
Wizard
Edit Settings
• Simulate HW
(XADC & FPGA
logic) using
analog stimulus
file
• Use HW in the
loop with ISim to
verify prototype
Evaluating the XADC
Optional External Instrument
(e.g. signal generator)
123.456
#1
XADC Evaluation Card
Resources (DACs) for basic testing and
connectors for external instruments
Ribbon cable connection
to “analog header” on KC705
USB
KC705
National Instruments LabView GUI
• XADC settings
• ADC data collection and analysis
1 – Evaluate XADC Settings
XADC LogiCORE IP
Typically customizable
Fully tested, documented,
and supported by Xilinx
Unlicensed and provided for
free with Xilinx software
VHDL and Verilog flow
support for several EDA
tools
Page 6
XADC LogiCORE IP
7 Series XADC
ADC 1
T/H
ADC 2
XADC attributes
initialize the
XADC registers
(settings)
Registers
T/H
MUX
On-Chip
Sensors
1.25V
XADC registers / settings can
also be accessed at any time via
the FPGA fabric
XADC block I/O
Instantiating the XADC
XADC instantiation in
language templates
Configure the XADC
initialize registers by
setting attributes
Connect up the
XADC I/O
2 – Instantiate the XADC
XADC and CORE Generator Tool Integration
A GUI allows central access to LogiCORE™ IP products, as well
as
– Data sheets
– Customizable parameters
 The CORE Generator tool is available as a standalone application
– Launched via Programs > Xilinx ISE Design Suite > ISE Design Tools >
Tools > CORE Generator
 Can be launched from the ISE® Project Navigator and
PlanAhead™ software tools
Interfaces with design entry tools
– Creates instantiation templates for HDL-based designs
Page 9
Running the CORE Generator Tool
From the Project Navigator
– Select Project > New Source
– Select IP (CORE Generator &
Architecture Wizard), enter a
filename, and click Next
– Expand FPGA Features and
Design > XADC and select
XADC Wizard
Page 10
Running the CORE Generator Tool (continued)
From the PlanAhead
software
– Select Project Manager >
IP Catalog
– In the IP Catalog window,
expand FPGA Features
and Design > XADC and
select XADC Wizard
Page 11
XADC Wizard Simplifies HDL Instantiation
Connect XADC I/O and
set attributes using GUI
XADC Wizard User Guide
Click Generate
to generate core
Adding the XADC Core to the FPGA Design
XCO file included in
design hierarchy
XCO file associated
to project
Customize and
regenerate the core
Adding the instantiation
templates to HDL
VHO or VEO templates
for HDL instantiation
XADC Implementation
Code autonomous logic to read and write
to the XADC via the Dynamic
Reconfiguration Port (DRP)
Refer to the 7 Series XADC User Guide
(UG480) to determine the different
operating modes of XADC and DRP timing
information
Xilinx tools provide a graphical view of
how XADC is used in FPGA designs
UG480
Simulation and Verification
Text file contains analog
information (sensors,
external voltages, etc.) that
can be introduced into the
simulation by UNISIM
3 – Simulate XADC (Analog) and Digital
Associating Analog Stimulus to XADC Model
Associating analog
stimulus file as attribute in
XADC HDL instantiation
Associating analog
stimulus file to XADC
model in XADC CORE
Generator Wizard
Simulation Example
Stimulus File Example
Analog information read
in directly by model not
the testbench
HDL
Testbench
UNISIM
Download Example with UG480:
ug480_7Series_XADC.zip
Summary
1.
Evaluate the XADC for performance and settings
– XADC Evaluation Kit is bundled with all 7 series TDPs
– Pick required XADC settings (attributes) and evaluate
performance
2.
Implement the XADC core in your HDL design flow
– CORE generator tool’s XADC Wizard simplifies
configuration
• Customizes the core and generates files for instantiation and
simulation
• Refer to the XADC Wizard User Guide (UG772) to configure the core.
• Generate XCO file that can be instantiated in your HDL
– Write HDL code to perform autonomous operation on XADC for sensing the analog input
• Refer to the XADC User Guide (UG480) for more information on XADC operating modes and
timing
3.
Simulate the XADC in an HDL simulator
– UNISIM (Verilog and VHDL) model for XADC
– Support for analog test vectors using an analog stimulus file
Where Can I Learn More?
Learn more at www.xilinx.com/AMS
– Agile Mixed Signal white paper (WP392)
– XADC User Guide (UG480)
– Watch more videos of Xilinx AMS
Visit www.xilinx.com/innovation/7-series-fpgas.htm
– Application examples
– New 7 series documentation
Xilinx training courses
– www.xilinx.com/training
•
•
•
•
Page 19
Xilinx tools and FPGA architecture courses
Hardware description language courses
7 series design courses
Basic FPGA architecture, basic HDL coding techniques, and other free
Videos
Trademark Information
Xilinx is disclosing this Document and Intellectual Property (hereinafter “the Design”) to you for use in the development of designs to operate on,
or interface with Xilinx FPGAs. Except as stated herein, none of the Design may be copied, reproduced, distributed, republished, downloaded,
displayed, posted, or transmitted in any form or by any means including, but not limited to, electronic, mechanical, photocopying, recording, or
otherwise, without the prior written consent of Xilinx. Any unauthorized use of the Design may violate copyright laws, trademark laws, the laws of
privacy and publicity, and communications regulations and statutes.
Xilinx does not assume any liability arising out of the application or use of the Design; nor does Xilinx convey any license under its patents,
copyrights, or any rights of others. You are responsible for obtaining any rights you may require for your use or implementation of the Design.
Xilinx reserves the right to make changes, at any time, to the Design as deemed desirable in the sole discretion of Xilinx. Xilinx assumes no
obligation to correct any errors contained herein or to advise you of any correction if such be made. Xilinx will not assume any liability for the
accuracy or correctness of any engineering or technical support or assistance provided to you in connection with the Design.
THE DESIGN IS PROVIDED “AS IS" WITH ALL FAULTS, AND THE ENTIRE RISK AS TO ITS FUNCTION AND IMPLEMENTATION IS WITH
YOU. YOU ACKNOWLEDGE AND AGREE THAT YOU HAVE NOT RELIED ON ANY ORAL OR WRITTEN INFORMATION OR ADVICE,
WHETHER GIVEN BY XILINX, OR ITS AGENTS OR EMPLOYEES. XILINX MAKES NO OTHER WARRANTIES, WHETHER EXPRESS,
IMPLIED, OR STATUTORY, REGARDING THE DESIGN, INCLUDING ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE, TITLE, AND NONINFRINGEMENT OF THIRD-PARTY RIGHTS.
IN NO EVENT WILL XILINX BE LIABLE FOR ANY CONSEQUENTIAL, INDIRECT, EXEMPLARY, SPECIAL, OR INCIDENTAL DAMAGES,
INCLUDING ANY LOST DATA AND LOST PROFITS, ARISING FROM OR RELATING TO YOUR USE OF THE DESIGN, EVEN IF YOU HAVE
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. THE TOTAL CUMULATIVE LIABILITY OF XILINX IN CONNECTION WITH
YOUR USE OF THE DESIGN, WHETHER IN CONTRACT OR TORT OR OTHERWISE, WILL IN NO EVENT EXCEED THE AMOUNT OF
FEES PAID BY YOU TO XILINX HEREUNDER FOR USE OF THE DESIGN. YOU ACKNOWLEDGE THAT THE FEES, IF ANY, REFLECT
THE ALLOCATION OF RISK SET FORTH IN THIS AGREEMENT AND THAT XILINX WOULD NOT MAKE AVAILABLE THE DESIGN TO YOU
WITHOUT THESE LIMITATIONS OF LIABILITY.
The Design is not designed or intended for use in the development of on-line control equipment in hazardous environments requiring fail-safe
controls, such as in the operation of nuclear facilities, aircraft navigation or communications systems, air traffic control, life support, or weapons
systems (“High-Risk Applications”). Xilinx specifically disclaims any express or implied warranties of fitness for such High-Risk Applications. You
represent that use of the Design in such High-Risk Applications is fully at your risk.
© 2012 Xilinx, Inc. All rights reserved. XILINX, the Xilinx logo, and other designated brands included herein are trademarks of Xilinx, Inc. All
other trademarks are the property of their respective owners.