Íàçàä â áèáëèîòåêó

REMOTE LABORATORY FOR FPGA BASED RECONFIGURABLE SYSTEMS TESTING

Àâòîðû: Milos Drutarovsky, Jan Saliga, Linus Michaeli, Ingrid Hroncova
Èñòî÷íèê: XIX IMEKO World Congress Fundamental and Applied Metrology September 6.11.09, Lisbon, Portugal

Abstract

The paper presents a remote laboratory system that allows performing experiment

1. Introduction

Training in advanced courses of Programmable Logic Devices (PLDs) requires access to expensive hardware equipments. The high cost of these instruments along with time consuming development process in individual students’ projects required within the educational process creates a significant bottleneck. The restricted university budget does not allow building of a several such development and test stands, and time schedule and university security conditions restrict the time when the stand can be accessible for students locally in a laboratory

A solution of this problem could be to build a remote laboratory. A virtual laboratory is generally based on sets of software models that represent objects or systems in a given abstraction level but its disadvantage is in accuracy of the behaviour model representing a real system and the speed of detailed simulation for complex systems. Unlike virtual laboratories, remote laboratories are based on real hardware [1], [2], [3], [4]. Such laboratories are very convenient and effective for hardware design laboratory courses and advanced hardware projects solved by students. Hardware experimental environment is usually treated as an exclusive resource for single user usage. However, the actual test run time is rather short and most of the time is wasted leaving these costly resources idle. The combined use of FPGA/PC connected test hardware and PC controlling measurement equipments such as Logic Analyzer (LA), Digital Storage Oscilloscope (DSO) and Vector Signal Generator (VSG) can represent an environment for remotely controlled hardware experiments.

The less costly second variant of the solution with the virtual instrument is nearly the same; the difference consists in replacement of standalone instruments performed by LA, DSO, and VSG by a DAQ. The LabVIEW drivers will be adapted to this solution. The price for this solution is a reduced possibility to measure transient effects on the programmed FPGA circuits. However, for introductory courses this solution is fully sufficient but the closeness to the simulation is its drawback.. The design of the fully equipped laboratory will be aimed first of all to advanced students, thesis works, and research. In the next paragraphs this fully equipped working environment as the most advanced solution will be described in further.

An example of such a remote laboratory system used in practice is Nokia Remote Device Access (RDA) [4]. It is a service that allows developers to test their mobile applications and services remotely on various Nokia devices based on Symbian OS. The main features of the service are remote controlling of a device, installing and running applications, transferring files, and analyzing log files in real-time. RDA is an Internet-based solution.

An example of such a remote laboratory system used in practice is Nokia Remote Device Access (RDA) [4]. It is a service that allows developers to test their mobile applications and services remotely on various Nokia devices based on Symbian OS. The main features of the service are remote controlling of a device, installing and running applications, transferring files, and analyzing log files in real-time. RDA is an Internet-based solution.

2. DESIGN OF REMOTE LABORATORY SYSTEM ARCHITECTURE

The main idea behind the project is to provide an access to the really expensive HW and high performance licensed EDA tools, and to enable using these costly resources remotely via Web access and remote desktop interfaces. Basic structure of the laboratory which consists of stand alone instruments controlled remotely (first variant) is shown in Fig. 1

The core of the system consists of:

Fig. 1. Architecture of the proposed remote laboratory.

The measurement instrumentations (LA and VSG) are linked to the Measurement Server via LAN (Ethernet) that creates the local communication backbone. The DSO vendor has implemented into DSO only USB, that is why the communication with DSO has to use this interface. From the measurement point of view the main bottleneck of the Ethernet and USB is the precise group triggering and synchronization in the measurement system in comparison with optional GPIB (IEEE-488) but no extreme triggering requirements are expected in the suggested system. Moreover, the local LAN is not overloaded by general communication what decreases possibility of any delays in control command delivery.

The instruments serve for two independent measurement stands:


2.1. Software for control of test stand instrumentation

The software has to fulfill the following requirements:

LabVIEW by National Instruments [17] has been chosen as the software development platform for these software applications. The main reasons leading to this decision were:

The software consists of two sets of independent applications for FPGA and DSP based kits, respectively. These applications have to enable the students to have a complex and comprehensive view of performed measurement task and a possibility to set up the conditions of measurement simply, e.g. parameters of stimulus signal, etc. The required simplicity is the reason why the control of instrumentation was partially restricted to the functions that are really needed for the given tasks. Moreover, to allow remote controlling of the instrumentations across the Internet, specialized software tools implemented on the Measurement Server had to be developed.

The instruments drivers developed by vendors unfortunately use different methods of data/command transfer among the Measurement Server and the instrument itself. The LA by Agilent requires communication based on COM automation objects, methods, and properties programming, while DSO by Tektronix and VSG by Anritsu use common VISA-based access. To simplify the complex programming even using the instrument drivers we decided to use only a restricted variety of COM automation components to transfer the configuration XML-based file that is edited on the Measurement Server according to user measurement requests and measurement data files.

The proposed HW infrastructure provides an access to expensive HW in time multiplex (job scheduler) [2], [3]. It should enable to a remote user to load his/her FPGA project via web interface into a buffer where it would wait in a time front when the HW resources will be freed. As soon as the HW is available, the job is processed and the results of HW responses are sent back to the user for off-line analysis of the testing results

Basic features expected of the job scheduler are:

Job scheduling enables seamless access to the HW and SW resources to several concurrent users. It enables more effective use of the HW equipments.

3. REMOTE LABORATORY WORKPLACES

The remote laboratory consists of the two workplaces:

  1. Workplace for basic FPGA designs
  2. Workplace for DSP IP Blocks Based Design Testing
3.1. Workplace for basic FPGA designs and soft processor testing

Workplace 1 provides access to the NIOS II Development Kit, Cyclone II Edition (ALT1) and LA with pattern generator functionality (Fig. 1). The ALT1 kit is based on the low-cost Altera Cyclone II EP2C35F672 FPGA device (Fig. 2) that is used in many typical cost sensitive applications. It is connected via Altera download cable - USB blaster [6] directly to the Measurement Server.

Fig. 2. NIOS development board, Cyclone II edition block diagram.

The USB-Blaster download cable interfaces a USB port on the Measurement Server to the Altera FPGA mounted on a printed circuit board. The cable sends configuration data from the remote user to a standard 10 pin JTAG header connected to the Cyclone FPGA. LA is connected to the selected measurement points of the Cyclone FPGA device and NIOS II board buses. LA is used mainly for capture of FPGA responses during testing phase. Pattern generator of LA can be optionally used for generation of user definable digital stimulus sequences. It can be even controlled remotely through remote programming interface (RPI) by issuing ASCII commands to the TCP socket.

The Workspace 1 supports standard iterative FPGA design and testing flow and provides HW platform for the following types of experiments:

3.2. Workplace for DSP IP Blocks Based Design Testing

Workplace 2 (Fig. 1) enables access to the DSP Development Kit, Stratix Edition [8] and Video Development Kit, Cyclone II Edition [9]. These kits provide target FPGA platforms for testing DSP functionality of modern FPGA devices. Both Altera FPGA devices (Stratix II EP2S60F1020C4 (Fig. 3) and Cyclone II EP2C70F672C6) contain embedded multipliers that are crucial for embedded DSP.

Fig. 3. Stratix II EP2S60 development board block diagram.

The kits offer the following analog interfaces:

These interfaces together with the high performance FPGA resources allow testing of quite complex DSP algorithms embedded into FPGA devices. DSP designs based on available Altera IP blocks are the typical designs tested on Workplace 2. Design flow of the characteristic IP based designs are supported by the licensed Altera Quartus II [10] EDA tool, selected IP Megafunctions supported by Altera DSP Builder [11], and Matlab running on the Application Server. Access to these resources is performed by standard remote desktop access with dynamic access control implemented on the Web Server.

Powerful VSG can be used for generation of complex synthesized analogue waveforms used in common testing DSP applications. Waveform generation can be based on predefined waveforms stored on the VSG hard disk or user defined by using Matlab tools. The 4-channel DSO can capture analogue waveforms generated by testing DSP applications. Both of the measurement equipments can be controlled by the Measurement Server and the captured data can be sent to the remote user for further off-line analysis.

The Workspace 2 supports advanced DSP IP block FPGA design and testing flow shown and provides HW platform for the following types of experiments:

These experiments allow filling the gap among specialized theoretical subjects given at the Department of Electronics and Multimedia Communications, TU Kosice, and functionality of current modern FPGA devices. IP based development of DSP applications enables to build up quite powerful applications with reasonable development effort. It can also increase motivation of students to follow this rapidly evolving branch of the study more deeply.

4. SOFTWARE TOOLS AVAILABLE TO REMOTE USERS

Standard FPGA designs can be done off-line by free Altera EDA Quartus II tool [10]. This tool is available free off charge and a remote user can download and license this software for local usage. Designs for the both of Cyclone boards can be done with this software.

The powerful DELL Application Server with remote desktop access was added in order to support also more advanced designs with licensed software tools available at the Department of Electronics and Multimedia Communications:

These tools are currently fully licensed for educational and research purposes at the department and access to them will be controlled by access policy implemented on the Web Server/Gateway. These tools represent current state of the art for design and testing of modern embedded FPGA based designs with Altera FPGA devices. Remotely accessible Application Server enables to use this advanced technology within standard educational and research activities.

5. CONCLUSIONS AND FUTURE WORK

The paper presents some aspects of the remote FPGA laboratory for development and testing of complex reconfigurable systems which is being built up at the Department of Electronics and Multimedia Communications at the Technical University of Kosice. The laboratory is still in the process of development. Basic functionality of the Workspace 2 was already successfully tested during development of video signal processing based on IP functions [15]. This HW oriented diploma work used the main components of the proposed remote laboratory for

Fig. 4. Custom extension video I/O board with SANTA CRUZ connector developed in [15] attached to the standard Altera video development kit.

This pilot diploma thesis fully confirmed advantages of availability to share remotely advanced HW and SW tools for real development works.

Currently, all equipments and evaluation boards are already fully functional and basic connectivity of the equipment is under testing. Although complete functionality of this remote laboratory is still not attained in the full scale, integration works are going to continue in the next months mostly as a part of specialized diploma works and PhD theses. Simultaneously also typical FPGA based experiments are prepared for demonstration of advantages of the modern FPGA devices for up to date embedded and DSP applications.

ACKNOWLEDGMENTS

This work has been done partially within the KEGA 3/5238/07 and 3/7115/09 projects of Slovak Ministry of Education and it was also partially supported by the Science Grant Agency of Slovak republic (Grant No. 1/0103/08).

This work was supported by Agency of the Ministry of Education of the Slovak Republic for the Structural Funds of the EU under the project Centre of Information and Communication Technologies for Knowledge Systems (project number: 26220120020).

The authors also thank to Altera which provided us with Quartus II EDA tool in the form of floating licenses within the framework of University and Higher Education programs, and to National Instruments, the office in Prague, for their recommendations and advisements.

REFERENCES
  1. G. Andria, A. Baccigalupi, M. Borisc, et al., “Remote didactic laboratory "G. Savastano," The Italian experience for e-learning at the technical university in the field of electrical and electronic measurement: Architecture and optimization of the the communication performance based on thin client technology”, IEEE Transactions on Instrumentation and Measurement, Vol. 56, Issue 4, Aug. 2007, pp. 1124-1134.
  2. N. Fujii, N. Koike, ”A Time-sharing Remote Laboratory for Hardware Design and Experiment with Shared Resources and Service Management”, Proc. of the ITHET 6th Annual International Conference, Juan Dolio, Dominican Republic, July 7-9, 2005, session T2B5 – T2B10.
  3. J. S. Pastor, I. Gonzalez, J. Lopez, F.G. Arribas, J. Martinez, “A Remote Laboratory for Debugging FPGA-Based Microprocessor Prototypes”, Proceedings of the IEEE International Conference on Advanced Learning Technologies (ICALT’04).
  4. NOKIA, http://wiki.forum.nokia.com/index.php/Remote_Device_Access#RDA_description
  5. NIOS II, http://www.altera.com/literature/manual/mnl_nios2_board_cycloneII_2c35.pdf
  6. USB Blaster, http://www.altera.com/literature/ug/ug_usb_blstr.pdf
  7. NIOS Processor, http://www.altera.com/nios
  8. DSP Kit Stratix II, http://www.altera.com/products/devkits/altera/kit-dsp-2S60.html
  9. Video Development Kit, http://www.altera.com/products/devkits/altera/kit-video-cyclone2.html/a>
  10. Quartus, http://www.altera.com/products/software/products/quartus2/qts-index.html
  11. DSP Builder, http://www.altera.com/products/software/products/dsp/dsp-builder.html
  12. BIOS II C-to HW compiler http://www.altera.com/products/software/products/dsp/dsp-builder.html
  13. M. Drutarovsky, V. Fischer, M. Simka, F. Celle, “A Simple PLL-based True Random Number Generator for Embedded Digital Systems”, Computing and Informatics, Vol. 23, No. 5-6, 2004, pp. 501-516.
  14. MODELSIM Verification Environment, http://www.mentor.com/products/fpga_pld/simulation/index.cfm
  15. M. Liptaj, “Implementation of IP Functions in Video Signal Processing”. (“Implementacia IP funkcii pre spracovanie video signalov”). Diploma thesis, TU Kosice, May 2009, pp.1-86. (in Slovak).
  16. AGILENT 16822A Logic Analyzer Data Sheet, http://cp.literature.agilent.com/literweb/pdf/5989-5063EN.pdf
  17. NI Labview, http://www.ni.com/labview/