docker_shell: unable to run user own designs

未关闭
#4,940 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
56/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
docker
领域
backend, devops

调研方向

Start with the documented DockerShell entry point, util/docker_shell, and trace how it passes DESIGN_CONFIG to make in flow. Compare that path with running the same design inside Docker and inspect flow/scripts/variables.mk, where the failure reports PLATFORM is unset. Done when a user design with its own config.mk and constraints.sdc runs through Docker Shell; the issue does not identify a test.

由索引模型根据 Issue 内容生成。

描述

Subject

[Documentation] for documentation errors.

Describe the bug

Hello,
Im trying to follow this documentation, https://openroad-flow-scripts.readthedocs.io/en/latest/user/DockerShell.html#run-orfs-using-docker-shell

It is working fine for the built in designs, but when I create my own designs by following the directory structure and creating config.mk and constraints.sdc , fails with below error :

++ PATH=/OpenROAD-flow-scripts/tools/install/kepler-formal/bin:/OpenROAD-flow-scripts/tools/install/yosys/bin:/OpenROAD-flow-scripts/tools/install/OpenROAD/bin:/usr/local/bin/wrapped-cc:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
++ [[ linux-gnu == \d\a\r\w\i\n* ]]
++ export FLOW_HOME=/OpenROAD-flow-scripts/flow
++ FLOW_HOME=/OpenROAD-flow-scripts/flow
++ unset -f __setpaths
+ make DESIGN_CONFIG=./designs/sky130hd/counter/config.mk
/OpenROAD-flow-scripts/flow/scripts/variables.mk:23: *** PLATFORM variable not set..  Stop.

same design works fine inside the docker.

Expected Behavior

Using docker shell running user design as well

Environment
Git commit: d7fe768b690db33318f16b39bffacec501ded624
OpenSTA commit: dfe05bd30c21c9817a8cd52f047115269cbe66d4
kernel: Linux 6.18.58.1-microsoft-standard-WSL2 x86_64
os: Ubuntu 24.04.5 LTS (Noble Numbat)
Bazelisk version: v1.30.0
Build label: 9.3.2
bazelrc options outside the checked-in .bazelrc:
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=0 --terminal_columns=80
To Reproduce
  1. Create a new design under designs/ with respective RTL, SDC and config.mk.
  2. Run from OpenROAD-flow-scripts/flow:

util/docker_shell make DESIGN_CONFIG=./designs/<platform>/<design_name>/config.mk

and you are able to reproduce the error as mentioned

make DESIGN_CONFIG=./designs/sky130hd/counter_4bit/config.mk
/OpenROAD-flow-scripts/flow/scripts/variables.mk:22: *** PLATFORM variable not set..  Stop.
Relevant log output

Screenshots

No response

Additional Context

No response

主要语言
Verilog
星标
825
派生
561
平均合并
2 天 15 小时
30 天内合并 PR
84

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

The-OpenROAD-Project/OpenROAD-flow-scripts 的其他 Issue

查看 The-OpenROAD-Project/OpenROAD-flow-scripts 的全部 Issue

相似的 Issue

更多 Backend & API Design Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。