Firmware%20for%20the%20CPLD%20on%20the%20RCU - PowerPoint PPT Presentation

About This Presentation
Title:

Firmware%20for%20the%20CPLD%20on%20the%20RCU

Description:

Normal text - click to edit. Firmware for the CPLD on the RCU ... defined time, a complete reconfiguring including clearing of configuratiopn ... – PowerPoint PPT presentation

Number of Views:45
Avg rating:3.0/5.0
Slides: 20
Provided by: johan80
Category:

less

Transcript and Presenter's Notes

Title: Firmware%20for%20the%20CPLD%20on%20the%20RCU


1
Firmware for the CPLD on the RCU
  • Kjetil Ullaland, Ketil Røed, Bjørn Pommeresche,
    Johan Alme

TPC Electronics meeting. CERN 13-14. Jan 2005
2
Overview
  • Requirements
  • Concepts of configuration
  • Proposed design
  • Modules
  • RCU bus interface
  • SelectMap interface
  • Flash interface
  • Readback and verification module
  • JTAG input block
  • CPLD
  • Status

3
Requirements
4
Requirements
  • Configure the Virtex-II on power-up
  • Scrubbing of the Virtex-II from Flash
  • Write configuration-files to the Flash from the
    DCS-card
  • Readback and verify configuration memory in
    Virtex-II with stored files in Flash.
  • Configure Virtex-II from DCS-card.
  • Configure the CPLD firmware
  • Status registers in the CPLD for Config-status,
    verification etc.
  • Possibility to load data into flash memory when
    DCS board is detached.

5
Concepts of Configuration
  • A mode register to choose different concepts of
    configuration (in memory mapped mode)
  • 0 Scrub At Will
  • 1 Continously Scrubbing
  • 2 readback/verify
  • 3 Clear config memory and configure.
  • 4 read flash
  • 5 read config memory
  • Transport data interface
  • Write configuration files to flash
  • Read configuration files from flash
  • Write configuration to Virtex-II
  • Read configuration from Virtex-II
  • JTAG line to be able to configure Flash.

6
Proposed Design
7
Proposed Design (2)
  • Two bus modes between DCS and CPLD
  • Transport data interface. For configuration data
    streams.
  • Normal mode. Memory mapped interface for status
    and control.
  • Both modes using RCU bus lines.
  • One control line (DCS_ctrl7) is used to switch
    between the different modes.

8
Mem mapped mode vs transport data IF
Memory mapped mode
Fast mode
9
CPLD Register Map Mem mapped mode
  • Status register
  • Readback/verification errors (4 bit)
  • Scrub error (1 bit)
  • Config error (1 bit)
  • Flash Communication error (1 bit)
  • Control register
  • Mode of operation (3 bit)
  • StartScrub
  • WDMaxValue Watch dog max value
  • ScrubRate Time between each scrub cycle in
    scrubmode.
  • FlashBank Possibility to choose bank in flash
    where configuration file is.
  • selMapData Data to/from the selectMap interface
  • flashData Data to/from the flash

10
Error handling
  • Watchdog
  • If Virtex-II doesnt give a life-pulse within a
    user-defined time, a complete reconfiguring
    including clearing of configuratiopn memory is
    done (hard reset)
  • Timeout of bus communication
  • If a write cycle fail on the RCU bus lines, go to
    default mode
  • Automatic scrubbing if readback/verification
    error.

11
RCU bus interface (memory mapped mode)
  • Standard memory mapped interface with timeout
    functionality on bus communication.
  • Use RCU bus lines between DCS and CPLD.

12
Transport data interface
  • Use RCU bus lines between DCS and CPLD.

13
Selectmap interface
  • Communicates with the Virtex-II over the
    selectMap bus.
  • Complete configuring cycle with non-continuous
    clock shown.

14
Selectmap interface
  • Receives data from two sources
  • 32 bits of data from the DCS board
  • 16 bits of data from the Flash memory interface.
  • Data must be bitswapped byte by byte. (bin or bit
    file is used.)
  • Ships data to two data sources
  • DCS board, 32 bit at the time
  • Readback and verification module, 8 bit at the
    time

15
Flash interface
  • Read or write data from/to the flash memory over
    the dedicated bus.
  • 16 bit data
  • 22 bit address
  • 5 control lines
  • 3 files must be stored in flash
  • Bin-file (or bit-file). Configuration data file.
  • Rbb-file. File used for readback and
    verification. Copy of the bitstream.
  • Msk-file. File used for readback and
    verification. Mask out bits that should not be
    compared between the rbb-file and the readback
    bitstream.
  • All files are approx 368 KB

16
Readback and verification module
  • Compares the bitstream from selectMap interface
    with the rbb-file and msk-file in the flash.
  • RBBi MSKi x DATAi
  • If error is found, a scrubbing cycle is initiated
    immidiately, and the error counter is updated.

17
JTAG input block
  • Translates information from the JTAG input and
    ships it to the Flash interface to write bin-file
    to the flash.

18
Choice of CPLD
  • Configuration memory must be flash based.
  • Approx max Size (registers)
  • Registermap 75
  • statemachines 32
  • addr latch 4
  • data latch 32
  • wd cnt 30
  • scrubrate cnt 30
  • Flash addr cnt 44
  • Timeout cnt 4
  • Synchronizers 3
  • Framecounters 20
  • SUM 300
  • One register per macrocell means we need at least
    300 macrocells.

19
Status
  • Preliminary specifications are finished.
  • Some issues need further investigation.
  • Readback and verification
  • Partial reconfiguration
Write a Comment
User Comments (0)
About PowerShow.com