mirror of https://github.com/VLSIDA/OpenRAM.git
Update README and setpaths with new PYTHONPATH
This commit is contained in:
parent
c406e2a9da
commit
5ad97aa636
|
|
@ -53,19 +53,16 @@ You must set two environment variables:
|
||||||
+ OPENRAM\_HOME should point to the compiler source directory.
|
+ OPENRAM\_HOME should point to the compiler source directory.
|
||||||
+ OPENERAM\_TECH should point to one or more root technology directories (colon separated).
|
+ OPENERAM\_TECH should point to one or more root technology directories (colon separated).
|
||||||
|
|
||||||
|
You should also add OPENRAM\_HOME to your PYTHONPATH.
|
||||||
|
|
||||||
For example add this to your .bashrc:
|
For example add this to your .bashrc:
|
||||||
|
|
||||||
```
|
```
|
||||||
export OPENRAM_HOME="$HOME/openram/compiler"
|
export OPENRAM_HOME="$HOME/openram/compiler"
|
||||||
export OPENRAM_TECH="$HOME/openram/technology"
|
export OPENRAM_TECH="$HOME/openram/technology"
|
||||||
```
|
|
||||||
|
|
||||||
You should also add OPENRAM\_HOME to your PYTHONPATH:
|
|
||||||
|
|
||||||
```
|
|
||||||
export PYTHONPATH=$OPENRAM_HOME
|
export PYTHONPATH=$OPENRAM_HOME
|
||||||
```
|
```
|
||||||
|
|
||||||
Note that if you want symbols to resolve in your editor, you may also want to add the specific technology
|
Note that if you want symbols to resolve in your editor, you may also want to add the specific technology
|
||||||
directory that you use and any custom technology modules as well. For example:
|
directory that you use and any custom technology modules as well. For example:
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,3 @@
|
||||||
export OPENRAM_HOME="`pwd`/compiler"
|
export OPENRAM_HOME="`pwd`/compiler"
|
||||||
export OPENRAM_TECH="`pwd`/technology"
|
export OPENRAM_TECH="`pwd`/technology"
|
||||||
export PYTHONPATH=$OPENRAM_HOME
|
export PYTHONPATH=$OPENRAM_HOME
|
||||||
for dir in `pwd`/compiler/*
|
|
||||||
do
|
|
||||||
if [ -d $dir ]; then
|
|
||||||
export PYTHONPATH=$PYTHONPATH:$dir
|
|
||||||
fi;
|
|
||||||
done
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue