Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| nexys:nexysvideo:refmanual [2015/05/06 19:35] – [Power Supplies] Joshua Woldstad | nexys:nexysvideo:refmanual [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== **UNDER CONSTRUCTION** ====== | + | Wrong Namespace, don't edit this! |
| - | This wiki page is currently under construction, | + | Go to [[nexys-video: |
| - | Placeholders are also included on this page. | + | |
| - | + | ||
| - | ---- | + | |
| - | + | ||
| - | + | ||
| - | ====== Overview ====== | + | |
| - | + | ||
| - | {{ :nexys: | + | |
| - | + | ||
| - | The Nexys Video board is a complete, ready-to-use digital circuit development platform based on the latest Artix-7™ Field Programmable Gate Array (FPGA) from Xilinx. With its high-capacity FPGA (Xilinx part number XC7A200T-1SBG484C) – the largest Artix-7 die at the time of writing, generous external memories, high-speed digital | + | |
| - | + | ||
| - | + | ||
| - | The Artix-7 FPGA is optimized for high performance logic, and offers more capacity, higher performance, | + | |
| - | + | ||
| - | * 33,650 logic slices, each with four 6-input LUTs and 8 flip-flops | + | |
| - | * Close to 13 Mbits of fast block RAM (3x more than the Nexys 4 DDR) | + | |
| - | * Ten clock management tiles, each with phase-locked loop (PLL) | + | |
| - | * 740 DSP Slices | + | |
| - | * Internal clock speeds exceeding 450MHz | + | |
| - | * On-chip analog-to-digital converter (XADC) | + | |
| - | + | ||
| - | The Nexys Video also offers an improved collection of ports and peripherals, | + | |
| - | * 8 user switches | + | |
| - | * 8 user LEDs | + | |
| - | * 128x32 monochrome OLED display | + | |
| - | * USB-UART Bridge | + | |
| - | * 160-pin FMC LPC connector | + | |
| - | * Micro SD card connector | + | |
| - | * HDMI Sink and HDMI Source | + | |
| - | * DisplayPort Source | + | |
| - | * Audio codec w/ four 3.5mm jacks | + | |
| - | * 6 user push buttons | + | |
| - | * User EEPROM | + | |
| - | * 10/100/1000 Ethernet PHY | + | |
| - | * 512MiB 800Mt/s DDR3 | + | |
| - | * Serial Flash | + | |
| - | * Four Pmod ports | + | |
| - | * Pmod for XADC signals | + | |
| - | * Digilent Adept USB port for programming and data | + | |
| - | * USB HID Host for mice, keyboards and USB MSD Host | + | |
| - | + | ||
| - | + | ||
| - | In addition to being compatible with Xilinx’s ISE toolset, The Nexys Video also works with Xilinx’s the new high-performance Vivado | + | |
| - | + | ||
| - | + | ||
| - | {{ : | + | |
| - | + | ||
| - | | **Callout** | + | |
| - | |** 1** | Power select jumper and battery header | + | |
| - | | **2** | Adept USB (JTAG and UART) | **14** | + | |
| - | | **3** | External configuration jumper (SD / USB) | **15** | + | |
| - | | **4** | Pmod connector(s) | + | |
| - | |** 5** | Microphone | + | |
| - | | **6** | Power supply test point(s) | + | |
| - | | **7** | LEDs (16) | **19** | + | |
| - | | **8** | Slide switches | + | |
| - | | **9** | Eight digit 7-seg display | + | |
| - | | **10** | + | |
| - | | **11** | + | |
| - | | **12** | + | |
| - | + | ||
| - | + | ||
| - | ---- | + | |
| - | + | ||
| - | + | ||
| - | ====== Power Supplies ====== | + | |
| - | + | ||
| - | The Nexys Video board can receive power from an external power supply through the center-positive barrel jack (J21) or the two-pin battery header (J22). The external supply voltage must be 12 V ±5 %. The Nexys Video cannot be powered from the USB bus. | + | |
| - | + | ||
| - | All Nexys Video power supplies can be turned on and off by a single logic-level power switch (SW8). Enables of power supplies not connected directly to the power switch are disabled indirectly. A power-good LED (LD16), driven by the “power good” output of the on-board regulators, indicates that the supplies are turned on and operating normally. An overview of the Nexys Video power circuit is shown in Figure 1. | + | |
| - | + | ||
| - | {{: | + | |
| - | + | ||
| - | + | ||
| - | //Figure 1. Nexys Video power circuit// | + | |
| - | + | ||
| - | + | ||
| - | An external power supply can be used by plugging it into the power jack (J21). | + | |
| - | + | ||
| - | + | ||
| - | Instead of a wall supply an external battery pack can be used by connecting the battery’s positive terminal to the positive pin of J22 and the negative terminal to the negative pin. Incorrect polarity might cause permanent damage to the board. To power the Nexys Video and any peripheral other than an FMC mezzanine card using the 12P0V supply, the battery voltage must be in the 6-15 V range. Since the external power supply pin is wired directly to the 12P0V pin of the FMC connector, in FMC applications the battery voltage must be 12VDC ±5 %, the same as the wall supply specification. In any case, 15 V is an absolute maximum. | + | |
| - | + | ||
| - | + | ||
| - | Voltage regulator circuits from Analog Devices create the different voltages required by the FPGA and on-board peripherals from the main power input. Some regulators use the outputs of another regulator as input, depending on design considerations. In some cases this chaining helps in creating the proper power-on sequence for circuits. In other cases the chaining of power supply enables achieves the same purpose. | + | |
| - | + | ||
| - | + | ||
| - | Table 1 provides information on maximum and typical currents for each power rail. The typical currents strongly depend on FPGA configuration and the values provided are typical of medium size/speed designs. | + | |
| - | + | ||
| - | | **Supply** | + | |
| - | | 3.3 V | FPGA I/O, USB, FMC, Clocks, Pmod, Ethernet, SD slot, Flash, DisplayPort | + | |
| - | | 1.0 V | FPGA Core | IC26: ADP5052 | + | |
| - | | 1.8 V | FPGA Auxiliary | + | |
| - | | 1.5 V | DDR3 and FPGA I/O | IC26: ADP5052 | + | |
| - | | 2.5 V | FPGA I/O and Ethernet | + | |
| - | | VADJ (1.2-3.3 V) | User I/O, FMC and FPGA I/O | IC28: ADP2384 | + | |
| - | | 3.3 V | Audio analog supply | + | |
| - | | 5.0 V | USB Host, HDMI | IC30: ADP2370 | + | |
| - | | MGT 1.0 V | Gigabit Transceivers VCC | IC31: ADP123 | + | |
| - | | MGT 1.2 V | Gigabit Transceivers VTT | IC33: ADP123 | + | |
| - | | XADC 1.8 V | XADC supply | + | |
| - | //Table 1. Voltage rail power ratings// | + | |
| - | + | ||
| - | + | ||
| - | The VADJ power rail requires special attention. It is a programmable voltage rail that powers the FMC mezzanine connector, user push-buttons, | + | |
| - | + | ||
| - | An FPGA design can dynamically change the VADJ voltage to suit a certain FMC mezzanine card or application. Care must be taken to disable the regulator first by bringing “VADJ_EN” low, setting “SET_VADJ(1: | + | |
| - | + | ||
| - | + | ||
| - | | **SET_VADJ(1: | + | |
| - | | 00 (default) | + | |
| - | | 01 | 1.8 V | | + | |
| - | | 10 | 2.5 V | | + | |
| - | | 11 | 3.3 V | | + | |
| - | + | ||
| - | //Table 2. VADJ programmable voltages// | + | |
| - | + | ||
| - | + | ||
| - | ====== FPGA Configuration ====== | + | |
| - | + | ||
| - | After power-on, the Artix-7 FPGA must be configured (or programmed) before it can perform any functions. You can configure the FPGA in one of four ways: | + | |
| - | + | ||
| - | - A PC can use the Digilent USB-JTAG circuitry (port 12, labeled “PROG”) to program the FPGA any time the power is on. | + | |
| - | - A file stored in the nonvolatile serial (SPI) flash device can be transferred to the FPGA. | + | |
| - | - A programming file can be transferred to the FPGA from a micro SD card. | + | |
| - | - A programming file can be transferred from a USB mass-storage device (ex. pen drive) attached to the USB HID port. | + | |
| - | + | ||
| - | Figure 2 shows the different options available for configuring the FPGA. An on-board “mode” jumper (JP4) and a media selection jumper (JP3) select between the programming modes. | + | |
| - | + | ||
| - | {{: | + | |
| - | + | ||
| - | Figure 2. Nexys Video Configuration Options | + | |
| - | + | ||
| - | The FPGA configuration data is stored in files called bitstreams that have the .bit file extension. The ISE or Vivado software from Xilinx can create bitstreams from VHDL, Verilog, or schematic-based source files (in the ISE toolset, EDK is used for MicroBlaze™ embedded processor-based designs). | + | |
| - | + | ||
| - | Bitstreams are stored in volatile SRAM-based memory cells within the FPGA. This data defines the FPGA’s logic functions and circuit connections, | + | |
| - | + | ||
| - | An Artix-7 200T bitstream is typically 77,845,216 bits and can take a long time to transfer depending on the programming mode. The time it takes to program the Nexys Video can be decreased by compressing the bitstream before programming, | + | |
| - | + | ||
| - | Mode-specific speed-ups are also available. JTAG clock frequency can be set to the maximum supported by the programming cable in iMPACT/ | + | |
| - | + | ||
| - | After being successfully programmed, the FPGA will cause the " | + | |
| - | + | ||
| - | The following sections provide greater detail about programming the Nexys Video using the different methods available. | + | |
| - | + | ||
| - | ===== 2.1 JTAG Programming ===== | + | |
| - | + | ||
| - | The Xilinx tools typically communicate with FPGAs using the Test Access Port and Boundary-Scan Architecture, | + | |
| - | + | ||
| - | Programming the Nexys Video with an uncompressed bitstream using the on-board USB_JTAG circuitry usually takes around four seconds with a 30MHz JTAG clock. | + | |
| - | + | ||
| - | JTAG programming can be done using the hardware server in Vivado or the iMPACT tool included with ISE and the labtools version of Vivado. | + | |
| - | + | ||
| - | The demonstration project available at digilentinc.com gives an in depth tutorials on how to program your board. | + | |
| - | + | ||
| - | ===== 2.2 Quad-SPI Programming ===== | + | |
| - | + | ||
| - | For the FPGA to be able to configure itself from the SPI Flash, it first needs to be programmed with the bitstream. This is called indirect programming and is a two-step process controlled by Hardware Manager (Vivado) or iMPACT (ISE). First, the FPGA is programmed with a design that can program flash devices, and then data is transferred to the flash device via the FPGA circuit (this complexity is hidden from the user by the Xilinx tools). After the flash device has been programmed, it can automatically configure the FPGA at a subsequent power-on or reset event as determined by the mode jumper setting. Programming files stored in the flash device will remain until they are overwritten, | + | |
| - | + | ||
| - | Programming the flash can take as long as four to five minutes, which is mostly due to the lengthy erase process inherent to the memory technology. Once written however, FPGA configuration can be very fast, less than a second. Bitstream compression, | + | |
| - | + | ||
| - | Indirect programming of the flash can be done using the iMPACT tool included with ISE or Hardware Manager of Vivado. The correct part to be set in the tools is s25fl256xxxxxx0 from the manufacturer Spansion. | + | |
| - | + | ||
| - | + | ||
| - | ===== 2.3 USB Host and Micro SD Programming ===== | + | |
| - | + | ||
| - | You can program the FPGA from a pen drive attached to the USB-HID port (J15) or a microSD card inserted into J3 by doing the following: | + | |
| - | - Format the storage device (pen drive or microSD card) with a FAT32 file system. | + | |
| - | - Place a single .bit configuration file in the root directory of the storage device. | + | |
| - | - Attach the storage device to the Nexys Video. | + | |
| - | - Set the JP4 Programming Mode jumper on the Nexys Video to “USB/ | + | |
| - | - Select the desired storage device using JP3. | + | |
| - | - Push the PROG button or power-cycle the Nexys Video. | + | |
| - | + | ||
| - | The FPGA will automatically configure with the .bit file on the selected storage device. Any .bit files that are not built for the proper Artix-7 device will be rejected by the FPGA. | + | |
| - | + | ||
| - | The Auxiliary Function Status or “BUSY” LED (LD14) gives visual feedback on the state of the configuration process when the FPGA is not yet programmed: | + | |
| - | + | ||
| - | * When steadily lit the auxiliary microcontroller is either booting up or currently reading the configuration medium (microSD or pen drive) and downloading a bitstream to the FPGA. | + | |
| - | * A slow pulse means the microcontroller is waiting for a configuration medium to be plugged in. | + | |
| - | * In case of an error during configuration the LED will blink rapidly. It could be that the device plugged in is not getting recognized, it is not properly formatted or the bitstream is not compatible with the FPGA. | + | |
| - | + | ||
| - | When the FPGA is has been successfully configured, the behavior of the LED is application-specific. For example, if a USB keyboard is plugged in, a rapid short blink will signal the receipt of an HID input report from the keyboard. | + | |
| - | + | ||
| - | ---- | + | |
| - | + | ||
| - | ====== Memory ====== | + | |
| - | + | ||
| - | The Nexys Video board contains two external memories: a 512MiByte volatile DDR3 memory and a 32MiByte non-volatile serial Flash device. The DDR3 uses a 16-bit wide memory component soldered on the board with industry-standard interface. The serial Flash is on a dedicated quad-mode (x4) SPI bus. | + | |
| - | + | ||
| - | ---- | + | |
| - | + | ||
| - | + | ||
| - | ====== DDR3 ====== | + | |
| - | + | ||
| - | The Nexys Video includes one Micron MT41K256M16HA-187E DDR3 memory component creating a single rank, 16-bit wide interface. It is routed to a 1.5V-powered HR (High Range) FPGA bank with 50 ohm controlled single-ended trace impedance. 50 ohm internal terminations in the FPGA are used to match the trace characteristics. Similarly, on the memory side on-die terminations (ODT) are used for impedance matching. | + | |
| - | + | ||
| - | For proper operation of the memory a memory controller and physical layer (PHY) interface needs to be included in the FPGA design. The Xilinx 7-series memory interface solutions core generated by the MIG (Memory Interface Generator) Wizard hides away the complexities of a DDR3 interface. Depending on the tool used (ISE, EDK or Vivado) the MIG Wizard can generate a native FIFO-style or an AXI4 interface to connect to user logic. This workflow allows the customization of several DDR3 parameters optimized for the particular application. Table 2 below lists the MIG Wizard settings optimized for the Nexys Video. | + | |
| - | + | ||
| - | | **Setting** | + | |
| - | | Memory type | DDR3 SDRAM | | + | |
| - | | Max. clock period | + | |
| - | | Clock ratio | 4:1 | | + | |
| - | | Memory type | Components | + | |
| - | | Memory part | MT41K256M16HA-125 | + | |
| - | | Memory voltage | + | |
| - | | Data width | 16 | | + | |
| - | | Data mask | Enabled | + | |
| - | | Input clock period | + | |
| - | | Output driver impedance | + | |
| - | | Chip Select pin | Disabled | + | |
| - | | Rtt (nominal) – On-die termination | + | |
| - | | Internal Vref | Enabled | + | |
| - | | Internal termination impedance | + | |
| - | Table 3 DDR3 Settings for the Nexys Video | + | |
| - | + | ||
| - | + | ||
| - | The MIG Wizard will require the fixed pin-out of the memory signals to be entered and validated before generating the IP core. For your convenience an importable UCF/ | + | |
| - | + | ||
| - | For more details on the Xilinx memory interface solutions refer to the 7 Series FPGAs Memory Interface Solutions User Guide (ug586)¹. | + | |
| - | + | ||
| - | ---- | + | |
| - | + | ||
| - | + | ||
| - | ====== Quad-SPI Flash ====== | + | |
| - | + | ||
| - | Non-volatile storage is provided by a Spansion S25FL256S flash memory. FPGA configuration files can be written to it, and mode settings are available to cause the FPGA to automatically read a configuration from this device at power on. An Artix-7 200T configuration file requires just over 9 MiB (mebibyte) of memory, leaving about 70% of the flash device available for user data. Or, if the FPGA is getting configured from another source, the whole memory can be used for custom data. | + | |
| - | + | ||
| - | The contents of the memory can be manipulated by issuing certain commands on the SPI bus. The implementation of this protocol is outside the scope of this document. All signals in the SPI bus except SCK are general-purpose user I/O pins after FPGA configuration. SCK is an exception because it remains a dedicated pin even after configuration. Access to this pin is provided through a special FPGA primitive called STARTUPE2. | + | |
| - | + | ||
| - | **NOTE: Refer to the manufacturer’s data sheets² and Xilinx user guides³ for more information.** | + | |
| - | + | ||
| - | {{: | + | |
| - | + | ||
| - | Figure 3. Nexys Video SPI Flash pin-out | + | |

