Difference: AMC13PythonSoftware (37 vs. 38)

Revision 3812 Mar 2015 - EricHazen

Line: 1 to 1
 
META TOPICPARENT name="HcalDTC"
Changed:
<
<
WARNING!!!! PyChips is no longer supported for IPbus v2.0 devices and higher. This, unfortunately, removes Python as a valid software interface to
  • Virtex FPGAs with firmware versions >0x25
  • Spartan FPGAs with firmware versions >0x11
  • All Kintex FPGAs
In summary, if you have been using Python releases, you will need to move to the uHAL-based AMC13 software. We apologize for the inconvenience!!

Releases

>
>
This page describes new (as of early 2015) python bindings to the AMC13 software. This is very much a work in progress, but at least one demo program now works.
 
Changed:
<
<

Installation

In order to use the Python software, you will need to have PyChips installed on your Scientific Linux machine. For instructions on how to obtain the PyChips libraries, visit the CACTUS Installation page.
>
>
See AMC13ObsoletePyChipsSoftware if for some reason you want the no-longer-supported PyChips based software.
 
Changed:
<
<
On a Scientific Linux system with PyChips installed:
>
>
The python code is included as of v1.1.0

The python code is installed with the regular package. Check out the code from SVN, go to the top level directory and execute:

  $ source env.sh
  $ make

There are some sample scripts in ...dev_tools/python. You'll need a connection file, which needs to reference the address table files distributed with the software. The way I handle this is to create a symbolic link to the ...etc/amc13 directory:

  $ cd .../dev_tools/python
  $ ln -s ../../amc13/etc/amc13 .

Then the connection file can use the symlink to find the address tables. Sample connection file:

 
Deleted:
<
<
  1. Download one of the above tarballs. For example:
       $ wget amc13_python_2013-01-31.tar.gz
       
  2. Unpack the tarball and make sure it decompressed successfully:
       $ tar -zxvf amc13_python_2013-01-31.tar.gz
       $ ls amc13_python_2013-01-31/
       addresstables_amc13  firmware_amc13  README.txt  src_amc13
       
  3. The software is now ready for use. For example, to run p_flash.py:
 
Changed:
<
<
$ cd amc13_python_2013-01-31/src_amc13 $ python p_flash.py
>
>
 
Changed:
<
<

AMC13 Python Software Links

Additional Links
amc13_control
p_flash
| Archived Software from old BU SVN
>
>
Finally you can run your script as follows:

  $ ./printversion.py connectionSN43_ch.xml
  Using AMC13 software ver:35051
  T1 firmware version 0x4016
  T2 firmware version 0x25

 
Changed:
<
<
-- EricHazen - 24 Jan 2012
>
>
-- EricHazen - 12 Mar 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