Datasets:

Languages:
English
ArXiv:
License:
overmach commited on
Commit
7e11bfc
·
verified ·
1 Parent(s): 531d1b5

After-acceptance update

Browse files
Files changed (1) hide show
  1. README.md +82 -0
README.md ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - reinforcement-learning
5
+ language:
6
+ - en
7
+ tags:
8
+ - eda
9
+ - analog
10
+ - rl
11
+ pretty_name: OSIRIS Dataset
12
+ ---
13
+
14
+ # OSIRIS: Bridging Analog Layout Circuit Design and Machine Learning with Scalable Dataset Generation
15
+
16
+ **OSIRIS** is an end-to-end analog circuit design pipeline capable of producing, validating, and evaluating large volumes of layouts for generic analog circuits.
17
+
18
+ The [OSIRIS 🤗 HuggingFace repository](https://huggingface.co/datasets/anonymousUser2/osiris) hosts the randomly generated dataset discussed in the paper.
19
+
20
+ This codebse provides the OSIRIS Python script (`osiris.py`) and the Python friendly version of the SkyWater 130nm PDK (`SKY130_PDK`) along with the necessary files to perform place and route operations (in `schematic2layout` folder).
21
+
22
+ - **Curated by:** hardware-fab
23
+ - **License:** Open Data Commons License [cc-by-4.0](https://huggingface.co/datasets/choosealicense/licenses/blob/main/markdown/cc-by-4.0.md)
24
+
25
+ ## How to Download
26
+ The code is stored in `osiris_code.zip` while the dataset is stored in `Osiris_Dataset.zip`.
27
+ ```python
28
+ from huggingface_hub import hf_hub_download
29
+
30
+ file_path = hf_hub_download(
31
+ repo_id="hardware-fab/osiris",
32
+ filename=<filename_to_download>,
33
+ repo_type="dataset",
34
+ local_dir=<download_path>
35
+ )
36
+ ```
37
+
38
+ Where `<filename_to_download>` is either `osiris_code.zip` or `Osiris_Dataset.zip` and `<download_path>` is the path to your local folder.
39
+
40
+ ## Installation
41
+ To run OSIRIS a suite of tools is necessary.
42
+
43
+ ### Netgen
44
+ Netgen is used to carry out Layout Versus Schematic (LVS). We use version `1.5.293`.
45
+ To install it, please refer to the official GitHub [repository](https://github.com/RTimothyEdwards/netgen).
46
+
47
+ ### Magic
48
+ Magic is used to perform Parasitic Extraction (PEX). We use version `8.3.497`.
49
+ To install it, please refer to the official GitHub [repository](https://github.com/RTimothyEdwards/magic).
50
+
51
+ ### Ngspice
52
+ Ngspice is used to perform simulations. We use version `ngspice-43`.
53
+ To install it, please refer to the official [website](https://ngspice.sourceforge.io/).
54
+
55
+ ### SkyWater 130nm PDK
56
+ To install the SkyWater 130 nm PDK used throughout the research, please refer to the official [GitHub repository](https://github.com/google/skywater-pdk).
57
+ These PDK files are used by Netgen, Magic, and Ngspice to perform LVS, PEX, and simulation respectively. While the `SKY130_PDK` files are
58
+ a Python friendly version of the SkyWater 130nm PDK to perform the place and route operations.
59
+
60
+ ## Usage
61
+ You will need to adjust a few paths to your working setup.
62
+ - in each testbench: the path pointing to SkyWater simulation libraries, i.e., `sky130A/libs.tech/ngspice/sky130.lib.spice`.
63
+ - in `config.py`: the `WD` path variable.
64
+ - in `0_alter_nf.py`: the `base_path` path variable.
65
+ - in `pex.sh`: the path pointing to SkyWater root, i.e., `sky130A`.
66
+ - in `1_reroute_sch2lay.sh`: the path pointing to `SKY130_PDK`.
67
+
68
+ Then you will need to compute the fingers permutations.
69
+ To do so, refer to the `2_flow/0_alter/0_alter_nf.py` script.
70
+
71
+ To experiment with OSIRIS, use the `osiris.py` file.
72
+
73
+ To perform random exploration of circuit design space, set:
74
+
75
+ > EXPLORATION_MODE = 'dataset'
76
+
77
+ To perform the RL-driven exploration baseline of layout design space reported in the paper, set:
78
+
79
+ > EXPLORATION_MODE = 'rl'
80
+
81
+ ## Note
82
+ This repository is protected by copyright and licensed under the Apache-2.0 license.