单片机基于FPGA实现任意波形发生器
原站著录信息
摘要
摘要:任意波形发生器( awgs ) 有着日益重要的测试和测量应用。本文介绍了一种新的办法产生任意波形利用FPGA职能。利用这些正交函数,任何定期波形就能够实现。最近进步,在现场可编程门阵列( FPGA )的技术使波形的产生非常简单,而且具有成本效益。演示为此,我们用了一个定制任意波形这是一个级联的梯形,正弦和三角波形。仿真结果和预想的一样。这个设计最大时钟频率为是24.944 兆赫与电力消费量为62兆瓦。 IEEE—ICET 2006 2nd International Conference on Emergin…
摘要:任意波形发生器( awgs ) 有着日益重要的测试和测量应用。本文介绍了一种新的办法产生任意波形利用FPGA职能。利用这些正交函数,任何定期波形就能够实现。最近进步,在现场可编程门阵列( FPGA )的技术使波形的产生非常简单,而且具有成本效益。演示为此,我们用了一个定制任意波形这是一个级联的梯形,正弦和三角波形。仿真结果和预想的一样。这个设计最大时钟频率为是24.944 兆赫与电力消费量为62兆瓦。
IEEE—ICET 2006
2nd International Conference on Emerging Technologies
Peshawar, Pakistan 13-14 November 2006
Single Chip FPGA Based Realization of Arbitrary
Waveform Generator using Rademacher and
Walsh Functions
Syed Manzoor Qasim and Shuja Ahmad Abbasi
Department of Electrical Engineering, VLSI Research Lab
King Saud University, Riyadh, Saudi Arabia 11421
Abstract: Arbitrary waveform generators (AWGs) are becoming increasingly important for test and measurement applications. This paper describes a new approach for generating arbitrary waveforms using FPGA and a set of Rademacher and Walsh Functions. Utilizing these orthogonal functions, any periodic waveform can be realized. Recent advancements in Field Programmable Gate Array
(FPGA) technologies have made waveform generation very easy and cost-effective. For demonstration purpose we used a custom defined arbitrary waveform that is a concatenation of trapezoidal, sinusoidal and triangular waveforms. Simulation results for the proposed AWG are presented. Top- down approach has been adopted to realize the waveform generator in Spartan-3 FPGA. The maximum clock frequency for this design is 24.944
MHz with a power consumption of 62 mW.
Keywords: Arbitrary Waveform Generation, Field-Programmable Gate Array (FPGA), Rademacher, Walsh Functions, VHDL
1. INTRODUCTION
Modern waveform generators are mostly based on digital technology, which allows the synthesis of analog waveforms from digitized waveform simples. The generation of arbitrarily complex waveforms can be implemented fairly easily www.51lunwen.organd is in fact a feature of an increasing nannyberry of instruments. The freedom to generate almost any wave shape of interest opens interesting opportunities in the test field. In some specialized applications, an arbitrary waveform generator (AWG) may be able to replace ad-hoc built test signal generators, going greater flexibility. As an example, systems may need to be tested for correct operation against predefined input waveform tolerance masks: an AWG may easily generate a variety of waveforms, up to and exceeding the mask limits, allowing a reliable test. However, specifications often state AWG performances in the generation of specific (e.g., sine, square) rather than generic waveforms, so that it becomes difficult to determine the accuracy in the reproduction of a waveform for which no reference standard exists。
The ability to generate arbitrary waveform is of importance for many commercial and military applications. By using arbitrary waveforms, engineers and scientists are able to generate unique waveform signals that are specific to their applications. Most often, arbitrary waveforms are designed to simulate real world signals. A number of techniques utilizing both analog and digital approaches are available for the generation of arbitrary waveforms. However, digital methods, based on high-level design methodology offer better flexibility at the cost of increased complexity.
Orthogonal functions such as Researcher and Walsh functions are a set of discrete valued functions [1]í[5]. These functions and their transforms are important analytical tools for signal processing and have wide applications in digital communication, digital image processing, statistical analysis and waveform generation [3]
Since Walsh functions are binary related, they are easy to generate and control using relatively simple hardware and readily lend itself for real-time waveform generation ideal for the synthesis of different waveforms.
With the recent advancement in Field Programmable Gate Array (FPGA) technology, it is now possible to realize high performance Arbitrary Waveform Generator (AWG) in a single chip. This will drastically reduce the system cost and thus avoid the dependency on external function generators to generate arbitrary waveforms. These waveforms can be easily generated on-chip. Being dynamically recon- figural, the same FPGA can be used for different applications [6].
The objective of this paper is to realize a single-chip low cost approach for arbitrary waveform generation. To achieve this we used FPGA architecture for high-speed generation of arbitrary waveforms. In this paper, we have used a set of Researcher and Walsh functions for the generation of digital arbitrary waveform in FPGA.
The rest of the paper is organized as follows. Orthogonal functions such as Researcher and Walsh functions are defined and the methods used for their generation are discussed in section2. Section 3 gives a brief overview of the Spartan-3 FPGA architecture and the top-down design methodology adopted in this work is described in section 4. In section 5, techniques for the generation of arbitrary waveform using Rademacher-Walsh functions is described. Section 6 summarizes the FPGA implementation results and finally section 7 gives some concluding remarks.
A digital waveform generator reconstructs an analog signal from a sequence of stored quantized samples. The operations involved are: digital-to-analog conversion; time-domain interpolation by a zero-order hold function (which may be needed also for DAC deglitch); and smoothing by a low-pass reconstruction filter. Because of the zero-order hold, the reconstruction filter input is not an impulse train, but a pulse-amplitude modulated signal. Hence, the reconstruction filter is also tasked with sin(x)/x compensation of the signal spectrum. To optimize the dynamic range of the generator. Amplitude regulation is variously obtained by programmable-gain amplifiers and attenuators, multiplying DAC’s and analog multipliers placed before the output stage.
2. GENERATION OF RADEMACHER AND WALSH FUNCTIONS
The Researcher functions constitute an incomplete and orthogonal set of periodic square waveforms of amplitude +1 and í1. Mathematically, kth order Researcher function is defined by the relation [4]
Fig. 1 depicts the first four Researcher functions.
Fig.1. First four Researcher Functions
The Researcher functions are generated as follows [4]:
Let (0, x) be the function
With the
Value 1 for the entire interval of duration
T = 1 i.e., (0, x) = 1.
To obtain (1, x), divide the interval
(0, 1) in half, and let the value of (1, x) in the first half interval be +1 and in the second half of the interval í1.
To obtain (2, x), divide each of the intervals (0,1/2) and (1/2,1) in half and let the value of the function in the first half of each interval be +1 and in the second
