Difference: AMC13AddressTable (5 vs. 6)

Revision 628 May 2015 - EricHazen

Line: 1 to 1
The AMC13 register set (and associated uHAL address table) is complex. This page attempts (will attempt!)
to document it.
to document it. The address table files are used for access to the board in software, and also used to automatically control the display and format of status information in the text "status" command in AMC13Tool2 and the HyperDAQ display in xDAQ.

Address Table Format

  The master address table is kept as two CSV files, one for the T1 board and one for the T2 board. Most registers of interest are on T1. The CSV files are here in SVN. The T1 top-level table is named AMC13XG_Kxxxx.csv with the firmware versions in the name. It "includes" using the XML "module" syntax the sub-file AMCCounters.xml.
Line: 52 to 56
  The csv file is converted to XML by a perl script in the above directory named csv_to_xml.pl.
-- EricHazen - 14 Aug 2014

Updating the Address Table

Here are the steps to make a change to the address table:

1. Check out AMC13 software package and build:

    $  svn co svn+ssh://svnuser@svn.cern.ch/reps/cactus/trunk/cactusupgrades/boards/amc13/software/amc13   
    $  cd amc13
    $  source env.sh   # or possibly .csh
    $  make            # possibly needed twice first time

      (substitute your CERN user name for svnuser)

2. Identify the file which needs to be changed. There are several "source" CSV-format files. To identify the version number currently in use see the Makefile. The following files are used:

  AMC13XG_T1_version.csv       general Kintex/Virtex registers
  AMCCounters.csv              counters for each AMC
  AMCLinks.csv                 link status for each AMC
  AMC13XG_T2_version.csv       general Spartan registers

3. Edit the file using OpenOffice/LibreOffice spreadsheet (or in an emergency carefully use a text editor):

  $ soffice FileToEdit.csv

In the "Text Import" dialog box be certain to check "Comma" in Separated by and "Quoted field as text".

Edit the file, observing carefully the parameter use as documented at the top of this page.

4. Save the file. Select "Save using CSV Format".

5. Generate new XML files by typing "make"

  $ make
  perl csv_expand_repeat.pl AMCLinks.csv temp.csv
  perl csv_to_xml.pl temp.csv ../../../amc13/etc/amc13/AMCLinks.xml
  Loaded 32 rows, 12 columns from temp.csv

-- EricHazen - 28 May 2015

This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback