VLSIDA / OpenRAM

An open-source static random access memory (SRAM) compiler.

Home Page:http://www.openram.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

installaion problem and configuratiom problem

haotommy opened this issue · comments

tommy@tommy-virtual-machine:$ sudo apt install ngspice
tommy@tommy-virtual-machine:
$ sudo apt-get install python3
tommy@tommy-virtual-machine:$ sudo apt install python3-pip
tommy@tommy-virtual-machine:
$ pip3 install numpy
tommy@tommy-virtual-machine:$ pip3 install coverage
tommy@tommy-virtual-machine:
$ pip3 install scikit-learn
tommy@tommy-virtual-machine:$ sudo apt update
tommy@tommy-virtual-machine:
$ sudo apt install git
tommy@tommy-virtual-machine:$ sudo apt-get update
tommy@tommy-virtual-machine:
$ sudo apt-get install make
tommy@tommy-virtual-machine:~$ vim .bashrc
(Below are the environment variables I added.
export OPENRAM_HOME="$HOME/OpenRAM/compiler"
export OPENRAM_TECH="$HOME/OpenRAM/technology"
export PYTHONPATH="$PYTHONPATH:$OPENRAM_HOME"
export PYTHONPATH="$OPENRAM_HOME:$OPENRAM_TECH/sky130:$OPENRAM_TECH/sky130/custom"
export CONDA_HOME="$HOME/path/to/conda/setup")
It's the CONDA_HOME bash right?


tommy@tommy-virtual-machine:~/OpenRAM$ ./install_conda.sh
It will get
./install_conda.sh: line 33: conda: command not found


myconfig:

Data word size

word_size = 64

Number of words in the memory

num_words = 64

Technology to use in $OPENRAM_TECH

tech_name = "scn4m_subm"

You can use the technology nominal corner only

nominal_corner_only = True

Or you can specify particular corners

Process corners to characterize

process_corners = ["SS", "TT", "FF"]

Voltage corners to characterize

supply_voltages = [ 3.0, 3.3, 3.5 ]

Temperature corners to characterize

temperatures = [ 0, 25, 100]

Output directory for the results

output_path = "64*64"

Output file base name

output_name = "sram_{0}{1}{2}".format(word_size,num_words,tech_name)

Disable analytical models for full characterization (WARNING: slow!)

analytical_delay = False

Go back to terminal:
tommy@tommy-virtual-machine:~$ python3 $OPENRAM_HOME/../sram_compiler.py myconfig
ERROR: file globals.py: line 326: Unable to read configuration file: /home/tommy/myconfig
Traceback (most recent call last):
File "/home/tommy/OpenRAM/compiler/globals.py", line 324, in read_config
config = importlib.import_module(module_name)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'myconfig'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/tommy/OpenRAM/compiler/../sram_compiler.py", line 42, in
openram.init_openram(config_file=args[0])
File "/home/tommy/OpenRAM/compiler/globals.py", line 186, in init_openram
read_config(config_file, is_unit_test)
File "/home/tommy/OpenRAM/compiler/globals.py", line 326, in read_config
debug.error("Unable to read configuration file: {0}".format(config_file), 2)
File "/home/tommy/OpenRAM/compiler/debug.py", line 47, in error
assert return_value == 0
AssertionError

Why it error?
Or I enter the command in wrong file?


I have been looking at GitHub, but I am having trouble understanding it.
Could you please record a video tutorial for installing OpenRAM and running simulations with .sp files?
I'm having trouble understanding the process from GitHub, no matter how much I try to follow the instructions.

There seems to be an error installing conda on your system since it can't find conda.

I can't tell from what you have shown. Are there any messages?

Don't set CONDA_HOME unless you need to locate it somewhere else. That path probably doesn't exist?

You don't need to set CONDA_HOME. It's an optional variable if you have multiple conda environments for OpenRAM, or want to install conda somewhere outside the OpenRAM directory.

Don't set CONDA_HOME. Also, that is probably an invalid path.

In the current directory under miniconda:

CONDA_HOME="${CONDA_HOME:-miniconda}"

You have a network problem and it cannot download things.

This is beyond the scope of OpenRAM. You haven't installed any of them because they didn't download.