hey all, i'm unable to get `make setup` to work wh...
# gf180mcu
k
hey all, i'm unable to get
make setup
to work when cloning the
gfmpw-1c
branch (as mentioned here https://efabless.com/gf-180-open-mpw-shuttle-program) it fails with this:
Copy code
kris@kris-desktop:~/repos/diy-ic/caravel_user_project$ make setup
/bin/sh: 1: cd: can't cd to verilog/dv/cocotb
/bin/sh: 1: cd: can't cd to verilog/dv/cocotb
Makefile:100: warning: undefined variable 'CARAVEL_NAME'
Makefile:101: warning: undefined variable 'CARAVEL_TAG'
Makefile:101: warning: undefined variable 'CARAVEL_REPO'
if [ -d "/home/kris/repos/diy-ic/caravel_user_project/caravel" ]; then\
        echo "Deleting exisiting /home/kris/repos/diy-ic/caravel_user_project/caravel" && \
        rm -rf /home/kris/repos/diy-ic/caravel_user_project/caravel && sleep 2;\
fi
echo "Installing .."
Installing ..
git clone -b   /home/kris/repos/diy-ic/caravel_user_project/caravel --depth=1
fatal: You must specify a repository to clone.
any help would be great, thank you :)
nevermind, turns out i had done
export PDK=gf180mcuC
when following https://github.com/efabless/caravel_user_project/blob/main/docs/source/index.rst#section-quickstart , i'm guessing that
gf180mcuD
is the right one, based on the makefile
m
Exactly. Let us know if you have other problems.
k
so i'm able to run
make setup
with
PDK=gf180mcuD
, but if i attempt to run
make user_proj_example
it fails like so:
Copy code
kris@kris-desktop:~/repos/diy-ic/lincoln_gfmpw$ make user_proj_example
make -C openlane user_proj_example
make[1]: Entering directory '/home/kris/repos/diy-ic/lincoln_gfmpw/openlane'
# user_proj_example
mkdir -p ./user_proj_example/runs/23_12_01_21_49 
rm -rf ./user_proj_example/runs/user_proj_example
ln -s $(realpath ./user_proj_example/runs/23_12_01_21_49) ./user_proj_example/runs/user_proj_example
docker run -it -u $(id -u $USER):$(id -g $USER) -v $(realpath /home/kris/repos/diy-ic/lincoln_gfmpw/..):$(realpath /home/kris/repos/diy-ic/lincoln_gfmpw/..) -v /home/kris/asic/pdk:/home/kris/asic/pdk -v /home/kris/repos/diy-ic/lincoln_gfmpw/caravel:/home/kris/repos/diy-ic/lincoln_gfmpw/caravel -v /home/kris/asic/openlane:/openlane -v /home/kris/repos/diy-ic/lincoln_gfmpw/mgmt_core_wrapper:/home/kris/repos/diy-ic/lincoln_gfmpw/mgmt_core_wrapper -e PDK_ROOT=/home/kris/asic/pdk -e PDK=gf180mcuD -e MISMATCHES_OK=1 -e CARAVEL_ROOT=/home/kris/repos/diy-ic/lincoln_gfmpw/caravel -e OPENLANE_RUN_TAG=23_12_01_21_49 -e MCW_ROOT=/home/kris/repos/diy-ic/lincoln_gfmpw/mgmt_core_wrapper  \
        efabless/openlane:2023.07.19 sh -c "flow.tcl -design $(realpath ./user_proj_example) -save_path $(realpath ..) -save -tag 23_12_01_21_49 -overwrite -ignore_mismatches"
OpenLane d054702b2cce04761cc2bc598f6b95c9d8ca7c6c
All rights reserved. (c) 2020-2022 Efabless Corporation and contributors.
Available under the Apache License, version 2.0. See the LICENSE file for more details.

[WARNING]: OpenLane may not function properly: Failed to compare PDKs.
/home/kris/asic/pdk/gf180mcuD not found.
Traceback (most recent call last):
  File "/openlane/dependencies/verify_versions.py", line 76, in verify_versions
    raise Exception(f"{pdk_dir} not found.")
Exception: /home/kris/asic/pdk/gf180mcuD not found.

[INFO]: Using configuration in '../home/kris/repos/diy-ic/lincoln_gfmpw/openlane/user_proj_example/config.json'...
[INFO]: PDK Root: /home/kris/asic/pdk
[INFO]: Process Design Kit: gf180mcuD
couldn't read file "/home/kris/asic/pdk/gf180mcuD/libs.tech/openlane/config.tcl": no such file or directory
    while executing
"source $pdk_config"
    (procedure "prep" line 167)
    invoked from within
"prep {*}$args"
    (procedure "run_non_interactive_mode" line 22)
    invoked from within
"run_non_interactive_mode {*}$argv"
    invoked from within
"if { [info exists flags_map(-interactive)] || [info exists flags_map(-it)] } {
    if { [info exists arg_values(-file)] } {
        run_file [file nor..."
    (file "/openlane/flow.tcl" line 403)
make[1]: *** [Makefile:79: user_proj_example] Error 1
make[1]: Leaving directory '/home/kris/repos/diy-ic/lincoln_gfmpw/openlane'
make: *** [Makefile:123: user_proj_example] Error 2
but with
PDK=gf180mcuC
, it's happy enough to run the flow would i be okay with leaving
PDK=gf180mcuC
for the GFMPW? i noticed that the makefile makes no reference to it
m
The
Makefile
file should absolutely reference it. Are you using the most recent
Makefile
?
Copy code
curl <https://raw.githubusercontent.com/efabless/caravel_user_project/gf180mcu/Makefile> > Makefile
And then
make setup
Before that, check that you don’t have any overrides set
Copy code
env | grep COMMIT
env | grep TAG
env | grep PDK
k
Copy code
kris@kris-desktop:~/repos/diy-ic/lincoln_gfmpw$ env | grep COMMIT
kris@kris-desktop:~/repos/diy-ic/lincoln_gfmpw$ env | grep TAG
kris@kris-desktop:~/repos/diy-ic/lincoln_gfmpw$ env | grep PDK
PDK=gf180mcuC
and it seems like i am using the latest Makefile, git diff doesn't return any changes
m
Copy code
unset PDK
make pdk-with-volare
k
i'm so so sorry, i've been an absolute idiot.. i had run
git checkout main
for whatever reason, and completely forgot i'm back on
gfmpw-1c
and
make user_proj_example
works just fine sorry again, and thank you for your help!
👍 1
d
Hello!, I'm trying to run cocotb tests in a newly created repo from the gf180 template, however I keep getting this error:
Copy code
Traceback (most recent call last):
  File "/home/dsatizabal/.local/bin/caravel_cocotb", line 8, in <module>
    sys.exit(main())
  File "/home/dsatizabal/.local/lib/python3.10/site-packages/caravel_cocotb/__main__.py", line 103, in main
    RunFLow(cocotb_args)
  File "/home/dsatizabal/.local/lib/python3.10/site-packages/caravel_cocotb/scripts/verify_cocotb/RunFlow.py", line 30, in __init__
    self.set_cpu_type()
  File "/home/dsatizabal/.local/lib/python3.10/site-packages/caravel_cocotb/scripts/verify_cocotb/RunFlow.py", line 149, in set_cpu_type
    raise EnvironmentError("Can't find cpu type please add #define CPU_TYPE to defs.h in managment repo")
OSError: Can't find cpu type please add #define CPU_TYPE to defs.h in managment repo
I used the Makefile suggested here but I still get the same error, any ideas on how to fix this?
k
@Diego Satizabal you may have better luck posting your issue outside of this thread so more people can see it i'd help but im also very new to all of this
d
I was thinking the same thing yes, I will do that thanks