Skip to content

Commit 298f928

Browse files
committed
Start the openlane tutorial
1 parent 035ccfe commit 298f928

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

openlane.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Running an example design
2+
3+
This assumes that the smoke test runs and you've [installed OpenLane properly](installation.md).
4+
5+
You can run an example design called "SPM" by running:
6+
```
7+
openlane --run-tag foo --run-example spm
8+
```
9+
which will download the design, all technology files, and completely implement the design. Once
10+
done, all of the files are in the "spm" subdirectory. The run logs and outputs of the tools are in
11+
a directory with the current date and time like "spm/runs/RUN_2024-12-12_11-58-38".
12+
13+
Once you've run once, you can enter the directory and see the files:
14+
- config.yaml: The configuration of the design.
15+
- src: The directory with the Verilog source files.
16+
- run: The directory containing all runs, one per directory.
17+
- verify: The verification directory with Verilog test benches.
18+
19+
If you want to run again, you can specify the config file as an argument to OpenLane:
20+
```
21+
cd spm
22+
openlane config.yaml
23+
```
24+
25+
## Run directories and tags
26+
27+
If you want to to specify a run name like "foo", you can add the "--run-tag foo" to a command.
28+
This will put everything in "spm/runs/foo", but if you run again, you will either need to remove
29+
that directory to start over, or specify "--overwrite" on the command line:
30+
```
31+
openlane --run-tag foo config.yaml
32+
openlane --run-tag foo --overwrite config.yaml
33+
```
34+
35+
36+
## Viewing the final design
37+
38+
The --last-tag option is also a shortcut for the last run directory. To view the last design in
39+
the OpenROAD GUI, you can run:
40+
```
41+
openlane --flow OpenInOpenROAD --last-tag config.yaml
42+
```
43+
and you should see the following:
44+
![Default SPM project in OpenROAD GUI](openlane/openroad_gui_spm.png)
45+
46+
47+
48+

0 commit comments

Comments
 (0)