Hi I am new to OpenRAM and try to tun an example ....
# openram
m
Hi I am new to OpenRAM and try to tun an example . i get the following errors:
Copy code
mihaih@mihaih-Lenovo:~/vlsi/SRAM_SKY130/OpenRAM$ echo $OPENRAM_HOME
home/mihaih/vlsi/OpenRAM/compiler
mihaih@mihaih-Lenovo:~/vlsi/SRAM_SKY130/OpenRAM$ echo $OPENRAM_TECH
/home/mihaih/OpenRAM/technology
mihaih@mihaih-Lenovo:~/vlsi/SRAM_SKY130/OpenRAM$ echo $PYTHONPATH
home/mihaih/vlsi/OpenRAM/compiler:/home/mihaih/OpenRAM/technology/sky130A
mihaih@mihaih-Lenovo:~/vlsi/SRAM_SKY130/OpenRAM$ python3 $OPENRAM_HOME/openram.py myconfig_sky130.py 
python3: can't open file '/home/mihaih/vlsi/SRAM_SKY130/OpenRAM/home/mihaih/vlsi/OpenRAM/compiler/openram.py': [Errno 2] No such file or directory
mihaih@mihaih-Lenovo:~/vlsi/SRAM_SKY130/OpenRAM$ python3 $OPENRAM_HOME/openram.py myconfig_sky130.py 
python3: can't open file '/home/mihaih/vlsi/SRAM_SKY130/OpenRAM/home/mihaih/vlsi/OpenRAM/compiler/openram.py': [Errno 2] No such file or directory
mihaih@mihaih-Lenovo:~/vlsi/SRAM_SKY130/OpenRAM$ python3 /home/mihaih/vlsi/OpenRAM/compiler/openram.py myconfig_sky130.py 
ERROR: file globals.py: line 435: $OPENRAM_HOME does not exist: /home/mihaih/vlsi/SRAM_SKY130/OpenRAM/home/mihaih/vlsi/OpenRAM/compiler
Traceback (most recent call last):
  File "/home/mihaih/vlsi/OpenRAM/compiler/openram.py", line 35, in <module>
    g.init_openram(config_file=args[0], is_unit_test=False)
  File "/home/mihaih/vlsi/OpenRAM/compiler/globals.py", line 198, in init_openram
    setup_paths()
  File "/home/mihaih/vlsi/OpenRAM/compiler/globals.py", line 435, in setup_paths
    debug.check(os.path.isdir(OPENRAM_HOME),
  File "/home/mihaih/vlsi/OpenRAM/compiler/debug.py", line 33, in check
    assert 0
AssertionError
Thanks.
m
Which version are you using? I suggest using the dev branch. It's best to follow these instructions which have been updated recently: https://github.com/VLSIDA/OpenRAM/blob/dev/docs/source/basic_usage.md In particular, the docker image is highly recommended.
m
Thanks, I will check the link, meanwhile ... How do I find the version? I installed by coping the git repo and run
make build
from docker folder.
m
git log will tell you at the top
git checkout dev to switch to the dev version
m
I see v1.2.0 is this usefull?
m
You are using stable, not dev
m
OK, maybe stupid question : I need to reinstall cloning again the Git repo after setting to dev? or just running the
make build
after setting to dev?
m
Yes, you will likely need to reinstall again. You may need to do "make wipe" to remove the previous libraries. This will delete PDK_ROOT and other repos that it fetched. Be prepared to Ctrl-C if you don't like the paths that will be deleted