POD installation guide: Difference between revisions

From ArmadeusWiki
(New page: {{Under_Construction}} <strike> Before using POD you must verify that Python is installed on your computer. <source lang="bash"> $ python Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)...)
 
No edit summary
Line 1: Line 1:
  {{Under_Construction}}
== prerequisites ==
=== mandatory ===
* python : POD is written in python.
=== optional ===
* ghdl, gtkwave : it's not mandatory, POD can generate VHDL testbench ready for ghdl simulator, but it's standard VHDL then another simulator should work.
* ISE Webpack : to generate synthesis project for xilinx.
* Quartus : to generate synthesis project for altera.
* ARMadeus : to generate driver project for armadeus board.


<strike>
== install from package ==
Before using POD you must verify that Python is installed on your computer.
Decompress the package PeriphOnDemand-X.X.tar.gz in install directory:
<source lang="bash">
<pre class="host">
$ python
$ tar -zxvf PeriphOnDemand-X.X.tar.gz
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
</pre>
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
</source>


If you get a «command not found», install it.
Walk through periphondemand/ directory:
[http://wiki.python.org/moin/BeginnersGuide/Download]
<pre class="host">
$ cd periphondemand
</pre>


To install POD, simply unpack the archive in the directory of your choice:
Then install POD with root privilege:
tar -zxvf pod-r75.tar.gz
<pre class="host">
root$> python setup.py install
</pre>


Then open ''pod/bin/define.py'' file to modify the binary path :
== generate package from subversion tree ==
<source lang="python">
...
#global
BINARYPATH="path_to_pod/pod"
...
</source>


To simulate a project with ''ghdl'' you will need ghdl and gtkwave:
Checkout the source code with command (subversion is needed):
<source lang="bash">
<pre class="host">
sudo apt-get install ghdl gtkwave
$svn co https://periphondemand.svn.sourceforge.net/svnroot/periphondemand periphondemand
</source>
</pre>


To synthesize the project for a Xilinx FPGA, the ISE Webpack is required, see [http://www.xilinx.com/].
Make python POD distribution:


And to compile the drivers for an ARMadeus platform, you will need the ARMadeus toolchain correctly configured, see [http://www.armadeus.com/wiki/index.php?title=Toolchain].
<pre class="host">
</strike>
$python setup.py sdist
</pre>
 
The POD package can be found in directory dist/

Revision as of 17:45, 24 April 2009

prerequisites

mandatory

  • python : POD is written in python.

optional

  • ghdl, gtkwave  : it's not mandatory, POD can generate VHDL testbench ready for ghdl simulator, but it's standard VHDL then another simulator should work.
  • ISE Webpack : to generate synthesis project for xilinx.
  • Quartus : to generate synthesis project for altera.
  • ARMadeus : to generate driver project for armadeus board.

install from package

Decompress the package PeriphOnDemand-X.X.tar.gz in install directory:

$ tar -zxvf PeriphOnDemand-X.X.tar.gz

Walk through periphondemand/ directory:

$ cd periphondemand

Then install POD with root privilege:

root$> python setup.py install

generate package from subversion tree

Checkout the source code with command (subversion is needed):

$svn co https://periphondemand.svn.sourceforge.net/svnroot/periphondemand periphondemand

Make python POD distribution:

$python setup.py sdist

The POD package can be found in directory dist/