mirror of
https://github.com/VLSIDA/OpenRAM.git
synced 2026-08-30 01:48:33 +02:00
Update documentation for library
This commit is contained in:
@@ -34,17 +34,19 @@ This page of the documentation explains the basic usage of OpenRAM.
|
||||
If you have the library installed, you can use OpenRAM in any Python script. You can import "openram" as follows:
|
||||
```python
|
||||
import openram
|
||||
import globals
|
||||
globals.init_openram("myconfig.py") # Config files are explained on this page
|
||||
openram.init_openram("myconfig.py") # Config files are explained on this page
|
||||
# Now you can use modules from openram
|
||||
from openram import tech
|
||||
...
|
||||
```
|
||||
Note that you should import "openram" in this order so that the modules are imported properly. You can also look
|
||||
Note that you should need to initalize OpenRAM so that the modules are imported properly. You can also look
|
||||
at [sram_compiler.py](../../sram_compiler.py) as an example on how to use "openram."
|
||||
|
||||
|
||||
|
||||
## Command Line Usage (with library)
|
||||
You can run OpenRAM from the command line using the `sram_compiler.py` script that is included in the
|
||||
library's installation. You can find the package directory on a path like:
|
||||
You can run OpenRAM from the command line using the [sram_compiler.py](../../sram_compiler.py) script that is
|
||||
included in the library's installation. You can find the package directory on a path like:
|
||||
```
|
||||
/home/mrg/.local/lib/python3.8/site-packages/openram
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user