I'm a little stuck on this section of the caravel ...
# caravel
t
I'm a little stuck on this section of the caravel installation instructions
Copy code
cd <project_name> # project_name is the name of your repo

mkdir dependencies

export OPENLANE_ROOT=$(pwd)/dependencies/openlane_src # you need to export this whenever you start a new shell

export PDK_ROOT=$(pwd)/dependencies/pdks # you need to export this whenever you start a new shell

# export the PDK variant depending on your shuttle, if you don't know leave it to the default

# for sky130 MPW shuttles....
export PDK=sky130A

# for the gf180 GFMPW shuttles...
export PDK=gf180mcuC



make setup
I tried to follow this but I don't have
volare
and the installation doesn't seem to be working for me.
Copy code
tom@tom-desktop:~/repos/projects/caravel_user_project$ sudo apt-get install python3 python3-pip xz-utils
[sudo] password for tom: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
python3 is already the newest version (3.10.6-1).
python3-pip is already the newest version (22.2+dfsg-1ubuntu0.2).
xz-utils is already the newest version (5.2.5-2.1).
xz-utils set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 200 not upgraded.
tom@tom-desktop:~/repos/projects/caravel_user_project$ python3 -m pip install --upgrade --no-cache-dir volare
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: volare in /home/tom/.local/lib/python3.10/site-packages (0.7.3)
Requirement already satisfied: requests<3,>=2.27.0 in /home/tom/.local/lib/python3.10/site-packages (from volare) (2.31.0)
Requirement already satisfied: rich<13,>=12 in /home/tom/.local/lib/python3.10/site-packages (from volare) (12.6.0)
Requirement already satisfied: pcpp<2,>=1.2 in /home/tom/.local/lib/python3.10/site-packages (from volare) (1.30)
Requirement already satisfied: click<9,>=8.0.0 in /usr/lib/python3/dist-packages (from volare) (8.0.3)
Requirement already satisfied: pyyaml<7,>=5 in /usr/lib/python3/dist-packages (from volare) (5.4.1)
Requirement already satisfied: certifi>=2017.4.17 in /home/tom/.local/lib/python3.10/site-packages (from requests<3,>=2.27.0->volare) (2023.5.7)
Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/lib/python3/dist-packages (from requests<3,>=2.27.0->volare) (1.26.9)
Requirement already satisfied: charset-normalizer<4,>=2 in /home/tom/.local/lib/python3.10/site-packages (from requests<3,>=2.27.0->volare) (3.1.0)
Requirement already satisfied: idna<4,>=2.5 in /home/tom/.local/lib/python3.10/site-packages (from requests<3,>=2.27.0->volare) (3.4)
Requirement already satisfied: pygments<3.0.0,>=2.6.0 in /home/tom/.local/lib/python3.10/site-packages (from rich<13,>=12->volare) (2.15.1)
Requirement already satisfied: commonmark<0.10.0,>=0.9.0 in /home/tom/.local/lib/python3.10/site-packages (from rich<13,>=12->volare) (0.9.1)
tom@tom-desktop:~/repos/projects/caravel_user_project$ volare --version
volare: command not found
In any event, as @Tim Edwards said since I have already installed the PDK I shouldn't need volare anyway but my understanding is that caravel's
make setup
also installs caravel lite and the management core so how to I do that without having to install
volare
? can I just...
Copy code
export OPENLANE_ROOT=/home/tom/repos/edatools/Openlane
export PDK_ROOT=/home/tom/repos/edalibs/pdks/gf180mcu
export PDK=gf180mcuC
followed by make setup?
i
The
volare
script should live in
~/.local/bin
. If it's there, add that directory to your
PATH
variable
t
thanks, @Ioannis. Can I do this without volare though? I already have the PDK installed and would rather point to the same one I'm using to build mu custom cells
i
I have only ever used the caravel_user_project repo with volare, so I will defer to somebody who has actually tried what you want to do 🙂
👍 1
m
make setup
executes the following targets:
install check-env install_mcw openlane pdk-with-volare setup-timing-scripts
You can try executing these in order, but skipping
pdk-with-volare
. Be warned that some of these targets delete existing directories before creating new ones. If you’ve modified anything, I suggest backups in totally different directories.
t
Thanks @Mitch Bailey I managed to work around the issue for now but I will note that in case I need to do that again