Difference between revisions of "POD installation guide"

From ArmadeusWiki
Jump to: navigation, search
m (Generate package from subversion tree)
m
Line 39: Line 39:
 
</pre>
 
</pre>
 
* The POD package can be found in directory ''dist/''
 
* The POD package can be found in directory ''dist/''
 +
 +
== Using svn tree directly ==
 +
 +
on your branche tree add a symbolic link named periphondemand :
 +
<pre class="host">
 +
trunk/$ln -s src periphondemand
 +
</pre>
 +
 +
Modify the binary "pod" file to add the path :
 +
<pre class="host">
 +
vim src/bin/pod
 +
</pre>
 +
 +
Replace :
 +
<source lang="python">
 +
import periphondemand.bin.pod
 +
import sys
 +
periphondemand.bin.pod.main(sys.argv)
 +
</source>
 +
 +
By :
 +
<source lang="python">
 +
import os,sys
 +
sys.path.append("PATH_OF_YOUR_TRUNK/BRANCHE")
 +
import periphondemand.bin.pod
 +
periphondemand.bin.pod.main(sys.argv)
 +
</source>

Revision as of 10:17, 26 May 2009

Page under construction... 

Construction.png Informations on this page are not guaranteed !!

Prerequisites

mandatory

  • python : POD is written in python.
  • pyparsing : a python module to parse files.

optional

  • ghdl, gtkwave : it's not mandatory, POD can generate VHDL testbench ready for ghdl simulator. As it's standard VHDL, another simulator should work.
  • ISE Webpack : to generate synthesis project for Xilinx.
  • Quartus : to generate synthesis project for Altera.
  • ARMadeus SDK : to generate driver project for the Armadeus boards.

Install from package

Note Note: For this moment, package must be created from svn repository. Release will be downloadable soon
  • Decompress the package PeriphOnDemand-X.X.tar.gz in install directory:
$ cd somewhere/
$ tar -zxvf PeriphOnDemand-X.X.tar.gz
  • Walk through periphondemand/ directory:
$ cd periphondemand
  • Then install POD with root privilege:
 $ sudo python setup.py install

Generate package from subversion tree

  • Checkout the source code with following command (subversion is needed):
$ svn co https://periphondemand.svn.sourceforge.net/svnroot/periphondemand/trunk periphondemand
$ cd periphondemand/
  • Make python POD distribution:
$ python setup.py sdist
  • The POD package can be found in directory dist/

Using svn tree directly

on your branche tree add a symbolic link named periphondemand :

trunk/$ln -s src periphondemand

Modify the binary "pod" file to add the path :

vim src/bin/pod

Replace :

import periphondemand.bin.pod
import sys
periphondemand.bin.pod.main(sys.argv)

By :

import os,sys
sys.path.append("PATH_OF_YOUR_TRUNK/BRANCHE")
import periphondemand.bin.pod
periphondemand.bin.pod.main(sys.argv)