https://open-source-silicon.dev logo
Channels
aa
abcc
activity
adiabatonauts
analog-design
announce
announcements
b2aws
b2aws-tutorial
bag
basebands
beagleboard
bluetooth
board-respin
cadence-genus
cadence-innovus
cadence-spectre
cadence-virtuoso
caravan
caravel
caravel-board
chilechipmakers
chip-yard
chipignite
chipignite2206q_stanford_bringup
chisel
coalition-for-digital-environmental-sustainability
community_denmark_dtu
containers
courses
design-review
design-services
dffram
digital-design
digital-electronics-learners
discord-mods
dynamic-power-estimation
efabless
electric
events
fasoc
fault
foss-asic-tools
fossee-iitb-esim
fossee-iitb-google-sky130
fpga
funding
fuserisc
general
generative-ai-silicon-challenge
genius-vlsi
gf180
gf180mcu
hardware-beginners
help-
ieee-sscs-cac-23
ieee-sscs-dc-21q3
ieee-sscs-dc-22
ieee-sscs-dc-23
ihp-sg13g2
images
infiniband
j-core
japan-region
junk
klayout
latam_vlsi
layouteditor
lvs
lvs-analysis
magic
magical
maker-projects
maker-zone
microwatt
mpw-2-silicon
mpw-one-clean-short
mpw-one-silicon
neuro-mem
nydesign
open_pdks
open-pdk
openadiabaticlogic
openfpga
openhighqualityresonators
openlane
openlane_cloudrunner
openlane-development
openocd
openpositarithmetic
openpower
openram
openroad
opentitan
osu
pa-test-chip
paracells
pd-openlane-and-sky130
picosoc
pll
popy_neel
power
private-shuttle
rad-lab-silicon
radio
rdircd
reram
researchers
rf-mmw-design
rios
riscv
sdram
serdes
shuttle
shuttle-precheck
shuttle-status
silicon-photonics
silicon-validation
silicon-validation-private
sky130
sky130-ci
sky130-pv-workshop
sky65
sky90
skywater
sram
stdcelllib
strive
swerv
system-verilog-learners
tapeout-job
tapeout-pakistan
team-awesome
timing-closure
toysram
travis-ci
uvm-learners
vendor-synopsys
venn
verification-be
verification-fe
verilog-learners
vh2v
vhdl
vhdl-learners
vliw
vlsi_verilog_using_opensource_eda
vlsi_verilog_using_opensoure_eda
vlsi-learners-group
vlsi101
waveform-viewers
xls
xschem
xyce
zettascale
Powered by
Title
a

Akira Tsuchiya

03/26/2023, 6:14 AM
Could anyone give some advice about caravel on IIC-OSIC-TOOLS (docker-container)? I've been using IIC-OSIC TOOLS (non-docker version) and it works well. Now I'm trying docker-version of IIC-OSIC-TOOLS, but I'm stuck at setup. When I try the flow of caravel_user_project, 'make setup' fails with errors below. % cd caravel_user_project % mkdir dependencies % export OPENLANE_ROOT=$(pwd)/dependencies/openlane_src % export PDK_ROOT=$(pwd)/dependencies/pdks % export PDK=sky130B % make test (snip) make[2]: Entering directory '/foss/designs/caravel_user_project/dependencies/openlane_src' Makefile:23: warning: undefined variable 'DOCKER_SWAP' Makefile:26: warning: undefined variable 'DOCKER_MEMORY' Makefile:42: warning: undefined variable 'ROUTING_CORES' /bin/sh: 1: docker: Permission denied make[2]: * [Makefile:114: pull-openlane] Error 127 make[2]: Leaving directory '/foss/designs/caravel_user_project/dependencies/openlane_src' make[1]: * [Makefile:84: openlane] Error 2 make[1]: Leaving directory '/foss/designs/caravel_user_project/openlane' make: * [Makefile:181: openlane] Error 2 I also tried without changing environmental variables (means, OPENLANE_ROOT=/foss/tools/openlane and PDK_TOOR=/foss/pdks), but 'make setup' also stopped due to permission errors in openlane. Other tools, e.g. xschem, klayout, magic, are working, so I think docker-container was installed correctly. OS is Windows 11 and Docker desktop is v.4.17.1.
m

Mitch Bailey

03/26/2023, 3:34 PM
@Akira Tsuchiya I think I remember having a problem when
OPENLANE_ROOT
and
PDK_ROOT
were sub-directories of
caravel_user_project
. Can you try this?
% mkdir openlane_test
% cd openlane_test
% mkdir dependencies
% export OPENLANE_ROOT=$PWD/dependencies/openlane_src
% export PDK_ROOT=$PWD/dependencies/pdks
% export PDK=sky130B
% git clone <https://github.com/fabless/caravel_user_project> -b mpw-9a
% cd caravel_user_project
% make setup
a

Arman Avetisyan

03/26/2023, 8:03 PM
note that you cant run docker inside docker. I am not sure it is relevant to your issue, but it might be the reason
👍 1
a

Akira Tsuchiya

03/27/2023, 2:46 AM
@Mitch Bailey Thank you for your reply. That stopped at the same error... Stopped at docker, so maybe @Arman Avetisyan’s comment is correct. I thought there is a way to use OpenLane because IIC-OSIC-TOOLS lists OpenLane on the available tools. Do I need some tricks, like docker-in-docker or docker-outside-of-docker?
m

Mitch Bailey

03/27/2023, 4:56 AM
From the
caravel_user_project
directory, the Makefile targets are setup to be run outside of docker and call docker, as needed. If you want to run Openlane directly, you could try
make mount
in the openlane directory and then
cd
to the design directory (you might need to add mount points), and then run
flow.tcl
(the openlane script).
m

Manuel M

03/27/2023, 6:56 AM
In the image,
OpenLane
is installed local without using
Docker
. Presumably the executed makefile tries to install a docker-based OL environment parallel to the available environment, and/or it wants to touch files in the /foss/tools path (no root permission by default, therefore it fails). Anyways.. after cloning, can you try cd'ing to
<cloning-path>/caravel_user_project/openlane
and execute
flow.tcl -design user_project_example -tag foo -overwrite
? I just tried that and the flow finishes
a

Akira Tsuchiya

03/27/2023, 10:58 PM
Thank you for comments. @Manuel M ‘s way works! I was stuck to complete
make user_proj_example
and running
flow.tcl
has slipped my head… Many thanks