Digital Discovery Reference Manual

The Digilent Digital Discovery™ is a combined logic analyzer and pattern generator instrument that was created to be the ultimate embedded development companion. The Digital Discovery was designed to optimize channels, speed, and portability. The small form factor facilitates easy storage and provides a whole suite of advanced features to allow you to debug, visualize, and simulate digital signals for most embedded projects. The digital inputs and outputs can be connected to a circuit using simple wire probes or breadboard wires; alternatively, the Digital Discovery High Speed Adapter and impedance-matched probes can be used to connect and utilize the inputs and outputs for more advanced projects. The Digital Discovery is driven by the free WaveForms 2015 (3.5.4 or later) software and can be configured to be any of the below instruments:

  • 24-channel digital logic analyzer (1.2…3.3V CMOS, up to 800MS/s(with the High Speed Adapter))
  • 16-channel pattern generator (1.2…3.3V CMOS, 100MS/s)
  • 16-channel virtual digital I/O including buttons, switches, and LEDs – perfect for logic training applications
  • Two input/output digital trigger signals for linking multiple instruments (1.2…3.3V CMOS)
  • A programmable power supply of 1.2…3.3V/100mA. The same voltage supplies the Logic Analyzer input buffers and the Pattern Generator input/output buffers, for keeping the logic level compatibility with the circuit under test.
  • Digital Bus Analyzers (SPI, I²C, UART, I2S, CAN, Parallel)

The Digital Discovery was designed for anyone embarking on embedded development. Its features and specifications were deliberately chosen to maintain a small and portable form factor, withstand use in a variety of environments, and keep costs down, while balancing the requirements of operating on USB Power.





1.1 Architectural Overview and Block Diagram

Digital Discovery's high-level block diagram is presented in Figure 2, below. The core of the Digital Discovery 2 is the Xilinx® Spartan®-6 FPGA (specifically, the XC6SLX25-2 device). The WaveForms 2015 application automatically programs the Discovery’s FPGA at start-up with a configuration file designed to implement a multi-function test and measurement instrument. Once programmed, the FPGA inside the Discovery communicates with the PC-based WaveForms 2015 application via a USB 2.0 connection. The WaveForms 2015 software works with the FPGA to control all the functional blocks of the Digital Discovery, including setting parameters, acquiring data, and transferring and storing data into the DDR3 memory. Signals and equations also use certain naming conventions. Signals in the Input block use “DIN” prefix to indicate these are inputs only. Signals in the Input/Output block use “DIO” prefix. Signals at the user connectors include “USR” in their names, while signals at the FPGA pins include “FPGA”. Signals at the FPGA pins driving the pull resistors for DIO signals, include “PULL” in their names. DIN inputs are indexed 0 to 23, DIO input/outputs are indexed 24 to 39. Memory signals have the “DDR” prefix. Supply rails show the voltage with the VCC prefix. Referring to the block diagram in Figure 2 below:

  • The I/O Level Translators build the bidirectional interface for input/output pins (used in the Pattern Generator, Static IO, and Logic Analyzer)
  • The Input Dividers are the conditioning circuits for the input pins (used in the Logic Analyzer)
  • The FPGA banks are supplied at different voltages:
    • Bank 0, Bank1: VCCIO_PROG, a variable voltage, settable in the range 1.2V…3.3V. The logic standard is set to: LVCMOS18_JEDEC. The threshold voltage is about 0.45*VCCIO_PROG.
    • Bank 2: VCC3V3, a fixed voltage of 3.3V.
    • Bank 3: VCC1V5, a fixed voltage of 1.5V.
  • A replica of VCCIO_PROG is also available to the user, as VCCIO_USR, under the V user switch control.
  • The DDR3 Data Memory block stores the Logic analyzer acquired data.
  • The Power Supplies and Control block generates all internal supply voltages as well as user supply programmable voltage. The control block also monitors the device power consumption for USB compliance.
  • The USB Controller interfaces with the PC for programming the volatile FPGA memory after power on or when a new configuration is requested. After that, it performs the data transfer between the PC and FPGA.
  • The Calibration Memory stores all calibration parameters. The Digital Discovery includes no analog calibration circuitry. Instead, a calibration operation is performed at manufacturing (or by the user), and parameters are stored in memory. The WaveForms 2015 software uses these parameters to adjust the acquired data and the generated signals.

In the sections that follow, schematics are not shown separately for identical blocks. For example, the Input Divider is only shown for DIN0 since the schematic for all other DIN1…DIN23 is identical.

Figure 2. Digital Discovery Hardware block diagram.

Figure 2. Digital Discovery Hardware block diagram.


2. I/O Level Translators

Figure 3 shows the DIO user connectors and Figure 4 shows the I/O level translator for DIO24. DIO25 to DIO31 use similar discrete components, connected to pins 1A2…2A3, respectively 1B2…2B3 of IC2.

The I/O Level Translators block includes: - Input protection: series PTC (33Ω, positive thermal coefficient thermistor) and parallel ESD/overvoltage diodes to 5.2V and GND. - Voltage level translators, SN74CBT3384C. When DIO_USR signals are driven by the DUT, the voltage at the FPGA pins is limited at VCCIO_SW-1V = 3.3V. When the FPGA drives DIO_USR signals, they pass unlimited trough the low impedance SN74CBT3384C buffer. - Pull resistors: 10k, individually settable as Pull-Up, Pull-Down or High-Z. This is done with a second FPGA pin associated to each DIO, which can be driven High, Low or HiZ. The Pull-Up voltage is VCCIO_PROG. - DIO_FPGA pin: the bank supply voltage is VCCIO_PROG> The WaveForms 2015 software can set VCCIO_PROG from 1.2 to 3.3V. The FPGA input threshold level is about 45% of VCCIO_PROG. The output strength can be set from 2mA to 16mA. The output slew rate can be set as: Quiet, Slow or Fast.

Figure 3. DIO user connectors.

Figure 3. DIO user connectors.

Figure 4. I/O level translator.

Figure 4. I/O level translator.

The LDO in Figure 5 generates the 4.3V to supply the level translator in Figure 4.

The charge-pump in Figure 6 provides the the 6V reference for the clipper in Figure 7.

When all ESD diodes protecting DIO_USR in Figure 3 are OFF, Q3B is OFF, and also Q4. If overvoltage is applied on some DIO_USR pins, rising VU5V2_ESD in Figure 7 above 5.2V, Q3B and Q4 turn ON , clipping VU5V2_ESD at approximately 5V.

Figure 5. VCCIO_SW supply.

Figure 5. VCCIO_SW supply.

Figure 6. VU6V0 supply.

Figure 6. VU6V0 supply.

Figure 7. Backpowering voltage clipper.

Figure Figure 7. Backpowering voltage clipper.


3. Input Dividers

Figure 8 shows the DIN user connector and Figure 9 shows the Input Divider for DIN0. DIN1 to DIN23 use similar input circuitry.

The Input Dividers block includes:

  • Frequency compensated voltage dividers: 10/11 resistive dividers with compensation for FPGA input capacitance. All the dividers together have the settable reference voltage VREFIO. Setting VREFIO close to the logical threshold voltage provides the highest sensitivity, while setting VREFIO at GND or logical supply voltage increase the noise immunity. The voltage at the FPGA pin:

$$V_{DIN\text{_}FPGA}=\dfrac{10}{11}∙ V_{DIN\text{_}USR}+\dfrac{1}{11}∙V_{REFIO}\label{1}\tag{1}$$

  • The reference voltage VREFIO is generated as in Figure 10. DIN_VREF_H and DIN_VREF_L are connected to FPGA pins in bank 1. Bank1 is supplied at VCCIO. VREFIO can be set at:
    • 0V, when DIN_VREF_H = DIN_VREF_L = low
    • 0.43*VCCIO_PROG, when DIN_VREF_H = high, DIN_VREF_L = low
    • VCCIO_PROG, when DIN_VREF_H = DIN_VREF_L = high.
  • ESD/Overvoltage protection: Shottky diodes to VCC3V3.
  • DIN_FPGA pin: the bank supply voltage is VCCIO_PROG. The WaveForms 2015 software can set VCCIO_PROG from 1.2 to 3.3V. The FPGA input threshold level is about 45% of VCCIO_PROG.

Figure 8. DIN user connector.

Figure 8. DIN user connector.

Figure 9. Input Divider.

Figure 9. Input Divider.

Figure 10 VREFIO reference.

Figure 10 VREFIO reference.


4. Power supplies and control

4.1 Internal power supplies

In Figure 11, IC16 limits the in-rush current when the device is connected to the USB port. INA214 is a current shunt amplifier, with a gain of 100. With Vref = 0.75V and R163 = 15mΩ, the output voltage is:

$$V_{ISNS\text{_}VBUS}=100∙(V_{IN+}-V_{IN-})+0.75V=1.5∙I_{VU5V0}+0.75V\label{2}\tag{2}$$

The VBUS voltage is halved to VSNS_VBUS, for being also monitored. IC12 in Figure 11 is a triple power supply, generating the rails of 1.2V for the FPGA core, 1.5V for Bank 3 and DDR3 memory and 3.3V, for various circuits.

Figure 11 VBUS monitoring.

Figure 11 VBUS monitoring.

.

Figure 12. Internal voltage supplies.

Figure 12. Internal voltage supplies.

4.2 Programmable power supply

IC13 in Figure 13 generates the VCCIO_PROG, the variable voltage to supply the input and IO banks of the FPGA: $$V_{VCCIO\text_PROG}=V_{FB}∙(1+\dfrac{R_{144}}{R_{146}} +\dfrac{R_{144}}{R_{149}} )-V_{VSET\text_VCCIO}∙\dfrac{R_{144}}{R_{146}} =3.42V-V_{VSET\text_VCCIO}∙0.82 \label{3}\tag{3}$$

With VVSET_VCCIO ϵ (0…3V), VCCIO_PROG could be theoretically set in the range: VCCIO_PROG ϵ (1.02V…3.42V). IC15 is a current shunt amplifier, with a gain of 100. With Vref = 0.75V and R115 = 50mΩ, the output voltage is: $$V_{ISNS\text_USR}=100∙(V_{IN+}-V_{IN-} )+0.75V=5∙I_{VCCIO\text_USR}+0.75V\label{4}\tag{4}$$

IC14 is a window comparator: FAULT_USR is logical LOW, when VISNS_USR is either more than 1.5V (IVCCIO_USR>150mA) or less than 0.66V (IVCCIO_USR←18mA). If this happens, the FPGA turns EN_PWR_USR to LOW, which turns both Q1A and Q1B OFF, to protect VCCIO_USR against overcurrent and reverse current respectively. VCCIO_USR is halved to VSNS_USR, for being monitored.

Figure 13. VCCIO_PROG supply.

Figure 13. VCCIO_PROG supply.

Figure 14.  VCCIO_USR protection and switch.

Figure 14. VCCIO_USR protection and switch.

4.3. Monitoring the power supplies

The microcontroller in Figure 15 has two roles:

  1. A/D Conversion of VVSNS_VBUS, VISNS_VBUS, VVSNS_USR, VISNS_USR, representing the voltages and currents consumed from VBUS and VCCIO_USR respectively. The digital results are passed to the FPGA via an SPI interface.
  2. Storing the calibration parameters computed as a part of the manufacturing test. During regular behavior, the WaveForms 2015 Software reads the parameters and corrects both generated and acquired signals.

The DAC in Figure 16 generates the setting voltage for programming the value of VCCIO. IC22 in Figure 17 provides 3V reference voltage for both ADC and DAC above.

Figure 15. ATtiny microcontroller

Figure 15. ATtiny microcontroller.

Figure 16. VSET_VCCIO setting DAC

Figure 16. VSET_VCCIO setting DAC.

Figure 17. VREF3V0

Figure 17. VREF3V0 .


5. LEDs and DDR3 Memory

Figure 18 shows the two tricolor LEDs used to symbolize the Digital discovery status. Figure 19 shows the DDR3 memory for the Logic Analyzer buffer.

Figure 18. LEDs.

Figure 18. LEDs.

Figure 19. DDR3 memory.

Figure 19. DDR3 memory.


6. USB Controller

The USB interface performs two tasks:

  • Programming the FPGA: There is no non-volatile FPGA configuration memory on the Digital Discovery. The WaveForms 2015 software identifies the connected device and downloads an appropriate .bit file at power-up, via a Digilent USB-JTAG interface. Adept run-time is used for low level protocols.
  • Data exchange: All instrument configuration data, acquired data and status information is handled via a Digilent synchronous parallel bus and USB interface. Speed up to 20MB/sec. is reached, depending on USB port type and load as well as PC performance.

7. FPGA

The core of the Digital Discovery is the Xilinx Spartan6 FPGA circuit XC6SLX25. The configured logic performs:

  • Clock management (12MHz and 60 MHz for USB communication, 100MHz and 800MHz for data sampling)
  • Acquisition control and Data Storage (Logic Analyzer)
  • Digital signal synthesis (for pattern generator and bus protocol controllers)
  • Trigger system (trigger detection and distribution for all instruments)
  • Power supplies control and instruments enabling
  • Power and temperature monitoring
  • Calibration memory control
  • Communication with the PC (settings, status data)

Block RAM of the FPGA is used for signal synthesis. External DDR3 memory is used for data acquisition.

Detail of the trigger system is shown in Figure 20. Each instrument generates a trigger signal when a trigger condition is met. Each trigger signal (including external triggers) can trigger any instrument and drive the external trigger outputs. This way, all the instruments can synchronize to each other.

Figure 20. FPGA configuration trigger block diagram.

Figure 20. FPGA configuration trigger block diagram.

Figure 21 shows the connections to the FPGA banks 0, 1 and 3.

Bank 0 is used for IOs. DIO_FPGA pins are the actual input/output pins to be used with the Pattern Generator, Static IO and Logic Analyzer. A DIO_PULL pin can add Pull-Up or Pull-Down resistors to the associated DIO_FPGA pin (see Figure 4).

Bank 1 is used for high speed Logic Analyzer inputs. DIN_FPGA are the actual input pins, while DIN_VREF_H and DIN_VREF_L set the reference voltage for the input dividers (see Figure 9).

Bank 3 is used as port for the DDR3 memory.

Figure 21. FPGA banks 0, 1 and 3.

Figure 21. FPGA banks 0, 1 and 3.

Figure 22 shows the voltage rails and decoupling for the FPGA.

The internal core of the FPGA is supplied 1.2V.

Banks 0 and 1 are supplied with the programmable VCCIO_PROG. By setting this from 1.2V to 3.3V, both inputs and IOs are set to be compatible with the I/O standard LVCMOS of the respective voltage. Notice that a protected version of VCCIO_PROG is also available to the user, as VCCIO_USR. This can be used to supply the Device/Circuit Under Test.

Bank 3 is supplied 1.5V, for compatibility with the DDR3 IC.

Bank 2 and VCCAUX are supplied 3.3V.

Figure 22. FPGA powering and decoupling.

Figure 22. FPGA powering and decoupling.


8. Accessories

The Digital Discovery package includes;

  • One 2×16 fly-wire assembly (datasheet), for the DIN_USR connector. 24DIN signals (various colors), 8 GND wires (black). The connector is keyed so that the correct pins are connected to the correct color wires.
  • One 2×6 fly-wire assembly (datasheet), for the DIO connectors. Each one includes two VCCIO_USR (red) wires, two GND (black) wires and 8 (colored) signal wires. It has a 2×6 female connector for the Digital Discovery DIN connector, and 1 pin female connectors for the device under test.

Additional Accessories that can be added at checkout;

  • One High Speed Adapter, for the DIN_USR connector. The High Speed Adapter is an alternative to the 2×16 fly-wire assembly. It provides access for 24 twisted cables. The adapter is not keyed, and both orientations can be used as the twisted wires are not color coded. However, if the adapter is plugged in with the ground arrows pointing down, the pins will be located as shown below:

  • High Speed Logic Probes (datasheet). Each twisted cable has a GND (black) wire twisted to a DIN_USR (colored) wire. The wire connects to the High Speed Adapter via a 2 pin female header, and two 1 pin female connectors to the device under test. A 100Ω resistor is embedded in the signal wire, on the end closest to the device under test. All GND wires should be connected to Ground of the device under test.

9. Features and Performances

This chapter shows the features and performances as described in the Digital Discovery Datasheet. Footnotes add detailed information and annotate the HW description in this Manual.

9.1. Logic Analyzer

  • 24 high-speed input channels (DIN0…23), accessible through one 2×16 connector, used with the Logic Analyzer in Waveforms 2015 (560kΩ||10pF)
  • 16 digital I/Os (DIO24…39) arranged in two Pmod-style (2×6) connectors, used with the Logic Analyzer in Waveforms 2015 1)
  • 800MSps input sample rate when using maximum 8 inputs (and the High Speed Adapter), 400 MSps with maximum 16 inputs (with the High Speed Adapter), 200MSps and lower with maximum 32 inputs 2)
  • User programmable input and output LVCMOS voltage levels from 1.2V to 3.3V 3) (5V compatible 4) )
  • 100MHz signal input bandwidth
  • 2Gbit DDR3 acquisition buffer for Logic Analyzer
  • Multiple trigger options including pin change, bus pattern, etc 5)
  • Digital Bus Analyzers (SPI, I²C, UART, Parallel)

9.2. Multi-purpose Digital I/O

  • 16 digital I/Os arranged in two Pmod-style (2×6) connectors.
  • Each of the 16 pins can be configured for input (Logic analyzer) or set as output 6).
  • Algorithmic pattern generator (no buffers used) 7)
  • Custom pattern buffer/ch.: 32Ksamples
  • ROM Logic for implementing user defined Boolean functions and State Machines
  • Bus Protocol Controllers (SPI, UART, I²C)
  • 100MSps max. output sample rate (50MHz maximum output frequency).
  • Automatic or manual strength and slew settings for outputs. 8)
  • User programmable logic I/O levels from 1.2V to 3.3V (5V compatible) 9),10).

9.3. Other features

  • USB bus powered
  • User power supplies, 1.2V to 3.3V, available in the two Pmod-style connectors (100mA max)
  • Twisted wire high-speed cable option for input channels to insure signal integrity
  • Free Waveforms 2015 software runs on Windows, MacOS, and Linux
  • Cross-triggering between Logic Analyzer, Pattern Generator or external trigger
  • Data file import/export using standard formats
  • 80X80X25mm, 80g (without accessories)
  • includes: USB cable, fly-wire accessory

Written by Mircea Dabacan, PhD, Technical University of Cluj-Napoca Romania

1) , 6)
The 16 DIO lines are primarily intended for the Pattern Generator, protocol controllers and Static IO instruments. For user convenience, some or all of them can be used by the Logic Analyzer also (see footnote 2). However, DIO input circuitry is different compared to DIN. Even more, when driving a DIO pin with the Pattern Generator and reading it back with the Logic Analyzer, the signal is read at the FPGA pin and does not propagate trough the external DIO circuitry. Consequently, when combining DIN and DIO pins in the Logic Analyzer, misalignments can be observed, at high acquisition rate.
2)
Available combinations in WaveForms 2015:
  1. 200MHz, DIN0…23, DIO24…31
  2. 200MHz, DIO24…39, DIN0…15
  3. 400MHz, DIN0…15
  4. 400MHz, DIO24…39
  5. 800MHz, DIN0…7
  6. 800MHz, DIO24…31
3) , 8) , 9)
The FPGA DIN and DIO pins are set to LVCMOS18_JEDEC IOSTANDARD. The supply voltage of the associated FPGA banks is set (by user) to any value from 1.2V to 3.3V. The threshold level (at the FPGA pins) is about 45% of the bank supply voltage. For standard voltages of: 1.2V, 1.5V, 1.8V, 2.5V, 3.3V, the threshold levels (at the FPGA pins) are: 0.58V, 0.7V, 0.82V, 1.1V and 1.42V respectively.
4) , 10)
Setting the voltage to 3.3V, 5V logic inputs are tolerated but the input threshold is 1.42V. LVCMOS 3.3V output signals are compatible to most external logical circuits supplied with 5V.
5)
Trigger Detectors and Trigger Distribution Networks are implemented in the FPGA. This allows real time triggering and cross-triggering of different instruments within the Digital Discovery device. Using external Trigger inputs/outputs, cross-triggering between multiple Digital Discovery devices is possible.
7)
Real time implemented in the FPGA configuration.