Please check for possible updates of this manual under http://drs.web.psi.ch/datasheets
DRS4 Evaluation Board User’s Manual
1. Introduction
The DRS4 chip, which has been designed at the Paul Scherrer Institute, Switzerland by Stefan
Ritt and Roberto Dinapoli is a Switched Capacitor Array (SCA) capable of digitizing eight
channels at sampling speeds up to 6 GSPS. This chip is available through the PSI technology
transfer program for other institutes and organizations. In order to simplify the design process
to integrate the DRS4 chip into custom electronics, an evaluation board has been designed,
which demonstrates the basic operation of the chip. It has SMA connectors for four input
channels CH1 to CH4, an USB 2.0 connector and a LEMO trigger input (Figure 1). The board
is powered through the USB port and contains an on-board trigger logic. It comes with MS
Windows® and Linux drivers and two application programs. It is basically equivalent to a four
channel 5 GSPS digital oscilloscope.
This manual describes the software installation, the usage of the application programs, and
gives hints for developers seeking to build new electronics around the DRS4 chip.
1.1. Board description
Since the DRS4 chip has differential inputs, the board uses four transformers (ADT1-1WT
from Mini-Circuits®) to converted the 50-Ohm terminated single ended inputs into differential
signals. The transformers are followed by analog switches (ADG936 form Analog Devices®).
These switches allow the multiplexing of the DRS4 inputs between the input connectors and a
reference voltage generated by the on-board 16-bit DAC for calibration purposes. The DRS4
is read out by a 14-bit ADC (AD9245 from Analog Devices®) and a FPGA (Xilinx® Spartan
3). The USB connection is implemented with a micro controller (Cypress® CY2C68013A).
The high speed modus of the USB 2.0 bus allows for data transfer rates of more than 20
MB/sec.
Page 4 of 21
Figure 1: Picture of the DRS4 Evaluation Board with different components
DRS4 Evaluation Board User’s Manual
For trigger purposes, a 50-Ohm terminated TTL compatible input is implemented (Lemo
connector). A on-board discriminator with programmable level allows for self triggering on
any of the four input channels. An 1 MBit EEPROM (25LC1025 from Microchip®) is used to
store the board serial number and calibration information. Two 14-pin headers carry all
important logical signals which allow easy debugging with a logic analyzer or oscilloscope. A
JTAG adapter can be used to update the FPGA firmware through a Xilinx® Platform Cable
Adapter.
1.2. Firmware Description
Both the Windows and the Linux distribution contain a subdirectory “firmware” which
contains the FPGA and Microcontroller firmware for the DRS4 Evaluation Board. The FPGA
firmware is written in pure VHDL, thus making it easy to port it to other FPGA devices such
as Altera® or Lattice®. Only a few Xilinx® basic components such as clock managers and I/O
blocks have been instantiated and must be adapted when another FPGA manufacturer than
Xilinx® is chosen. The FPGA source code is contained in several files with following
contents:
Top level entity. Routing of clock signals, global reset signal,
LEDs and LEMO input
Main file containing state machines for DRS4 readout, serial
interface to DAC, EEPROM and temperature sensor, trigger
logic and reference clock generation
Instantiates block ram for waveform storage
Interface to CY2C68013A microcontroller in slave FIFO mode.
Implements a set of status and control registers through which
the main application can be controlled
Generates 66 MHz, 132 MHz, 264 MHz and a phase shifted 66
MHz clock out of the 33 MHz quartz input frequency via the
®
Xilinx
Digital Clock Managers (DCM)
Constraint file. Assigns package pins and defines clock
constraints
Xilinx® ISE 9.2i project file
Compiled firmware image directly for Spartan 3s400 FPGA
Compiled firmware image for FPGA EEPROM XCF02S
3s400/drs4_eval1.ipf
Xilinx® Impact project file to program FPGA via download
cable
®
The firmware for the USB microcontroller from Cypress
compiled with the Keil
®
8051 C compiler. It contains the standard include and library files
is written in C and must be
from the Cypress EZ-USB® development kit plus some DRS specific files:
Remaining files are standard files from EZ-USB development
kit
The FPGA firmware implements a set of control and status registers, through which the DRS4
can be controlled and read out. The mapping of the control registers is as follows:
# Ofs. Bit Name Comment
0 0x00 0 start_trig write a "1" to start the domino wave
0 0x00 1 reinit_trig write a "1" to stop & reset the DRS chip
0 0x00 2 soft_trig write a "1" to stop the DRS chip & read the data to RAM
0 0x00 3 flash_trig Flash contents of RAM into EEPROM
0 0x02 18 led 1=on, 0=blinks once at beginning of DRS chip readout
0 0x02 19 tcal_en switch on (1) / off (0) 264 MHz calib. sig. for DRS chips
0 0x02 21 transp_mode 1=send DRS inputs to outputs ("transparent mode")
0 0x02 22 enable_trigger write a "1" to enable hardware trigger
0 0x02 23 readout_mode 0:start from first bin, 1:start from domino stop
0 0x02 24 neg_trigger 1=trigger on high to low transition
0 0x02 25 acalib write "1" to enable amplitude calibration
0 0x02 27 dactive 0:stop domino wave during readout, 1:keep it running
0 0x02 28 standby 1: put chip in standby mode
1 0x04 31..16 DAC0 Set DAC 0 (=A, ROFS)
1 0x06 15..0 DAC1 Set DAC 1 (=B, CMOFS)
2 0x08 31..16 DAC2 Set DAC 2 (=C, CAL-)
2 0x0A 15..0 DAC3 Set DAC 3 (=D, CAL+)
3 0x0C 31..16 DAC4 Set DAC 4 (=E, BIAS)
3 0x0E 15..0 DAC5 Set DAC 5 (=F, TLEVEL)
4 0x10 31..16 DAC6 Set DAC 6 (=G, O-OFS)
4 0x12 15..0 DAC7 Set DAC 7 (=H, -)
5 0x14 31..24 configuration Bit0: DMODE, Bit1: PLLEN, Bit2: WSRLOOP
5 0x14 23..16 channel_config 1=1x8k,0x11=2x4k,0x33=4x2k,0xFF=8x1k
5 0x16 7..4 first_chn first channel address to read out (0..9)
5 0x16 3..0 last_chn last channel address to read out (1..9)
6 0x18 31..16 trigger_delay trigger delay in ticks of roughly 0.56 ns
6 0x1A 15..0 sampling_freq sampling frequency in ticks (=1024/f
*0.120-2)
samp
While the mapping of the status registers is like this:
# Ofs. Bits Name Comment
0 0x00 31..16 board_magic 0xC0DE, Magic number for DRS board identification
0 0x02 15..8 board_type 5 for DRS4 USB Evaluation Board 1.1
0 0x02 7..0 drs_type 4 for DRS4
1 0x04 0 running "1" while dom ino wave running or readout in progress
2 0x08 31..16 stop_cell position of cell where sampling stopped at last trigger
8 0x20 31..16 temperature temperature in 0.0625 deg. C units
9 0x24 31..16 serial_cmc Serial number CMC board
9 0x26 15..0 version_fw firmware version (SVN revision)
Page 6 of 21
DRS4 Evaluation Board User’s Manual
All registers are implemented as 32-bit registers, so they can be mapped easily into some
VME address space for example if one decides to build a VME board containing the DRS4.
2. Installation
2.1. Windows XP
Under MS Windows® it is important to install the necessary driver before connection the
DRS4 Evaluation Board with the PC. The current distribution can be downloaded from
http://drs.web.psi.ch/download . The Windows version contains a single program drs-
xx.exe (where xx is the version) which can be executed to install the driver, applications,
documentation and source code. Executing this file starts the installer:
You can select which components to be installed:
Please check for possible updates of this manual under http://drs.web.psi.ch/datasheets
DRS4 Evaluation Board User’s Manual
Then you can select the installation directory:
After the installer has finished, you can connect the DRS4 Evaluation Board to the Computer:
Where you can click “Install the software automatically” and then click “Next”.
Page 8 of 21
Now you will see the “Found New Hardware” dialog:
DRS4 Evaluation Board User’s Manual
After successful installation of the driver, you will see the following window:
And a new group in your Start Menu:
Clicking on „DRS Command Line Interface“ will start a simple application which connects to
the DRS4 Evaluation Board. If it finds the board, it displays the board serial number and the
firmware revision as on the following screen shot:
Now you are ready to issue your first command “info” which shows some more information,
like the current board temperature. The temperature sensor is on the bottom side just below
the DRS4 chip. If you keep issuing “info” commands and touch that sensor with your finger,
you should see the temperature increase.
Please check for possible updates of this manual under http://drs.web.psi.ch/datasheets
DRS4 Evaluation Board User’s Manual
The second application is an oscilloscope-like program, which connects to the DRS4 board
and works pretty much like a normal oscilloscope. You can select the trigger mode, trigger
level and trigger source. On Rev. 1.1 of the DRS4 evaluation board, only CH1 can be selected
as trigger source. You enable a channel by clicking on the number “1” to “4”. There are two
cursors and a few utilities. You can save a waveform in an ASCII format. After you opened a
file, each trigger will write the waveform of the active channel(s) to that file. When you are
continuously running, the file will grow very quickly.
The picture above shows an un-calibrated evaluation board, which shows a noise level of
about 7 mV RMS. Future version of the firmware and drivers will contain calibration routines,
which bring down the noise by more than one order of magnitude.
Page 10 of 21
DRS4 Evaluation Board User’s Manual
For test purposes, an internal 240 MHz referenc clock signal can be connected to channel #4
via the “Config” menu:
This application will be constantly updated, so please check for updates regularly on the DRS
web site.
2.2. Linux
The drivers and applications are distributed for Linux in source code and must be compiled on
each system. First untar the tar ball:
Then change the directory and do a „make“. Note that to compile the oscilloscope application
it is necessary to have the wxWidgets package version 2.8.9 or later installed. You can obtain
this package in source form from http://www.wxwidgets.org/downloads/. If this package is
present, you can change to the drs directory and issue a make:
[/usr/local]$ cd drs-1.0
[/usr/local/drs-1.0]$ make
g++ -g -O2 -Wall -Wuninitialized -fno-strict-aliasing -Iinclude -DOS_LINUX
Please check for possible updates of this manual under http://drs.web.psi.ch/datasheets
. . .
If the board is correctly recognized, one can access it with the command line program. Under
most Linux distributions however, only the “root” user can directly access USB devices.
Some systems can be configured to allow non-root access via the “udev” system, but the exact
instructions vary from distribution to distribution and can therefore not be given here.
[/usr/local/drs-1.0]$ ./drscl
DRS command line tool, Revision 12949
Type 'help' for a list of available commands.
Found mezz. board 0 on USB, serial #2006, firmware revision 10901
B0>
The same commands as in the Windows version can now be entered such as the “info”
command:
B0> info
==============================
Mezz. Board index: 0
DRS type: DRS4
Board type: 5
Serial number: 2006
Firmware revision: 10901
Page 12 of 21
DRS4 Evaluation Board User’s Manual
Temperature: 30.8 C
Status reg.: 00000002
PLL locked
Control reg.: 00000000
DMODE single shot
Frequency: 0.000 GHz
If this works, the oscilloscope application “drsosc” can be started. It will open a X window
and show exactly the same functionality as its Windows counterpart:
Please check for possible updates of this manual under http://drs.web.psi.ch/datasheets
DRS4 Evaluation Board User’s Manual
3. Development Hints
The idea behind the evaluation board is to make first steps in using the DRS4 chip, but then
develop your own custom electronics around the chip. The first thing to do there is to study
carefully the DRS4 data sheet, which can be obtained from http://drs.web.psi.ch/datasheets.
Then have a look at the DRS4 Evaluation Board Reference Design, which schematics is
supplied at the end of this document. When you start to design your own electronics, there are
however some important points, which are not necessarily obvious from the data sheet or
from the reference design. These points together with some design tips are explained in this
section.
3.1. Power Supply
As with any analog design, the quality of the power supply is very important, since it has an
influence of the noise level measured by the DRS4 chip. Low noise linear regulators together
with the usual decoupling capacitors are recommended for all power supplies. The analog
power supply AV
the jitter of the sampling frequency. Long term variations in this power supply (seconds…)
are regulated by the on-chip PLL, but high frequency noise in the MHz region leads directly
to an increase of the PLL jitter. Therefore the evaluation board contains two separate 2.5V
linear regulators for the DRS4 chip, one for the AV
Although the DVDD power is called “digital power”, it powers also the analog output buffers
of the DRS4 chip and needs the same good quality than the AVDD power in order to minimize
the noise of the board.
powers only the domino circuit of the DRS4 chip and directly influences
DD
power and one for the DVDD power.
DD
The DRS4 chip also contains two grounds AGND and DGND. They can be either routed
separately on the board and be connected at the power source, or they can be directly
connected to an overall dedicated ground plane of the PCB. Tests have been shown that the
latter choice gives slightly less noise.
The bottom of the QFN76 package of the DRS4 has an exposed paddle connected to the
internal DGND. It is recommended that this paddle is matched by a PCB pad of similar size
connected to analog ground to achieve the best electrical and thermal performance of the
DRS4. The copper plane should have several vias to achieve a good heat dissipation to flow
through the PCB as shown in Figure 2:
Page 14 of 21
Figure 2: PCB pad under the DRS4 chip
DRS4 Evaluation Board User’s Manual
These vias should be solder-filled or plugged. The maximum power dissipation of the DRS4
chip is not critical (350 mW), but an improved thermal stability helps the performance of any
analog chip. To maximize the coverage and adhesion between the DRS4 and the PCB, the
copper plane could be partitioned into several uniform sections, providing several tie points
during the reflow process.
3.2. Analog Input
If non-differential signals should be digitized with the DRS4 chip, they must be converted
into differential signals for the DRS4 inputs. The simplest solution is to connect the IN- inputs
to AGND and to connect the signals directly to the IN+ inputs. This method has however the
disadvantage that the crosstalk and noise immunity of the DRS4 chip are worsened. The
evaluation board uses passive transformers ADT1-1WT from Mini-Circuits® for this purpose.
While this is a good solution to reduce the power consumption of the board, such that it can
be powered from the USB power (500 mA @ 5V), it has the disadvantage that it reduces the
analog bandwidth of the system to about 200 MHz (-3 dB). The reason for this is the dynamic
capacitive load of the DRS4 inputs, which must be driven by the signal source. Since the
input impedance of the DRS4 becomes very small at high frequencies, the signal height drops
if only driven passively. Better performance is achieved with active differential drivers. Tests
have been made with the THS4513 from Texas Instruments® giving a bandwidth of 450 MHz
and the ADA4937 from Analog Devices® giving 700 MHz. A small bypass capacitor (1pF) in
the feedback loop of the buffer adds a high frequency pole, which shows up as a peak in the
response function, but then pushes the bandwidth to 750 MHz. The peaking can be reduced
by adding a series resistor of a few Ohm between the buffer output and the DRS4 input.
The usual design rules like proper termination and matched impedance PCB traces apply as in
any high frequency analog design.
3.3. Control Voltages
The DRS4 chip requires certain control voltages: ROFS, O-OFS and BIAS. The latter two are
generated internally with some default voltage, but can be “overwritten” by an external low
impedance source. It is recommended to connect these lines to an external 16-bit DAC, so
that the DRS4 input range can be fine-tuned on a board-by-board basis, to compensate for
chip variations. The ROFS signal should be driven by a high speed low noise buffer. If this
signal would be directly connected to the DAC output, the signal height would change
slightly during the chip readout and the measurement would show a varying baseline level.
3.4. ADC Clock
There is a very strict relation between the DRS4 output shift register clock SRCLK and the
ADC clock (see DRS4 data sheet WAVEFORM READOUT). In order to reduce the noise
due to aperture jitter, the phase shift between these two clocks must be fixed and contain very
small jitter (~10ps). The easiest way to generate this phase shift is to use the digital clock
managers (DCM) in the FPGA, as it is done on the evaluation board Rev. 1.1. Since the
DCMs have however an inherent phase jitter of ~150ps, this introduces some noise in form of
a baseline variation when sampling a DC signal in the order of up to a few mV. If this
becomes a problem, it is recommended to generate the phase shift between these two clocks
with a low jitter delay circuit.
Please check for possible updates of this manual under http://drs.web.psi.ch/datasheets
DRS4 Evaluation Board User’s Manual
4. DRS4 Evaluation Board Schematics
1
3
2
4
6
1
3
2
4
6
3
1
2
2A
1A
GND
VCC
2Y
1Y
4
6
5
1
3
2
4
6
Department TEM
Lab for Electronics (1414)
5232 Villigen PSI
Paul Scherrer Institut
1
3
2
4
6
Page 16 of 21
DRS4 Evaluation Board User’s Manual
1
5
423
Department TEM
Lab for Electronics (1414)
5232 Villigen PSI
Paul Scherrer Institut
Department TEM
Lab for Electronics (1414)
5232 Villigen PSI
Paul Scherrer Institut
Please check for possible updates of this manual under http://drs.web.psi.ch/datasheets
DRS4 Evaluation Board User’s Manual
3WP2SO4
VSS1CS
SCK
SI
6
5
423
5
1
423
5
1
423
5
1
423
5
1
Department TEM
Lab for Electronics (1414)
5232 Villigen PSI
Paul Scherrer Institut
Department TEM
Lab for Electronics (1414)
5232 Villigen PSI
Paul Scherrer Institut
Page 18 of 21
DRS4 Evaluation Board User’s Manual
Department TEM
Lab for Electronics (1414)
5232 Villigen PSI
Paul Scherrer Institut
Department TEM
Lab for Electronics (1414)
5232 Villigen PSI
Paul Scherrer Institut
Please check for possible updates of this manual under http://drs.web.psi.ch/datasheets