Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added target for openlane flow #245

Merged
merged 3 commits into from
Nov 17, 2021
Merged

Added target for openlane flow #245

merged 3 commits into from
Nov 17, 2021

Conversation

microSharjeel
Copy link
Contributor

Hi Sir,
This PR has changes for target for OpenLane flow. This target first starts the Docker container and then runs the flow for asic soc.
Things to be addressed next include,

  1. Inclusion of this Makefile into asic.mk .... hardware.mk.....system.mk flow so that system.mk should be able to call this Makefile.
  2. In this Makefile I am using example design from openlane for test only. For iob-soc I need to pass the VSRC and VHDR variables to the flow.tcl
    regards


In order to run OpenLane from Makefile provided in the hardware/asic/skywater folder, you need to export following environment variable.
```bash
export OPENLANE_DIRECTORY=<path to OpenLane root directory>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest OPENLANE_HOME

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed accordingly

@@ -62,9 +61,16 @@ sudo usermod -aG docker $USER
```bash
newgrp docker
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't get this: the group has been created already. Isn't it created when you install docker?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No sir the make in openlane will not do this .......... I was stuck at this point ......... it is important

```bash
make mount
```
The "make mount" command opens up a bash terminal in which you run the following tcl script to generate a design configuration of your design:
```bash
flow.tcl -design design_name -init_design_config
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

show the bash prompt here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

#soc flow for OpenLane
soc:
cd $(OPENLANE_DIRECTORY) && \
$(DOK_CMD) sh -c "./flow.tcl -design APU --init_design_config -overwrite"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this an alternative to moving into the directory ? Why have both?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now it is ok as u said in hangout conversation

```bash
make mount
```
The "make mount" command opens up a bash terminal in which you run the following tcl script to generate a design configuration of your design:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In which line in the README the user is instructed to create the design files? Where should the user put them?

Copy link
Contributor Author

@microSharjeel microSharjeel Nov 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have provided the required explanation i will update the PR soon

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kindly check changes

@@ -1,19 +1,26 @@
#Makefile for OpenLane and OpenRAM started on 2/11/21

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ROOT_DIR=../../..

need this so your makefile can find root

@jjts
Copy link
Contributor

jjts commented Nov 16, 2021

also add debug target to display variables

@jjts jjts merged commit 288ea67 into IObundle:asic Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants